2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
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.
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 */
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)
27 #define M_CM_VERIFY (1<<11) /* do signature verification */
31 int mutt_copy_hdr (FILE *, FILE *, long, long, int, const char *);
33 int mutt_copy_header (FILE *, HEADER *, FILE *, int, const char *);
35 int _mutt_copy_message (FILE * fpout,
37 HEADER * hdr, BODY * body, int flags, int chflags);
39 int mutt_copy_message (FILE * fpout,
40 CONTEXT * src, HEADER * hdr, int flags, int chflags);
42 int _mutt_append_message (CONTEXT * dest,
45 HEADER * hdr, BODY * body, int flags, int chflags);
47 int mutt_append_message (CONTEXT * dest,
49 HEADER * hdr, int cmflags, int chflags);