Commit 0dd8fa2f 0dd8fa2ff2b4e7e0e8349449f242850077926e50 by Sergey Poznyakoff

(mail_copy0): Use mail_expand_name().

1 parent 17748d65
...@@ -41,10 +41,13 @@ mail_copy0 (int argc, char **argv, int mark) ...@@ -41,10 +41,13 @@ mail_copy0 (int argc, char **argv, int mark)
41 if (isupper (argv[0][0])) 41 if (isupper (argv[0][0]))
42 sender = 1; 42 sender = 1;
43 else if (argc >= 2) 43 else if (argc >= 2)
44 filename = strdup(argv[--argc]); 44 filename = mail_expand_name (argv[--argc]);
45 else 45 else
46 filename = strdup("mbox"); 46 filename = strdup ("mbox");
47 47
48 if (!filename)
49 return 1;
50
48 if (msgset_parse (argc, argv, &msglist)) 51 if (msgset_parse (argc, argv, &msglist))
49 { 52 {
50 if (filename) 53 if (filename)
......