[comp.unix.misc] automatic mail server

coei@nntp-server.caltech.edu (Christopher K. Oei) (02/09/91)

Does anyone have a program (preferably a Unix script) that will intercept
incoming mail, check the message text for lines such as "send wanted_file",
and automatically reply to the sender the "wanted_file"?

I'd be interested in a copy.  I wrote a rather crude version of this, and if
anyone would like a copy of my program, just send me mail with the word
"mailsort" somewhere in the message text.

Thanks in advance,

-Chris Oei
(coei@puma.ccsr.uiuc.edu)

hotte@sunrise.in-berlin.de (Horst Laumer) (02/12/91)

coei@nntp-server.caltech.edu (Christopher K. Oei) writes:

>Does anyone have a program (preferably a Unix script) that will intercept
>incoming mail, check the message text for lines such as "send wanted_file",
>and automatically reply to the sender the "wanted_file"?

>I'd be interested in a copy.  I wrote a rather crude version of this, and if
>anyone would like a copy of my program, just send me mail with the word
>"mailsort" somewhere in the message text.

>Thanks in advance,

>-Chris Oei
>(coei@puma.ccsr.uiuc.edu)

I'd suggest that you use filter, which is part of the elm-package. I never
had the need to use it, but according to the man-pages it should be able
to do the job. Seems to be quite flexible, uses an external rule-set and
handles regexps. Give it a try, it's PD.


-- 
============================================================================
Horst Laumer, Kantstrasse 107, D-1000 Berlin 12 ! Bang-Adress: Junk-Food 
INET: hotte@sunrise.in-berlin.de                ! for Autorouters -- me --
UUCP: ..unido!fub!geminix!sunrise.in-berlin.de!hotte