* This routine assumes that `h' has been initialized to 0. the `timezone'
* field is optional, defaulting to +0000 if missing.
*/
-static time_t parse_date (char *s, HEADER *h)
+time_t mutt_parse_date (char *s, HEADER *h)
{
int count = 0;
char *t;
safe_free((void **)&e->date);
e->date = safe_strdup(p);
if (hdr)
- hdr->date_sent = parse_date (p, hdr);
+ hdr->date_sent = mutt_parse_date (p, hdr);
matched = 1;
}
break;
case 'e':
if (!strcasecmp ("xpires", line + 1) &&
- hdr && parse_date (p, hdr) < time (NULL))
+ hdr && mutt_parse_date (p, NULL) < time (NULL))
hdr->expired = 1;
break;
char *d = strchr (p, ';');
if (d)
- hdr->received = parse_date (d + 1, NULL);
+ hdr->received = mutt_parse_date (d + 1, NULL);
}
}
break;
time_t mutt_local_tz (void);
time_t mutt_mktime (struct tm *, int);
time_t is_from (const char *, char *, size_t);
+time_t mutt_parse_date (char *, HEADER *);
const char *mutt_attach_fmt (
char *dest,