tags:

views:

25

answers:

2

I'm wondering how I could map an email adress so newsletter users could simply write to a uniquely create email address and instantly get unsubscribed.

ex:

[email protected]

And the key here is that I want it to be instantaneous, I don't want to poll a imap or pop3 account every X seconds. Is there a way to listen to the inbox? Thats my main problem... once I get the email I know what to do.

Thecnologies I use: Postfix Python PHP

+1  A: 

Mailman does this by redirecting the mail to the program itself (it never goes to a true mailbox). Since you're using Python on your project, it might be helpful to look at how mailman interacts with mail servers.

acrosman
+2  A: 

If your mail server supports it, what you are looking for is IMAP IDLE (http://tools.ietf.org/html/rfc2177)

Otherwise, you would have to poll.

Erich
tjs for your answer, I found a perfect solution!
plehoux