[wellylug] Mail processing
Ewen McNeill
ewen at naos.co.nz
Tue May 6 15:29:24 NZST 2003
In message <007d01c3137e$fac61b40$7832be9b at systems1>, "Jamie Dobbs" writes:
>I want to have a Linux box set up to periodically poll an email server
>(using fetchmail) then when it finds and downloads emails I want to have the
>body of each email saved into a uniquely named file which I will then run
>some Perl scripts over before outputting the processed file via. the serial
>port.
Assuming you don't actually care what the files are called (or can
process them later to rename them), why not use either:
- a mail delivery agent which handles mail directories; or
- the MH mail system which will import a mbox mailbox into
one-message-per-file
That way you'd not even need to deal with a shell script, etc. FWIW,
IIRC the MH mail system comes with a delivery-to-unique-file-in-directory
thing (I normally use "inc" to convert a mbox file to individual files).
Ewen
More information about the wellylug
mailing list