On 2004-05-29 23:10:06 +0100 Leon Stedman <leon@RumahMas.fsnet.co.uk> wrote:
Take a long and careful look at procmail this may be able to do what you want directly or it can call an external program.
mailfilter please! (Or, in your words: Are you mad? Messing with "human-readable" configs in this way will make strong men weep! ;-) )
The end of a mail message is signalled by a blank line followed by "From" end of file, I think, but procmail will split them for you, write a log and do all other needful things.
If you're getting it straight from the mailer via a pipe, getting EOF will probably signal end of a message. -- MJR/slef My Opinion Only and possibly not of any group I know. http://www.ttllp.co.uk/ for creative copyleft computing Help hack the EuroParl! http://mjr.towers.org.uk/proj/eurovote/