> -----Original Message-----
> From: Cedric Fontaine [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 3:09 PM
> To: [EMAIL PROTECTED]
> Subject: [Qmail-scanner-general]Date RFC
> 
> 
> Hello !
> 
> Do you think the next release will be RFC compliant for the Date
> format ?
> 
> I'm using a french spam parser and they told me that qmail-scanner
> aren't RFC compliants...
> 
> Any information about that ?
>   

Ya, that bugged me also... I wrote a patch for it if you want to use it, or just look 
at it and find and replace code in your already running system.  This switches it to 
rfc complient YYYY-MM-DD hh:mm:ss format.  The only date this patch does not effect is 
the date in the received headers, which is correct in it's format of  DD Month YYYY 
hh:mm:ss -0000

This patch is for QS v1.16.  Unpack QS 1.16, copy patch to the root, and run
# patch -p0 < rfc_date_template.patch

Or, if you want to modify your already installed qmail-scanner-queue.pl, just modify 
all lines that you see

  $nowtime = sprintf "%02d/%02d/%02d %02d:%02d:%02d", $mday, $mon+1, $year+1900, 
$hour, $min, $sec;

with...

  $nowtime = sprintf "%04d/%02d/%02d %02d:%02d:%02d", $year+1900, $mon+1, $mday, 
$hour, $min, $sec;

note, the first one is "my $nowtime", dont copy and paste over it or "use strict" will 
complain and mail will stop processing.

Good Luck,

Dallas Engelken
NMGI

Attachment: rfc_date_template.patch
Description: rfc_date_template.patch

Reply via email to