| Home | Trees | Indices | Help |
|
|---|
|
|
BounceAnalyzer collects up the score and the headers and gives more
meaningful interaction with them. You can keep it simple and just use
is_hard, is_soft, and probable methods to see if there was a bounce.
If you need more information then attributes are set for each of the following:
* primary_status -- The main status number that determines hard vs soft.
* secondary_status -- Advice status.
* combined_status -- the 2nd and 3rd number combined gives more detail.
* remote_mta -- The MTA that you sent mail to and aborted.
* reporting_mta -- The MTA that was sending the mail and has to report to you.
* diagnostic_codes -- Human readable codes usually with info from the provider.
* action -- Usually 'failed', and turns out to be not too useful.
* content_parts -- All the attachments found as a hash keyed by the type.
* original -- The original message, if it's found.
* report -- All report elements, as lamson.encoding.MailBase raw messages.
* notification -- Usually the detailed reason you bounced.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Initializes all the various attributes you can use to analyze the bounce results.
|
Tells you if this was a hard bounce, which is determined by the message being a probably bounce with a primary_status greater than 4. |
Basically the inverse of is_hard() |
Determines if this is probably a bounce based on the score probability. Default threshold is 0.3 which is conservative. |
Constructs an error from the status codes that you can print to a user. |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Jul 7 07:32:50 2010 | http://epydoc.sourceforge.net |