Copy Mail from One Mailfile to Another w/ MailUtil

Mindwatering Incorporated

Author: Tripp W Black

Created: 03/08/2011 at 02:31 AM

 

Category:
Linux
Utilities

MailUtil lets you create, copy, add/append, and basically move mail from one mail file to another. (It can also do IMAP to POP even.)
Syntax for IMAP transfer to an existing box:

mailutil append [-rw] [-kw] [-ig] SOURCE DESTINATION

mailutil -d -v append {mysource.mydomain.com/folder/user=<source username>}Sent
{mydestination.myotherdomain.com/folder/user=<destination username>}INBOX

$ mailutil transfer -debug -merge append "INBOX/<subdir> "{mail.mydestdomain.com/user=UID@mydestdomain.com/ssl}"


previous page

×