Which command-line tool can back up an entire IMAP mail account?
[ Log in to get rid of this advertisement]
I want to create an automated backup script. Which command-line tool can download/export an entire IMAP email account (including all folders and outbox)?
Requirements:
- eml or some other non-proprietary format.
- Preserve attachments. Normally, they are contained inside the eml file.
- It needs to be a non-interactive command-line tool so it can be accessed from scripts. Non-interactive means it shouldn't stop and ask questions. This would break scripts.
Optional extras:
- Ideally, reproduce the directory structure of the email inbox locally. This means create a local folder for every email account folder. But I can also do that manually.
- Ideally, do not mark emails as read when downloading like Thunderbird does. I only want stuff mark as read when I actually, you know, read it.
Why not POP3? Because it only gets the main inbox folder, no other folders and no outbox.
Last edited by exerceo; Today at 09:07 PM.
|