[Tmail-talk] processing bounces

Mikel Lindsaar
Tue, 25 Mar 2008 05:55:43 -0000

On Tue, Mar 25, 2008 at 4:48 AM, Mark Maggelet <maggelet at gmail.com>
wrote:
>  I''m trying to use tmail to process bounced emails. I need to
check the
>  subject line for ''failure notice'' and then get the
intended recipients
>  email out of the body and do something with it.
>  Does anybody have something they can share to get me started?

I sent my reply to Mark directly, by mistake, instead of to the list.

In any case, I wrote up one way how to handle it here:

http://lindsaar.net/2008/3/25/handling-bounced-email-with-ruby-and-tmail

I am thinking of making this a feature of TMail actually...

if mail.content-type == ''multipart-report''
  mail.report.status
end
#=> ''5.0.0''

Or something...

Regards

Mikel