[Dovecot] Expunge -A cannot find users
Hi List,
If I use doveadm expunge in this format expunge will delete the email
doveadm expunge -u test@planetseafood.com mailbox Archive ON '8-Nov-2010'
But in this format doveadm expunge -A mailbox Archive ON '8-Nov-2010', it will list all the users in the database and display the following and no messages are expunged.
doveadm(test@planetseafood.com@planetseafood.com): Info: User no longer exists, skipping.
The iterate_query = SELECT username AS username, domain FROM mailbox which is correct for the DB layout.
I am not using the expire plugin. Is this a permissions issue?
Thanks Kilburn
On 08.11.2010 06:00, Kilburn Abrahams wrote:
doveadm expunge -u test@planetseafood.com mailbox Archive ON '8-Nov-2010'
But in this format doveadm expunge -A mailbox Archive ON '8-Nov-2010', it will list all the users in the database and display the following and no messages are expunged.
doveadm(test@planetseafood.com@planetseafood.com): Info: User no longer exists, skipping.
The iterate_query = SELECT username AS username, domain FROM mailbox which is correct for the DB layout.
What returns this query? Maybe you should just use "-u test" (without domain part)? -- Aleksander 'A.L.E.C' Machniak LAN Management System Developer [http://lms.org.pl] Roundcube Webmail Developer [http://roundcube.net] --------------------------------------------------- PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
On 11/08/2010 10:29 PM, A.L.E.C wrote:
On 08.11.2010 06:00, Kilburn Abrahams wrote:
doveadm expunge -u test@planetseafood.com mailbox Archive ON '8-Nov-2010'
But in this format doveadm expunge -A mailbox Archive ON '8-Nov-2010', it will list all the users in the database and display the following and no messages are expunged.
doveadm(test@planetseafood.com@planetseafood.com): Info: User no longer exists, skipping.
The iterate_query = SELECT username AS username, domain FROM mailbox which is correct for the DB layout. What returns this query? Maybe you should just use "-u test" (without domain part)?
Changed iterate_query = SELECT username FROM mailbox and it works. Sorry for the noise.
participants (2)
-
A.L.E.C
-
Kilburn Abrahams