Cory Wright wrote:
Hello,According to RFC2822 all HEADERS are defined as:
A customer of mine just received a spam to his TMDA protected account
which has seemingly broken TMDA. The spam did not have an empty line separating the header from the body, here is the relevant portion:
From: [EMAIL PROTECTED] (InMarOnline Family)
Reply-To: [EMAIL PROTECTED]
To: <customer address withheld>
Date: 04 Nov 02 15:0:17
Subject: Permission Request
Content-type: text/html
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY bgcolor="#EEEEEE">
"All header fields have the same general syntactic structure: A field name, followed by a colon, followed by the field body."
RFC 2822, para. 3.6
I don't know python, but perl would check for something like:
If it isn't a match on /^\w+:/ then you've moved beyond the header.
--
An egghead is one who stands firmly on both feet, in mid-air, on both
sides of an issue.
-- Homer Ferguson
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users
