The following issue has been CLOSED 
====================================================================== 
http://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:                     closed
target:                      
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             27-Jul-08 00:37 CEST
Last Modified:              29-Jul-09 07:28 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.

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

---------------------------------------------------------------------- 
 (0002876) netvulture (developer) - 29-Jul-09 07:28
 http://dbmail.org/mantis/view.php?id=716#c2876 
---------------------------------------------------------------------- 
INTERNALDATE is set to the current timestamp UTC by default. IMAP can
APPEND messages with a specific INTERNALDATE, and we will just respect what
the client says. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
27-Jul-08 00:37  rhstone        New Issue                                    
31-Jul-08 22:27  jasb           Issue Monitored: jasb                        
29-Jul-09 07:28  netvulture     Note Added: 0002876                          
29-Jul-09 07:28  netvulture     Status                   new => closed       
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to