From:
Moshe Katz <moshe@ymkatz.net>
Subject:
Re: another small modification to the bounce handler
In-Reply-To:
another small modification to the bounce handler
Date:
May 7th 2012
One of the attachments of a bounced message contains:
Reporting-MTA: dns; mailfe07.swip.net
Original-Recipient: rfc822;<email@domain.nl>
Final-Recipient: LOCAL;<cxu-63m-x6e@domain.nl>
Action: failed
Status: 4.0.0
Diagnostic-Code: smtp;account is full (quota exceeded)
The bounce handler takes cxu-63m-x6e@domain.nl (the Final-Recipient) as the email address which is not correct here: it should be email@domain.nl (Original-Recipient). It looks like, when LOCAL is involved, the Original-Recipient is more reliable. So I changed from sub generic_delivery_status_parse the following lines:
my ( $rfc, $remail ) = split( ';', $diag->{'Final-Recipient'} );
if ( $remail eq '<>' ) { #example: Final-Recipient: LOCAL;<>
( $rfc, $remail ) = split( ';', $diag->{'Original-Recipient'} );
}
$email = $remail;
into:
my ($rfc, $remail) = split(';', $diag->{'Final-Recipient'});
my ($rfc_org, $remail_org) = split(';', $diag->{'Original-Recipient'});
if($remail eq '<>' || ($remail_org && $rfc =~ / LOCAL$/)){ #example: Final-Recipient: LOCAL;
($rfc, $remail) = ($rfc_org, $remail_org);
}
$email = $remail;
Post:
mailto:dadadev@dadamailproject.comUnsubscribe:
http://dadamailproject.com/cgi-bin/dada/mail.cgi/u/dadadev/List Information:
http://dadamailproject.com/cgi-bin/dada/mail.cgi/list/dadadevArchive:
http://dadamailproject.com/cgi-bin/dada/mail.cgi/archive/dadadevDeveloper Info:
http://dev.dadamailproject.com
|
<< Previous: Re: bounce handler does not recognize Content-Type: text/rfc822-headers |
| Archive Index | |
Next: Re: another small modification to the bounce handler >> |
This mailing list is to discuss the nerdy programming development of Dada Mail -
If you are just looking for support Dada Mail, consult the message boards at:
http://dadamailproject.com/support/boards
To post to this list, send a message to:
All subscribers of this list may post to the list itself.
Some on topic... topics include:
At the moment, there aren't many people with CVS access for Dada Mail - if you would like CVS access, please first talk about the changes you propose and how it will affect the program. If the idea is sound and agreed upon, the change will be comitted. A good track record of this will allow you to have CVS access. Some reasons that patches will not be accepted is if the patch breaks compatibility with a previous version of the program, the patch is too centric to your own problem or the patch simply isn't very good.
Please, please please familiarize yourself with the documentation at:
http://dadamailproject.com/support/documentation/
Since no one wants to answer the same question twice.
Another sneaky reason for this mailing list is to test out the discussion list capabilities of Dada Mail, since Dada Mail is used for the mailing list itself.
NOTE - because of this, there may be times that this list will be somewhat broken. Although we're not planning on breaking the program by using it, we're giving you the heads up that this may well happen anyways.