view src/lib-mail/message-send.h @ 991:21788a1e9e39 HEAD

Partial fetches are working fast again - faster than ever actually.
author Timo Sirainen <tss@iki.fi>
date Tue, 21 Jan 2003 07:37:35 +0200
parents 8028c4dcf38f
children e0dbaabbc22b
line wrap: on
line source

#ifndef __MESSAGE_SEND_H
#define __MESSAGE_SEND_H

struct message_size;

/* Send message to client inserting CRs if needed. Only max_virtual_size
   bytes if sent (relative to virtual_skip), if you want it unlimited,
   use (uoff_t)-1. Remember that if input begins with LF, CR is inserted
   before it unless virtual_skip = 1. Returns number of bytes sent, or -1
   if error. */
off_t message_send(struct ostream *output, struct istream *input,
		   const struct message_size *msg_size,
		   uoff_t virtual_skip, uoff_t max_virtual_size);

#endif