Cron/linux events

Forum: ProgrammersTotal Replies: 1
Author Content
J_Maxwell

Jan 21, 2005
3:52 PM
Hello,

I am looking at writing a simple script that would add and remove people from a mailing list. However, what I would like is for when someone emails something like: [e-mail:mailing_list-subscribe@testexampledomain.com], for it to tell my script to check that email box. Is there a way that linux could fire a script every time it recieves an email to a particular domain?

Thanks for your help,

Joseph
dave

Jan 24, 2005
11:59 AM
Definitely!! If you are using procmail as your local delivery agent (I'm not sure if you are), then just add a procmail recipe, like this:

:0 c
| /path/to/script.php

That is all that's involved. Any mail sent will execute that script. You can then get fancy and do things like this:

:0 Hw
* Subject: Unsubscribe
| /path/to/unsubscribe.php

:0 Hw
* Subject: Subscribe
| /path/to/subscribe.php

Fun fun! :-)

best,
dave

Posting in this forum is limited to members of the group: SITEADMINS, SUBSCRIBERS, MEMBERS.]

the Open Forums!

  Login
If you don't have an account yet, visit the registration page to sign up.

If you already have an account, you may login here:

Username: Password:

  Welcome to the Open Forums!!
Welcome to the Open Forums!!

  Hosted By...

This website is hosted by:

 -
PreparingSons
 - Titus2.com


[ Copyright © the Open Forums! | All times are recorded in ET ]

[ Contact Us ]

Login

Powered by Scif 5.3 build 285 by StandardOut, Inc.