LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Parts/Attachments: text/plain (30 lines)
Print Reply
Sender:
LISTSERV give-and-take forum <[log in to unmask]>
Subject:
From:
Valdis Kletnieks <[log in to unmask]>
Date:
Sat, 27 Nov 1999 02:45:35 -0500
In-Reply-To:
Your message of "Tue, 23 Nov 1999 16:54:04 CST." <[log in to unmask]>
Comments:
To: Pek Pongpaet <[log in to unmask]> To: [log in to unmask]
Reply-To:
LISTSERV give-and-take forum <[log in to unmask]>
On Tue, 23 Nov 1999 16:54:04 CST, Pek Pongpaet <[log in to unmask]>  said:
> Hello everyone. I am a listserv novice and I have a problem. I would like to
> know if LISTSERV can parse incoming emails and depending on the content of
> the email, kick-off different processes such as exe's or cgi's. These emails
> will be coming from different users all coming from different domains.
>
> Basically, I would like to update a database with the incoming email.
>
> Thanks for your help in advance.

Don't get Listserv involved.  Have your mail delivery agent
do the work instead.  A popular scheme under Unix is to use procmail
or a .forward pipe to a program that does your updating. So for
instance, if you have a userid 'foobar' defined, then putting

% cat > ~foobar/.forward
| /my/database/updater/here
^D

will cause all mail to 'foobar' to launch the updater.  You will
of course have to do a little bit more work so 'foobar' can still
receive non-update mail, do security checking on the mail, etc etc etc.

Incidentally, 'cgi's are webserver-oriented, and don't really
apply in other contexts...

                                Valdis Kletnieks
                                Operating Systems Analyst
                                Virginia Tech

ATOM RSS1 RSS2