Mercurial > dovecot > core-2.2
view src/lib-mail/message-date.h @ 23017:c1d36f2575c7 default tip
lib-imap: Fix "Don't accept strings with NULs" cherry-pick
author | Timo Sirainen <timo.sirainen@open-xchange.com> |
---|---|
date | Thu, 29 Aug 2019 09:55:25 +0300 |
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