move debug.c
[apps/madmutt.git] / attach.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 #ifndef _MUTT_ATTACH_H
10 #define _MUTT_ATTACH_H
11
12 #include <lib-mime/mime-types.h>
13
14 typedef struct attachptr {
15   BODY *content;
16   int parent_type;
17   char *tree;
18   int level;
19   int num;
20   unsigned int unowned:1;       /* don't unlink on detach */
21 } ATTACHPTR;
22
23 void mutt_attach_bounce (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
24 void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
25 void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
26 void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
27
28 int mutt_print_attachment (FILE *, BODY *);
29 int mutt_decode_save_attachment (FILE *, BODY *, char *, int, int);
30 int mutt_save_attachment (FILE *, BODY *, char *, int, HEADER *);
31 int mutt_pipe_attachment (FILE *, BODY *, const char *, char *);
32 int mutt_view_attachment (FILE *, BODY *, int, HEADER *, ATTACHPTR **, short);
33 int mutt_is_autoview (BODY *, const char *);
34 void mutt_check_lookup_list (BODY *, char *, int);
35 int mutt_edit_attachment (BODY *);
36 int mutt_compose_attachment (BODY * a);
37 int mutt_get_tmp_attachment (BODY *);
38
39 /* this checks whether at least one text line matches
40  * AttachRemindRegexp and returns 1 if so and 0 otherwise */
41 int mutt_attach_check (HEADER* hdr);
42
43 #endif /* !_MUTT_ATTACH_H */