LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   download e-mail and save attachments via pop (https://www.linuxquestions.org/questions/linux-software-2/download-e-mail-and-save-attachments-via-pop-438695/)

sunpascal 04-25-2006 11:21 AM

download e-mail and save attachments via pop
 
hi,
what tool/apps/script (any interface) can I use to download e-mail via pop from an e-mail server and archive the e-mails (as text files) and their attachtments, so that I can browse them later without a mail client (since most clients have their own format in which they save e-mails) ?

I plan on burning these to a CD, perhaps I'll need to look at them from "that other OS", so the format shouldn't be mail client / OS specific.

thanx
-sunpascal

DaveG 04-25-2006 05:24 PM

I use "fetchmail" to retrieve my e-mail form a number of ISP mailboxes and re-deliver them to local mailboxes via sendmail and procmail. You can simplify things and have fetchmail use procmail directly.

The configuration can be as simple or complex as you want: from "dump everything in one, big file" to filing by subject, sender etc. or filter them through SpamAssassin. You can probably choose between "mbox" (all in one file) and "maildir" (one file per message) depending on your Linux, either of which are "plain text" files.

The mail-processing application "formail" also comes in handy for post-processing headers and attachments as they are often just "encoded binary" rather than text. Look for MIME processors from your Linux distribution.

There are other applications out there that do the same kind of thing but the ones I use are: fetchmail, procmail and formail, plus sendmail and SpamAssassin.

If you need to view messages or attachments on a Windows (or any other) box, set up an IMAP server such as UW-IMAP or dovecot that can read the plain "archive" files directly, even directly from CD, and serve them over the network.


All times are GMT -5. The time now is 10:24 PM.