imap4d: imap4date should ignore time and timezone (RFC3501, 6.4.4)

This commit is contained in:
Ori Bernstein 2020-11-08 14:21:14 -08:00
parent 30b7ca54c3
commit e543995bba

View file

@ -3,7 +3,7 @@
int
imap4date(Tm *tm, char *date)
{
if(tmparse(tm, "DD-?MM-YYYY hh:mm:ss ?Z", date, nil, nil) == nil)
if(tmparse(tm, "DD-?MM-YYYY", date, nil, nil) == nil)
return 0;
return 1;
}