473,388 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Parse email delivery status notifications (DSN) ?

(please CC me in you replies if possible, I am not on the list)

Hi,

I am trying to write a script, that processes bounced emails from our
mailing campaigns to remove them from the distribution list and to
update the customer database.

Since our mailing program is not able to set the "Return-Path" header to
a separate address, but always sets it to the "From" address or the
"Reply-To" (if any), I need a way to distinguish DSNs from normal
replies to that mail box.

Is anybody aware of ready solutions to parse DSNs with Python? I would
just need to check if a mail is a DSN and retrieve the failed email address.

I know, this could probably done with the email module and some regexes,
but I would like to avoid ploughing through RFC 3464 to figure out the
formatting rules, if I can.

A quick search on this list and in the Cookbook, did not turn up
anything useful. I guess, mailman should already have code for this, but
can it be used on it's own?

Any pointers appreciated!

Cheers, Chris
Apr 13 '06 #1
0 1167

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jagdip Singh Ajimal | last post by:
I have setup an email notifications system, that basically takes each row from a table and sents out an email according to the data in that row. The emails get sent, with the subject being filled...
1
by: Ron Harter | last post by:
I have an XML DOM that contains a response from a server it looks somethng like this: <?xml version="1.0"?> <a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"...
4
by: dmiller23462 | last post by:
So here's my problem.....I need to set up different email distributions based on which option in the following Select form has been chosen....For instance if "Putaway" is chosen it needs to email...
8
by: Dica | last post by:
i've got a client that wants to be able to review records about IIS generated emails. in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent...
0
by: Dica | last post by:
i think i've gotten the wrong idea about the differences between a read receipt and delivery status notificaiton. i was assuming that delivery status notificaiton is a response line from the remote...
2
ak1dnar
by: ak1dnar | last post by:
Hi, I have build up a client registration application with HTML/JSP/JS. the form consist with two fields Name,Email. Before insert these values to MySQL table i have done a validation...
0
by: novus | last post by:
could anyone tell me if there is anything wrong with this script we seem to be unable to make the script/eventsink work on our exchange2003 server. <SCRIPT LANGUAGE="VBScript"> Sub...
8
n8kindt
by: n8kindt | last post by:
i have a function created for simple emailing (posted below). i'm new to arrays. i actually figured out how to set up the last value (Att) as an array so i could add an unlimited amount of...
2
by: sindhudixit | last post by:
Hey, I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen: 1. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.