Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-mail/mbox-from.h @ 7561:1a58b18652a6 HEAD
Avoid using shadow variables. Unfortunately -Wshadow also complains about
index variable conflicting with index(), which is used in way too many
places to change.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 27 May 2008 02:09:47 +0300 |
parents | 06f59be7f508 |
children | d076e1758c6a |
line wrap: on
line source
#ifndef MBOX_FROM_H #define MBOX_FROM_H /* Parse time and sender from mbox-compatible From_-line. msg points to the data after "From ". */ int mbox_from_parse(const unsigned char *msg, size_t size, time_t *time_r, char **sender_r); /* Return a mbox-compatible From_-line using given sender and time. The returned string begins with "From ". */ const char *mbox_from_create(const char *sender, time_t timestamp); #endif