Fixed expanding of the draftfile name
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -155,7 +155,7 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state) | ... | @@ -155,7 +155,7 @@ opt_handler (int key, char *arg, void *unused, struct argp_state *state) |
155 | break; | 155 | break; |
156 | 156 | ||
157 | case ARG_DRAFT: | 157 | case ARG_DRAFT: |
158 | source_file = mh_expand_name (NULL, "draft", 0); | 158 | source_file = "draft"; |
159 | break; | 159 | break; |
160 | 160 | ||
161 | case ARG_LINK: | 161 | case ARG_LINK: |
... | @@ -251,7 +251,7 @@ main (int argc, char **argv) | ... | @@ -251,7 +251,7 @@ main (int argc, char **argv) |
251 | mh_error (_("both message set and source file given")); | 251 | mh_error (_("both message set and source file given")); |
252 | exit (1); | 252 | exit (1); |
253 | } | 253 | } |
254 | msg = mh_file_to_message (NULL, source_file); | 254 | msg = mh_file_to_message (mu_path_folder_dir, source_file); |
255 | refile (msg); | 255 | refile (msg); |
256 | if (!link_flag) | 256 | if (!link_flag) |
257 | unlink (source_file); | 257 | unlink (source_file); | ... | ... |
-
Please register or sign in to post a comment