Rocco Rutte:
[apps/madmutt.git] / copy.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
4  *
5  * This file is part of mutt-ng, see http://www.muttng.org/.
6  * It's licensed under the GNU General Public License,
7  * please see the file GPL in the top level source directory.
8  */
9
10 /* flags to _mutt_copy_message */
11 #define M_CM_NOHEADER   1       /* don't copy the message header */
12 #define M_CM_PREFIX     (1<<1)  /* quote the message */
13 #define M_CM_DECODE     (1<<2)  /* decode the message body into text/plain */
14 #define M_CM_DISPLAY    (1<<3)  /* output is displayed to the user */
15 #define M_CM_UPDATE     (1<<4)  /* update structs on sync */
16 #define M_CM_WEED       (1<<5)  /* weed message/rfc822 attachment headers */
17 #define M_CM_CHARCONV   (1<<6)  /* perform character set conversions */
18 #define M_CM_PRINTING   (1<<7)  /* printing the message - display light */
19 #define M_CM_REPLYING   (1<<8)  /* replying the message */
20
21
22 #define M_CM_DECODE_PGP   (1<<9)        /* used for decoding PGP messages */
23 #define M_CM_DECODE_SMIME (1<<10)       /* used for decoding S/MIME messages */
24 #define M_CM_DECODE_CRYPT  (M_CM_DECODE_PGP | M_CM_DECODE_SMIME)
25
26
27 #define M_CM_VERIFY     (1<<11) /* do signature verification */
28
29
30
31 int mutt_copy_hdr (FILE *, FILE *, long, long, int, const char *);
32
33 int mutt_copy_header (FILE *, HEADER *, FILE *, int, const char *);
34
35 int _mutt_copy_message (FILE * fpout,
36                         FILE * fpin,
37                         HEADER * hdr, BODY * body, int flags, int chflags);
38
39 int mutt_copy_message (FILE * fpout,
40                        CONTEXT * src, HEADER * hdr, int flags, int chflags);
41
42 int _mutt_append_message (CONTEXT * dest,
43                           FILE * fpin,
44                           CONTEXT * src,
45                           HEADER * hdr, BODY * body, int flags, int chflags);
46
47 int mutt_append_message (CONTEXT * dest,
48                          CONTEXT * src,
49                          HEADER * hdr, int cmflags, int chflags);