imap-expunge.c revision eef4ba0cc3e78f8c26804c1c9251a76580a41f0c
2e37d45867d081db150ab78dad303b9077aea24fTimo Sirainen/* Copyright (c) 2003-2011 Dovecot authors, see the included COPYING file */
5f90a4f0f2d1262e2d5167a79435891ee2972726Timo 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);