65 |
*/ |
*/ |
66 |
int mailbox_status(char *mbox) |
int mailbox_status(char *mbox) |
67 |
{ |
{ |
68 |
int r = 0; |
return status_response(imap_status(mbox, "MESSAGES RECENT UNSEEN"), mbox); |
|
|
|
|
if (!(options & OPTION_DETAILS_QUIET)) { |
|
|
r = status_response(imap_status(mbox, "MESSAGES RECENT UNSEEN")); |
|
|
info("in mailbox %s.\n", mbox); |
|
|
} |
|
|
return r; |
|
69 |
} |
} |
70 |
|
|
71 |
|
|
72 |
/* |
/* |
73 |
* Close examined/selected mailbox. |
* Close examined/selected mailbox. |
74 |
*/ |
*/ |
96 |
char *mesgs; |
char *mesgs; |
97 |
|
|
98 |
for (i = 0; filters[i]; i++) { |
for (i = 0; filters[i]; i++) { |
99 |
|
mesgs = NULL; |
100 |
|
|
101 |
if (match_filter(filters[i], &mesgs)) |
if (match_filter(filters[i], &mesgs)) |
102 |
continue; |
continue; |
132 |
|
|
133 |
free(search); |
free(search); |
134 |
|
|
135 |
if (!**mesgs) |
if (!*mesgs) |
136 |
return 1; |
return 1; |
137 |
|
|
138 |
return 0; |
return 0; |
434 |
{ |
{ |
435 |
action_copy(mesgs, destmbox, args); |
action_copy(mesgs, destmbox, args); |
436 |
action_delete(mesgs, "\0"); |
action_delete(mesgs, "\0"); |
437 |
server_response(imap_expunge()); |
|
438 |
|
/* CLOSE -> SELECT much faster that EXPUNGE -> SELECT */ |
439 |
|
/* server_response(imap_expunge()); */ |
440 |
|
|
441 |
return 0; |
return 0; |
442 |
} |
} |