~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-mail/message-size.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
/* Calculate size of message header. Leave the input point to first
11
11
   character in body. */
12
12
int message_get_header_size(struct istream *input, struct message_size *hdr,
13
 
                            bool *has_nuls);
 
13
                            bool *has_nuls_r);
14
14
/* Calculate size of message body. */
15
15
int message_get_body_size(struct istream *input, struct message_size *body,
16
 
                          bool *has_nuls);
 
16
                          bool *has_nuls_r);
17
17
 
18
18
/* Sum contents of src into dest. */
19
19
void message_size_add(struct message_size *dest,
20
20
                      const struct message_size *src);
21
21
 
 
22
/* Skip number of virtual bytes from buffer. last_cr_r is set to TRUE if the
 
23
   last character we skipped was '\r', meaning that the next character should
 
24
   be '\n', which shouldn't be treated as "\r\n". */
 
25
int message_skip_virtual(struct istream *input, uoff_t virtual_skip,
 
26
                         bool *last_cr_r);
 
27
 
22
28
#endif