Commit 9ba6ef46 9ba6ef46004a1fff90b5e081cd13adc40d5f550b by Sergey Poznyakoff

(mh_alias_read,mh_alias_get)

(mh_alias_get_address,mh_alias_get_alias)
(mh_alias_get_address,mh_alias_get_alias)
(mh_read_aliase,smh_alias_enumerate): New functions.
1 parent 8c9303b3
Showing 1 changed file with 12 additions and 0 deletions
...@@ -61,6 +61,7 @@ extern char *strchrnul __P((const char *s, int c_in)); ...@@ -61,6 +61,7 @@ extern char *strchrnul __P((const char *s, int c_in));
61 #define MH_USER_PROFILE ".mh_profile" 61 #define MH_USER_PROFILE ".mh_profile"
62 #define MH_GLOBAL_PROFILE "mh-profile" 62 #define MH_GLOBAL_PROFILE "mh-profile"
63 #define MH_CONTEXT_FILE "context" 63 #define MH_CONTEXT_FILE "context"
64 #define DEFAULT_ALIAS_FILE MHLIBDIR "/MailAliases"
64 65
65 #define is_true(arg) ((arg)==NULL||(arg)[0] == 'y') 66 #define is_true(arg) ((arg)==NULL||(arg)[0] == 'y')
66 67
...@@ -312,6 +313,17 @@ char *mh_draft_name __P((void)); ...@@ -312,6 +313,17 @@ char *mh_draft_name __P((void));
312 char *mh_create_message_id __P((int)); 313 char *mh_create_message_id __P((int));
313 int mh_whom __P((char *filename, int check)); 314 int mh_whom __P((char *filename, int check));
314 315
316 int mh_alias_read __P((char *name, int fail));
317 int mh_alias_get __P((char *name, list_t *return_list));
318 int mh_alias_get_address __P((char *name, address_t *addr));
319 int mh_alias_get_alias __P((char *uname, list_t *return_list));
320 int mh_read_aliases __P((void));
321
322 typedef int (*mh_alias_enumerator_t) __PMT((char *alias, list_t names,
323 void *data));
324 void mh_alias_enumerate __P((mh_alias_enumerator_t fun, void *data));
325
326
315 void mh_annotate __P((message_t msg, char *field, char *text, int date)); 327 void mh_annotate __P((message_t msg, char *field, char *text, int date));
316 328
317 #define MHL_DECODE 1 329 #define MHL_DECODE 1
......