Dovecot: doveadm move command syntax

Posted by vincent on Server Fault See other posts from Server Fault or by vincent
Published on 2013-06-21T14:25:53Z Indexed on 2013/06/25 4:23 UTC
Read the original article Hit count: 833

Filed under:
|

I want to transfer an email from [email protected] to put it in a folder of another user: [email protected]

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 |-A] [-S ] [user ]

my attempts:

doveadm move -u [email protected] DIRECTORY_2 mailbox [email protected]:'DIRECTORY_1' all

return: Error: Syncing mailbox [email protected]:DOSSIER_1 failed: Mailbox doesn't exist: [email protected]:DOSSIER_1

doveadm -u [email protected] DIRECTORY_2 mailbox sdbox:/complete/path/[email protected]/mailboxes/DIRECTORY_1 all

return: Error: Syncing mailbox sdbox:/complete/path/[email protected]/mailboxes/DIRECTORY_1 failed: Mailbox doesn't exist: sdbox:/complete/path/[email protected]/mailboxes/DIRECTORY_1

doveadm move -u [email protected] DIRECTORY_2 mailbox [email protected] 'DIRECTORY_2' all

return: Fatal: Unknown argument DIRECTORY_2

some details:

  • directory exists
  • the following command works (in case 'DIRECTORY_1' and 'DIRECTORY_2' are in the [email protected] user): doveadm move -u [email protected] DIRECTORY_2 mailbox 'DIRECTORY_1' ALL

  • my problem is that I can not put another user destination

© Server Fault or respective owner

Related posts about dovecot

Related posts about imap