Could someone familiar with the code confirm how the script grabs envelop header info like from:, sender:, to: ? I am curious to know if ASSP properly handles spacing between the header field colon and the start of the header data. Here's why, and what I think may be an issue:

Certain MTAs will use multiple spaces in order to column justify the header information instead of using a single standard space. I have noticed this because some of my regexps don't always match, and I have begun to realize why. A particular example that may effect others would be an 'undeliverable' NDRs that contains headers like this:

----------
Date:     Tue,  8 Jan 2008 15:59:26 -0500
Message-Id: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
From:     "Postmaster" <[EMAIL PROTECTED]>
Sender:   <[EMAIL PROTECTED]>
To:       <[EMAIL PROTECTED]>
Subject: Undeliverable Mail
X-Mailer: <SMTP32 v8.22>
----------

Notice that four of the header fields have been space-justified to the 11th column. Along with this, the ASSP-added headers contained this:

----------
X-Assp-Envelope-From:
----------

Yes, the header field data is blank. I'm assuming this is because ASSP isn't parsing the field properly in order to handle this type of spacing. Its an assumption based on what I think I am seeing, but if this is true, some of ASSP's tests could possibly be bypassed.

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to