imap-expunge.c revision 760245ee05c5685122ca29427dffedbeed4b24bc
7cb128dc4cae2a03a742f63ba7afee23c78e3af0Phil Carmody/* Copyright (c) 2003-2015 Dovecot authors, see the included COPYING file */
760245ee05c5685122ca29427dffedbeed4b24bcTimo Sirainenint imap_expunge(struct mailbox *box, struct mail_search_arg *next_search_arg,
06b3ce71a592e5575b5e1d4f412bd364dc6da69dTimo Sirainen /* silently ignore */
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen search_args->args = p_new(search_args->pool, struct mail_search_arg, 1);
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47Timo Sirainen search_args->args->value.flags = MAIL_DELETED;
1807ae2cbeb06f804d5b9af3e3d920417c3d4991Timo Sirainen /* Refresh the flags so we'll expunge all messages marked as \Deleted
1807ae2cbeb06f804d5b9af3e3d920417c3d4991Timo Sirainen by any session. */
1807ae2cbeb06f804d5b9af3e3d920417c3d4991Timo Sirainen t = mailbox_transaction_begin(box, MAILBOX_TRANSACTION_FLAG_REFRESH);