22 |
* pre[serve] [msglist] |
* pre[serve] [msglist] |
23 |
*/ |
*/ |
24 |
|
|
25 |
int |
static int |
26 |
mail_hold (int argc, char **argv) |
hold0 (msgset_t *mspec, message_t msg, void *data) |
27 |
{ |
{ |
|
message_t msg; |
|
28 |
attribute_t attr; |
attribute_t attr; |
29 |
|
|
30 |
if (argc > 1) |
message_get_attribute (msg, &attr); |
31 |
return util_msglist_command (mail_hold, argc, argv, 1); |
attribute_unset_userflag (attr, MAIL_ATTRIBUTE_MBOXED); |
|
else |
|
|
{ |
|
|
if (util_get_message (mbox, cursor, &msg, MSG_ALL)) |
|
|
return 1; |
|
32 |
|
|
33 |
message_get_attribute (msg, &attr); |
cursor = mspec->msg_part[0]; |
34 |
attribute_unset_userflag (attr, MAIL_ATTRIBUTE_MBOXED); |
|
|
} |
|
35 |
return 0; |
return 0; |
36 |
} |
} |
37 |
|
|
38 |
|
int |
39 |
|
mail_hold (int argc, char **argv) |
40 |
|
{ |
41 |
|
return util_foreach_msg (argc, argv, MSG_ALL, hold0, NULL); |
42 |
|
} |
43 |
|
|