Remove all messages in a mailbox

Pavel Stano stano at websupport.sk
Wed Jun 25 10:11:31 UTC 2014


Hi,

we use namespace with prefix = INBOX.
When we need to remove all messages in mailbox we need to run this
commands:
doveadm expunge -u user at domain mailbox INBOX ALL
doveadm expunge -u user at domain mailbox INBOX.* ALL

The first remove mailboxes in inbox and the second in other subfolders.

And in case you use dbox format:
doveadm purge -u user at domain


On Wed, 25 Jun 2014 17:57:21 +0800 "Murray Trainer"
<mtrainer at westnet.com.au> wrote:

> Hi All,
> 
> I am having trouble removing all messages in a mailbox.   The
> command below doesn't remove all the messages:
> 
> doveadm expunge -u user at domain mailbox  '*' all
> 
> Do I need to add .* or other?
> 
> THanks
> 
> Murray
> 



-- 
[ Ohodnotte kvalitu mailu: http://nicereply.com/websupport/Stano/ ]

Pavel Stano | Troubleshooter

http://WebSupport.sk
*** BERTE A VYCHUTNAVAJTE ***

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140625/f5289673/attachment.sig>


More information about the dovecot mailing list