At 10:07 2000-06-06 +0200, Robert Friberg wrote:
>Thanks, I'm reading the faq's right now. Basically, I want to just
>pass everthing to a perl script, I guess the following will do the
>trick?
>
> :0
> |/home/robban/myscript.pl
That will deliver the mail to the script. The user will not get a copy. If
you want the user to get a copy, you have two choices.
This will process a copy of the message and allow the original to be
delivered unchanged:
:0 c
| /path/to/script
This one will deliver the processed message to the user:
:0 f
| /path/to/script
If you do not plan to actually deliver the message to a user, you can have
sendmail feed it to the script using /etc/aliases:
aliasname: |/path/to/script
Scripts run by sendmail are run as the "mail" user, which may be
acceptable, depending on your needs.
Tony
--
Anthony E. Greene <[EMAIL PROTECTED]>
PGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
Linux: The choice of a GNU Generation.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.