Rocco Rutte:
[apps/madmutt.git] / rfc3676.h
1 /*
2  * Parts were written/modified by:
3  * Andreas Krennmair <ak@synflood.at>
4  * Peter J. Holzer <hjp@hjp.net>
5  * Rocco Rutte <pdmef@cs.tu-berlin.de>
6  *
7  * This file is part of mutt-ng, see http://www.muttng.org/.
8  * It's licensed under the GNU General Public License,
9  * please see the file GPL in the top level source directory.
10  */
11 #ifndef _MUTT_RFC3676_H
12 #define _MUTT_RFC3676_H
13
14 #include "mutt.h"
15 #include "state.h"
16
17 /* body handler implementing RfC 3676 for format=flowed */
18 int rfc3676_handler (BODY * a, STATE * s);
19
20 /*
21  * this properly ensures correct quoting; correct is:
22  * - no spaces within the complete quote prefix of line (sect. 4.5)
23  * - change all quoting chars to '>' by force; see BUGS in srcdir
24  */
25 void rfc3676_quote_line (STATE* s, char* dst, size_t dstlen,
26                          const char* line);
27
28 /*
29  * this does the space-stuffing required as in 'MUST'
30  * this is only used right after editing the initial message's content
31  * as elsewhere it's too difficult to catch all circumstances right;
32  * esp. with '>' which this routine doesn't cover... XXX
33  */
34 void rfc3676_space_stuff (HEADER* hdr);
35
36 #endif /* !_MUTT_RFC3676_H */