There is NO standard on headers in the body of an email that everyone adheres to. So a catchall will be hard to do. for instance, try telnetting to port 25 on some random mail server, with a standard ehlo, from,to (fake it of course to get a bounce) and a blank line for the data portion.
You'll see that it goes through fine sending out email, and you should expect no less from any mail coming to you, from a user or a server. What you can count on statistically is, that there a large handful of servers and how they send out MAILER-DAEMON like errors. Qmail likes to whine about the bounces bouncing, and sendmail with it's, i tried for 5 days type thing. My advice is, to find people who run qmail, sendmail, exchange, yahoo.com's, msn.com's and a bunch of others and learn how their bouceback messages look. I can't say they all do one specific thing, as it is up to them to dictate how things work on their end.
But good choice on languages though. Perl/PERL/perl is a good choice of languages to do this type of work with.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.