On Mon, 2004-04-19 at 11:29, Rohit Vishal Kumar wrote:
> Dear All:
> 
> I faced a peculiar problem at my place of work. A colleauge of mine who 
> is associated with various academic institutions worldwide uses telnet 
> and pine for all his email corrospondence. This is possible because at 
> our place SuSE Linux 7.0 is used at the server level and windows 98 or 
> above at individual client level. Anyhow, the problem is that the 
> gentleman has above 400 emails in his pine mailbox and he wants to save 
> all the mails with their attachments as text files. To illustrate:
> 
> Mail Subject: "Your article to EPW"
> with attachments article.doc
> 
> should be saved as "Your article to EPW".dd-mm-yyyy.txt
> with atttachment as "Your article  to EPW".article.doc
> 
> He approached me for a solution and to be frank i was stumped. Except 
> for saving each mail by hand using pine commands was the only solution 
> that i could offer. Anyone knows of any solution? Script, tool, 
> suggestions etc. all welcome.
> 

IIRC Pine stores its mail in maildir format. The Python email module
handles this quite readily so that its a simple iteration over the mails
in the store and extracting the required stuff.

-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
"355/113 -- Not the famous irrational number PI,
but an incredible simulation!"


--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to