[Dovecot] doveadm move command

vincent truc
Fri, 21 Jun 2013 14:50:49 -0000

Hello


I want to transfer an email from user1 at domain.com to put it in a folder of
another user: user2 at domain.com

For that, it seems to me appropriate to use 'doveadm move' command, but
I can not get the right result. Can you help me?

syntax:
    doveadm move [-u <user>|-A] [-S <socket_path>]
<destination> [user ] <search query>


my attempts:

    doveadm move -u user2 at domain.com DIRECTORY_2 mailbox user1 at
domain.com:'DIRECTORY_1' all

return: Error: Syncing mailbox user1 at domaine.fr:DOSSIER_1 failed: Mailbox
doesn't exist: user1 at domaine.fr:DOSSIER_1

    doveadm -u user2 at domain.com DIRECTORY_2 mailbox
sdbox:/complete/path/user1 at domain.com/mailboxes/DIRECTORY_1 all

return: Error: Syncing mailbox sdbox:/complete/path/user1 at
domain.com/mailboxes/DIRECTORY_1 failed: Mailbox doesn't exist:
sdbox:/complete/path/user1 at domain.com/mailboxes/DIRECTORY_1

    doveadm move -u user2 at domain.com DIRECTORY_2 mailbox user1 at domain.com
'DIRECTORY_2' all

return: Fatal: Unknown argument DIRECTORY_2