Commit 8b8f29eb 8b8f29eb6485e5ab09e2215d595fbbf45c27c97b by Sergey Poznyakoff

Bugfixes

* mh/rmf.c (current_folder_path): Treat name as folder while expanding.
* mail/unset.c (mail_unset): Fix the behavior when no arguments were
given.
1 parent 296d0bc9
...@@ -26,7 +26,7 @@ mail_unset (int argc, char **argv) ...@@ -26,7 +26,7 @@ mail_unset (int argc, char **argv)
26 { 26 {
27 if (argc < 2) 27 if (argc < 2)
28 { 28 {
29 mailvar_print (0); 29 mailvar_print (1);
30 return 0; 30 return 0;
31 } 31 }
32 else 32 else
......
...@@ -92,7 +92,7 @@ opt_handler (int key, char *arg, struct argp_state *state) ...@@ -92,7 +92,7 @@ opt_handler (int key, char *arg, struct argp_state *state)
92 } 92 }
93 93
94 static char * 94 static char *
95 current_folder_path () 95 current_folder_path (void)
96 { 96 {
97 mu_mailbox_t mbox = mh_open_folder (mh_current_folder (), MU_STREAM_RDWR); 97 mu_mailbox_t mbox = mh_open_folder (mh_current_folder (), MU_STREAM_RDWR);
98 mu_url_t url; 98 mu_url_t url;
...@@ -197,7 +197,7 @@ main (int argc, char **argv) ...@@ -197,7 +197,7 @@ main (int argc, char **argv)
197 name = cur_folder_path; 197 name = cur_folder_path;
198 } 198 }
199 else 199 else
200 name = mh_expand_name (NULL, folder_name, NAME_ANY); 200 name = mh_expand_name (NULL, folder_name, NAME_FOLDER);
201 if (recursive) 201 if (recursive)
202 status = recrmf (name); 202 status = recrmf (name);
203 else 203 else
......