summaryrefslogtreecommitdiffstats
path: root/src/lib-mail/mbox-from.h
blob: fbca06643dcb1e371b11c33f4a81e4490a8a5b92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#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, int *tz_offset_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