Added support for aliases.
Showing
1 changed file
with
5 additions
and
2 deletions
... | @@ -25,7 +25,7 @@ static char args_doc[] = "[file]"; | ... | @@ -25,7 +25,7 @@ static char args_doc[] = "[file]"; |
25 | /* GNU options */ | 25 | /* GNU options */ |
26 | static struct argp_option options[] = { | 26 | static struct argp_option options[] = { |
27 | {"alias", ARG_ALIAS, N_("FILE"), 0, | 27 | {"alias", ARG_ALIAS, N_("FILE"), 0, |
28 | N_("* Specify additional alias file") }, | 28 | N_("Specify additional alias file") }, |
29 | {"draft", ARG_DRAFT, NULL, 0, | 29 | {"draft", ARG_DRAFT, NULL, 0, |
30 | N_("Use prepared draft") }, | 30 | N_("Use prepared draft") }, |
31 | {"draftfolder", ARG_DRAFTFOLDER, N_("FOLDER"), 0, | 31 | {"draftfolder", ARG_DRAFTFOLDER, N_("FOLDER"), 0, |
... | @@ -65,7 +65,8 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state) | ... | @@ -65,7 +65,8 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state) |
65 | switch (key) | 65 | switch (key) |
66 | { | 66 | { |
67 | case ARG_ALIAS: | 67 | case ARG_ALIAS: |
68 | return 1; | 68 | mh_alias_read (arg, 1); |
69 | break; | ||
69 | 70 | ||
70 | case ARG_DRAFT: | 71 | case ARG_DRAFT: |
71 | use_draft = 1; | 72 | use_draft = 1; |
... | @@ -124,6 +125,8 @@ main (int argc, char **argv) | ... | @@ -124,6 +125,8 @@ main (int argc, char **argv) |
124 | if (!draft_folder) | 125 | if (!draft_folder) |
125 | draft_folder = mh_global_profile_get ("Draft-Folder", | 126 | draft_folder = mh_global_profile_get ("Draft-Folder", |
126 | mu_path_folder_dir); | 127 | mu_path_folder_dir); |
128 | |||
129 | |||
127 | return mh_whom (mh_expand_name (draft_folder, name, 0), check_recipients) ? | 130 | return mh_whom (mh_expand_name (draft_folder, name, 0), check_recipients) ? |
128 | 1 : 0; | 131 | 1 : 0; |
129 | } | 132 | } | ... | ... |
-
Please register or sign in to post a comment