Commit e72ba028 e72ba028b5820bf065d20d4515a4632e4d2d9fb0 by Sergey Poznyakoff

Use mail_copy0().

1 parent 287248a0
...@@ -26,28 +26,5 @@ ...@@ -26,28 +26,5 @@
26 int 26 int
27 mail_save (int argc, char **argv) 27 mail_save (int argc, char **argv)
28 { 28 {
29 message_t msg; 29 return mail_copy0 (argc, argv, 1);
30 int *msglist = NULL;
31 int num = 0, i = 0;
32
33 mail_copy (argc, argv);
34
35 if (argc > 1)
36 argc--;
37
38 num = util_expand_msglist (argc, argv, &msglist);
39 if (num > 0)
40 {
41 for (i = 0; i < num; i++)
42 {
43 mailbox_get_message (mbox, msglist[i], &msg);
44 /* mark as saved */
45 }
46 }
47 else
48 {
49 mailbox_get_message (mbox, cursor, &msg);
50 }
51 free (msglist);
52 return 0;
53 } 30 }
......