[thelist] Unsubscribe procedure (not from this list!)

Hassan Schroeder hassan at webtuitive.com
Thu May 12 09:40:35 CDT 2005


Tim Stickland wrote:

> I've created a simple PHP script that allows users to subscribe and
> unsubscribe from a mailing list using a web interface.
> 
> This is all good, but I've been wondering today how would I go about
> implementing the functionality to allow a user to be
> subscribed/unsubscribed from a mailing list using either the subject
> or body of an email address?
> 
> I've used PHP's imap functions to read in messages from a particular
> mailbox before, but implementing this as a solution would mean having
> a cron job set up to periodically check the mailbox.
> 
> Are there other ways of acheiving the same goal?

Sure, just forward emails sent to your subscribe@/unsubscribe at ...
address to a standalone processing program to handle in real time.
You can set up forwards in /etc/aliases, use procmail, whatever...

HTH,
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.




More information about the thelist mailing list