tags:

views:

59

answers:

1

Anyone know of a c# library for parsing non delivery receipts in an inbox (and one that categorizes by which type of failure / bounce).

+1  A: 

Handling bounced mails is not a trivial task. There are different bounce types (hard/soft bounces) and the message content will differ, depending on the smtp server sending the message back to your inbox.

I ended up rolling a learning bouncemail processor on my own. It basically gets the messages from the inbox and applies a big load of regualar expressions a la

(?:alias|account|recipient|address|email|mailbox|user).*full

to it. If no rule matches, it gets forwarded for manual handling and a new rule for that kind of message is added to the processor.

If you have the budget, BounceInspector is one of the commercial products for that kind of job.

Matthias
Good start. And a good idea. Sounds similar to a rules engine for URL parsing i worked on... Thanks!
FiveTools