The following issue has been SUBMITTED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=716 
====================================================================== 
Reported By:                rhstone
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   716
Category:                   IMAP daemon
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
target:                      
====================================================================== 
Date Submitted:             27-Jul-08 00:37 CEST
Last Modified:              27-Jul-08 00:37 CEST
====================================================================== 
Summary:                    Bogus date returned in INTERNALDATE
Description: 
Pine reports that an INTERNALDATE value prior to 1970 (probably?) is a
"bogus date"

Pine Error:
[{MYHOST.XYZ:993/imap/ssl/novalidate-cert/ : Bogus date: 31-Dec-1899
00:00:00 -0800]

I have noted this piece of code in dbmail-imapsession.c:

/* internal date */
query_result = db_get_result(i, IMAP_NFLAGS);
strncpy(result->internaldate,
  (query_result) ? query_result :
  "01-Jan-1970 00:00:01 +0100",
  IMAP_INTERNALDATE_LEN);

Presumably there should be a check to determine if the query_result is <
1-1-1970, and if so, to return 1-1-1970. It should not return values from
1899, or other such nonsensical things that spammers send.

====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
27-Jul-08 00:37 rhstone        New Issue                                    
======================================================================

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to