2 ms·
Great! Thanks. Can you please point me to some how-to about acting on incoming email using Python? I look far and wide but couldn't find much.
by kirubakaran 19y ago
Great! Thanks.
Can you please point me to some how-to about acting on incoming email using Python? I look far and wide but couldn't find much.
- SwellJoe 19y agoI have no idea. I haven't worked with Python in several years. But, I know that both Mailman and Trac are written in Python and they both do stuff with incoming mail...so, there's certainly some python code out their for dealing with incoming mail. That's where I'd start my search if I were in your shoes.
- kirubakaran 19y agoThanks.
- alphamule 19y agoone way to do it is to use procmail to filter incoming mail and piping the ones you are interested into your python program which will take the rfc822 message on stdin. the email module (http://docs.python.org/lib/module-email.html http://docs.python.org/lib/module-email.html) will let you parse these messages. this is provided that your MX dns entry points to your machine and that you have the appropriate ports unlocked, of course.