I'm using synapse to parse emails
In some cases, mails receive (some spam) fake the email creation date
example :

To: <[EMAIL PROTECTED]>
Subject: jourikus
Date: Mon, 5 Oct 15807 16:11:45 +0200
MIME-Version: 1.0

this kind of mails cause "EConvertError : 15807-10-5 is not a valid date 
specification"

to fix it,
open synautil.pas

just add
var
.../..
nowday : Tsystemtime;
../
begin
getlocaltime(nowday);
../../


add lines below after line 670 of  DecodeRfcDateTime function

 if year>9999 then begin
     year:=nowday.Year;
 end;

best regards





-- 
David Touzeau -------------------------- Linux Ubuntu 7.04 feisty 
FreePascal-Lazarus,perl,delphi,php artica for postfix management console 
(http://www.artica.fr) icq:160018849

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to