view src/lib-mail/message-date.h @ 9261:51aee73e49a5 HEAD

maildir: When UIDVALIDITY changes, don't reset uid_next to 1 in uidlist.
author Timo Sirainen <tss@iki.fi>
date Sun, 26 Jul 2009 23:36:12 -0400
parents 1a58b18652a6
children
line wrap: on
line source

#ifndef MESSAGE_DATE_H
#define MESSAGE_DATE_H

/* Parses RFC2822 date/time string. timezone_offset is filled with the
   timezone's difference to UTC in minutes. */
bool message_date_parse(const unsigned char *data, size_t size,
			time_t *timestamp_r, int *timezone_offset_r);

/* Create RFC2822 date/time string from given time in local timezone. */
const char *message_date_create(time_t timestamp);

#endif