view src/lib-mail/quoted-printable.h @ 9261:51aee73e49a5 HEAD

maildir: When UIDVALIDITY changes, don't reset uid_next to 1 in uidlist.
author Timo Sirainen <tss@iki.fi>
date Sun, 26 Jul 2009 23:36:12 -0400
parents ea84eb708efc
children
line wrap: on
line source

#ifndef QUOTED_PRINTABLE_H
#define QUOTED_PRINTABLE_H

/* Translates quoted printable data into binary. dest must be at least the
   size of src, and may be same as src. Decoding errors are ignored.

   This function may be called multiple times for parsing the same stream.
   src_pos is updated to first non-translated character in src. */
void quoted_printable_decode(const unsigned char *src, size_t src_size,
			     size_t *src_pos_r, buffer_t *dest);
/* Decode MIME "Q" encoding. */
void quoted_printable_q_decode(const unsigned char *src, size_t src_size,
			       buffer_t *dest);

#endif