I am writing an SMTP parser that needs to handle standard smtp as well as SMTP messages sent from a system that I do not control, which do not include an IMF header. For example,
Standard SMTP with IMF header:
From: "Blah blah blah" blah@bluhblah.blah
To: Derp@dederp.com
Subject: This is a standard SMTP message
Date: Mon, 5 Oct 2009 11:36:07 +0530
MIME-Version: 1.0
Content-Type: text / plain
Content-Language: en-us
Testing testing 1 2 3
Bastardized SMTP:
Testing testing 1 2 3
Preferably in C#, but any language is fine.
No speculation please, I need someone who understands the SMTP / IMF specs to respond. I take that back, speculate all you want. lol
Unless you really, really want to write your own SMTP parser; you’ll want a 3rd party library to help. We chose OpenPop. It works well, handles all the things we’ve thrown at it, and is still supported.
No, I’m not affiliated with them.