LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-25-2006, 12:21 PM   #1
sunpascal
Member
 
Registered: Jan 2005
Distribution: Debian
Posts: 104

Rep: Reputation: 15
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
 
Old 04-25-2006, 06:24 PM   #2
DaveG
Member
 
Registered: Nov 2001
Location: London, UK
Distribution: Fedora 16
Posts: 160

Rep: Reputation: 43
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.
 
  


Reply

Tags
archive, email, messaging, pop


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail attachments nolinuxnollife Linux - Security 1 03-20-2006 02:20 PM
imap script needed: download attachments Samsara Linux - Software 1 10-23-2004 05:27 PM
Save Email Attachments mwmethe Linux - Software 1 01-14-2004 08:55 AM
mutt can't save attachments cage Linux - Software 0 08-28-2003 02:12 PM
Mail and attachments wvrhlu Linux - Software 2 04-02-2003 11:06 AM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration