[Dovecot] merge mdboxes

Timo Sirainen tss at iki.fi
Mon Oct 25 16:53:59 EEST 2010


On Sat, 2010-10-23 at 16:27 +0200, Tobias Daucher wrote:
> Hi there,
> after migration we have a very big problem...
> there are two mailboxes in /var/mail/username/mailboxes/
> /var/mail/username/mailboxes/inbox
> /var/mail/username/mailboxes/inbox2

So they are in the same mdbox storage, just in different mailboxes?

> By the way - logging in via imap with thunderbird und move them on  
> that way is not my favorite solution cause i have to do this for  
> hundreds of users...

IMAP would still be the simplest solution. You could do something like:

printf "1 select inbox2\n2 copy 1:* INBOX\n3 delete inbox2\n" | /usr/local/libexec/dovecot/imap -u username




More information about the dovecot mailing list