|
|
char *mail_date(char *string, MESSAGECACHE *elt);
This function accepts a message cache element that contains date information, and, based upon the data in the elt, writes an IMAP-4 date string, that is, one in the following form:
dd-mmm-yyyy hh:mm:ss +zzzzThe destination string must be large enough to hold this string.
char *mail_cdate(char *string, MESSAGECACHE *elt);
This function accepts a message cache element that contains date information, and, based upon the data in the elt, writes a ctime format date string, that is, one in the following form:
www mmm dd hh:mm:ss yyyy\nThe destination string must be large enough to hold this string.
long mail_parse_date(MESSAGECACHE *elt, char *string);
This function parses the date/time stored in the given string, using the following format:
[www,] date [[hh:mm[:ss][-zzz| +zzzz]The date can be any of:
mm/dd/yy, mm/dd/yyyy, dd-mmm-yy, dd-mmm-yyyy, dd mmm yy, dd mmm yyyyand stores the result of the parse in the elt. If the parse is successful, T is returned, else NIL.
unsigned long mail_longdate(MESSAGECACHE *elt);
This function accepts a message cache element that contains date information, and returns the number of days since the base time of the IMAP4 toolkit. At present, this is the same as the UNIX system time value for that date/time, and hence can be used for functions such as utime.