]> granicus.if.org Git - neomutt/blob - handler.h
Fix mutt_write_mime_body() application/pgp-encrypted handling
[neomutt] / handler.h
1 /**
2  * @file
3  * Decide how to display email content
4  *
5  * @authors
6  * Copyright (C) 1996-2000,2002,2010,2013 Michael R. Elkins <me@mutt.org>
7  *
8  * @copyright
9  * This program is free software: you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License as published by the Free Software
11  * Foundation, either version 2 of the License, or (at your option) any later
12  * version.
13  *
14  * This program is distributed in the hope that it will be useful, but WITHOUT
15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU General Public License along with
20  * this program.  If not, see <http://www.gnu.org/licenses/>.
21  */
22
23 #ifndef MUTT_HANDLER_H
24 #define MUTT_HANDLER_H
25
26 #include <stddef.h>
27 #include <iconv.h>
28 #include <stdbool.h>
29
30 struct Body;
31 struct State;
32
33 /* These Config Variables are only used in handler.c */
34 extern bool  C_HonorDisposition;
35 extern bool  C_ImplicitAutoview;
36 extern bool  C_IncludeEncrypted;
37 extern bool  C_IncludeOnlyfirst;
38 extern struct Slist *C_PreferredLanguages;
39 extern bool  C_ReflowText;
40 extern char *C_ShowMultipartAlternative;
41
42 int  mutt_body_handler(struct Body *b, struct State *s);
43 bool mutt_can_decode(struct Body *a);
44 void mutt_decode_attachment(struct Body *b, struct State *s);
45 void mutt_decode_base64(struct State *s, size_t len, bool istext, iconv_t cd);
46
47 #endif /* MUTT_HANDLER_H */