For those who would like to try it, here is the URL to ZIP file containing two tests, NoCrTest.exe and NoLFTest.exe. Per this thread, you may find the NoCrTest useful. See the file NoCrTest.txt, which is included below. Enjoy.
http://www.mathbox.com/NoCrTest/NoCrTest.zip Michael Thomas Mathbox 978-683-6718 1-877-MATHBOX (Toll Free) What NoCrTest Does ============== NoCrTest scans the file and counts CR/LF pairs and bare LF instances. If the LF count exceeds the CRLF count, NoCrTest returns <NoCrTestScore>. Otherwise, it returns 0 (zero). NoCrTest is non-destructive. It writes no files and modifies nothing. It only reads the specified file and returns a value. At a minimum. IMail adds a "Received:" line with a CR/LF pair to the beginning of the file. Other SMTP servers may have previously prepended other "Received:" lines with a CR/LF pair as well. Finally, if there is no Message-ID:, IMail will insert a Message-ID:. The remainder of the file was generated by the mail tool, whether that tool was Outlook, OE, a script, or a spammer tool. NoCrTest scans the file for the following strings as a trigger that indicates it has parsed beyond the SMTP added "Recieved:" lines: Message-ID: Subject: Date: From: To: On seeing one of the trigger strings, NoCrTest starts counting CR/LF pairs and bare LF instances. NoCrTest reads to the end of the file or up to 500,000 bytes, whichever comes first. It then compares the CR/LF pair count to the bare LF count. If the bare LF count is more than the CR/LF pair count, NoCrTest returns the <NoCrTestScore> parameter. Otherwise, NoCrTest returns 0 (zero). What NoLfTest Does ============== NoLfTest scans the file and counts CR/LF pairs and bare CR instances. If the CR count exceeds the CR/LF count, NoLfTest returns <NoLfTestScore>. Otherwise, it returns 0 (zero). NoLfTest is non-destructive. It writes no files and modifies nothing. It only reads the specified file and returns a value. At a minimum. IMail adds a "Received:" line with a CR/LF pair to the beginning of the file. Other SMTP servers may have previously prepended other "Received:" lines with a CR/LF pair as well. Finally, if there is no Message-ID:, IMail will insert a Message-ID:. The remainder of the file was generated by the mail tool, whether that tool was Outlook, OE, a script, or a spammer tool. NoLfTest scans the file for the following strings as a trigger that indicates it has parsed beyond the SMTP added "Recieved:" lines: Message-ID: Subject: Date: From: To: On seeing one of the trigger strings, NoLfTest starts counting CR/LF pairs and bare CR instances. NoLfTest reads to the end of the file or up to 500,000 bytes, whichever comes first. It then compares the CR/LF pair count to the bare CR count. If the bare CR count is more than the CR/LF pair count, NoLfTest returns the <NoLfTestScore> parameter. Otherwise, NoLfTest returns 0 (zero). ZIP FILE CONTENTS ============== NoCrTest.exe The NoCrTest executable. NoLfTest.exe The NoLfTest executable. ManualTest.cmd An example command file for manual testing NoCrTest.txt This explanatory file FailNoCr.txt An example file that will fail NoCrTest FailNoLf.txt An example file that will fail NoLfTest USAGE ============== Unzip the contents of NoCrTest.zip to any directory where System has execute permission. For example, the typical Declude installation is: C:\IMail\Declude Add the plugin to your Declude GLOBAL.CFG as: NOCRTEST external weight "<PathToExecutable> <NoCrTestScore>" 5 0 Where <PathToExecutable> is the full path to invoke the executable. For example, if you unzipped NoCrTest in the typical Declude directory, the full path would be: C:\IMail\Declude\NoCrTest.exe Where <NoCrTestScore> is the numeric value (for example 50) returned when NoCrTest detects more bare LF than CR/LF pairs. Eaxmple of typical GLOBAL.CFG entry that returns 10 on detection: NOCRTEST external weight "C:\IMail\Declude\NoCrTest.exe 10" 5 0 Eaxmple of GLOBAL.CFG entry with NoCrTest in its own directory that returns 20 on detection: NOCRTEST external weight "C:\NoCrTest\NoCrTest.exe 20" 5 0 MANUAL TESTING ============== For testing, You can invoke NoCrTest manually or in a batch file: NoCrTest 1 TestMessage.ext or C:\NoCrTest\NoCrTest.exe 99 C:\IMail\Spool\proc\review\D69c8020c0000b758.smd LOGGING ============== NoCrTest performs no logging. It performs only one test which either passes or fails. Use Declude logging to track its effectiveness. SUPPORT ============== There is no support for NoCrTest. If it does not perform to your expectations, delete it. CAN I RENAME THE EXECUATABLE? ============== Sure. NoCrTest.exe does not care what its executable name is. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type "unsubscribe Declude.JunkMail". The archives can be found at http://www.mail-archive.com.
