no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tech:others:downloading_imap_mail [2014/11/15 15:13] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Download mail ====== | ||
+ | Using imapgrab.py script that is a wrapper for getmail | ||
+ | |||
+ | ===== Command to list all mail from server ===== | ||
+ | < | ||
+ | ./ | ||
+ | </ | ||
+ | |||
+ | ===== Command to download all mail from server (maildir) ===== | ||
+ | This one uses the maildir format (one file per email, one directory per imap folder) | ||
+ | < | ||
+ | cd / | ||
+ | mkdir mdir | ||
+ | nohup ./ | ||
+ | -s somemailserver.com -u someuser@example.com -p < | ||
+ | </ | ||
+ | |||
+ | Output | ||
+ | < | ||
+ | someuser1@ub1: | ||
+ | nohup: ignoring input | ||
+ | IMAP Grab 0.1.4 | ||
+ | --- | ||
+ | Downloading mailbox " | ||
+ | Downloading mailbox " | ||
+ | Downloading mailbox " | ||
+ | Downloading mailbox " | ||
+ | .... | ||
+ | .... | ||
+ | Downloads complete | ||
+ | </ | ||
+ | |||
+ | ===== Command to download all mail from server (mbox) ===== | ||
+ | This one uses the maildir format (one file per imap folder) | ||
+ | < | ||
+ | cd / | ||
+ | mkdir mdir1 | ||
+ | nohup ./ | ||
+ | -s mail.lonex.com -u someuser@example.com -p lotus111 > imapgrab1.log 2>&1 & | ||
+ | </ | ||
+ | |||
+ | Output | ||
+ | < | ||
+ | someuser1@ub1: | ||
+ | nohup: ignoring input | ||
+ | IMAP Grab 0.1.4 | ||
+ | --- | ||
+ | Downloading mailbox " | ||
+ | Downloading mailbox " | ||
+ | Downloading mailbox " | ||
+ | Downloading mailbox " | ||
+ | .... | ||
+ | .... | ||
+ | Downloads complete | ||
+ | </ | ||