CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Scanning subject line of incoming e-mail



Feb 27, 2000, 7:33 PM

Post #1 of 2 (2054 views)
Scanning subject line of incoming e-mail Can't Post

I'm in the process of building a member management script, below is what it's supposed to do.

After the user has used a signup form they are added to a confirm database. The user is then sent out an email with a Personal IDentification (PID) number in it. The user must respond to this e-mail with the PID in the subject line or within a predefined number of day's before there details are deleted from the confirm data base. If the user has replied within the predefined number of day's, the script scans the e-mail's subject line and then look's up the confirm database for the supplied PID. If found the users information is either sent to the awaiting approval database or automatically added to the user database (depending on what the administrator has specified).

Hers the problem: I can't figure out how to implement the scanning of the subject line for the PID.

Any help would be appreciated.

Thanks in advance

Peter Crouch

Red Dragon

Mar 2, 2000, 9:19 PM

Post #2 of 2 (2054 views)
Re: Scanning subject line of incoming e-mail [In reply to] Can't Post

My suggestion would be to pipe the reply or forward to a special email account such as

Then using aliases pipe that email to a cgi program.

in the program use something like
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

while(<STDIN> )

that will pull the pid number from the subject line and exit the loop bringin in the information (so as to not mistake something in the message itself).

You can then use the pid to do what you need to with it.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives