Use mail_copy0().
Showing
1 changed file
with
1 additions
and
24 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment