bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Munging mailboxes


From: Michael Schuerig
Subject: Munging mailboxes
Date: Fri, 14 Dec 2001 22:00:25 +0100

I'm interested in mailutils mostly for its mailbox/folder handling 
capabilities. Tasks I'd like to use it for are similar to this: Extract 
attachments from each message in a folder; save it to a file in some 
given directory; replace the attachment part of the original message 
with a link to the saved file.

What I don't yet understand is how to deal with attachments. I see that 
I can accessed the individual parts of a multipart message. But how do 
I get at the original filename and other attributes of an attached-file 
part? Also, how can I decode the part's contents and avoid reading it 
into memory entirely?

Obviously, programming tasks of this kind in C is somewhat tedious. 
That's why I'm pondering wrapping the needed parts of mailutils in 
Ruby. Unless, by chance, someone has already done this.

Michael

-- 
Michael Schuerig                   GPG Fingerprint
mailto:address@hidden            DA28 7DEB 5856 3365 BED9
http://www.schuerig.de/michael/    8365 0A30 545A 82D2 05D7



reply via email to

[Prev in Thread] Current Thread [Next in Thread]