On Mon, Aug 01, 2005 at 11:39:42PM -0700, Mhac Janapin wrote:
> Here's the scenario:
> I have an mbox folder containing hundreds of messages with attachments
> (mostly PDFs.)
> Sure I can go and extract them one by one and save it to folder, but I
> think a bash script (even python) would be nice.

http://search.cpan.org/src/ERYQ/MIME-tools-6.200_02/examples/mimeexplode

you can use it with formail to parse an entire mbox
e.g.

formail -s /path/to/mimeexplode  < /var/spool/mail/yourmail

HTH
-- 
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to