MailScanner Text File Creation

Julian Field mailscanner at
Fri Oct 15 17:23:54 IST 2004

At 17:07 15/10/2004, you wrote:
>Good day:
>I had sent previously but missed the reply, if any.
>We have an application where we would need to have the following to occur:
> >From * ,
>Copy that entire SMTP message to /anypath/
>Put a file to /anypath/MESSAGEREF.add which contains each recipient of the
>message on a separate line.
>Also, the message should stop there, i.e. not be sent out, as the processing
>we have on those messages, will anylize then send those.
>Is there any way that MailScanner can be set up to do this?

You would probably need to write a Custom Function to do this, and probably
attach it to the "non-spam actions" configuration option. This could test
for the * and write out the message in the files you want.

The alternative would be to archive mail using "Archive Mail" and a
ruleset, then have a cron job that ran every 5 or 10 minutes and processed
the archive entries to generate the processed data you want, then deleted
the original archive files so it didn't process the same mail twice.
Julian Field
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

More information about the MailScanner mailing list