Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-mail/message-size.h @ 4891:6ab2712f1a93 HEAD
Only imap binary was actually working.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 10 Dec 2006 14:35:02 +0200 |
parents | 55df57c028d4 |
children | e4eb71ae8e96 |
line wrap: on
line source
#ifndef __MESSAGE_SIZE_H #define __MESSAGE_SIZE_H struct message_size { uoff_t physical_size; uoff_t virtual_size; unsigned int lines; }; /* Calculate size of message header. Leave the input point to first character in body. */ void message_get_header_size(struct istream *input, struct message_size *hdr, bool *has_nuls); /* Calculate size of message body. */ void message_get_body_size(struct istream *input, struct message_size *body, bool *has_nuls); /* Sum contents of src into dest. */ void message_size_add(struct message_size *dest, const struct message_size *src); #endif