Q:

Parse inbox for non delivery receipts using c# (.net)

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

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.

