Rocco Rutte:
[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 "mutt_menu.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 int mutt_tag_attach (MUTTMENU * menu, int n, int m);
24 int mutt_attach_display_loop (MUTTMENU * menu, int op, FILE * fp,
25                               HEADER * hdr, BODY * cur, ATTACHPTR *** idxp,
26                               short *idxlen, short *idxmax, int recv);
27
28
29 void mutt_save_attachment_list (FILE * fp, int tag, BODY * top, HEADER * hdr,
30                                 MUTTMENU * menu);
31 void mutt_pipe_attachment_list (FILE * fp, int tag, BODY * top, int filter);
32 void mutt_print_attachment_list (FILE * fp, int tag, BODY * top);
33
34 void mutt_attach_bounce (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
35 void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
36 void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
37 void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
38
39 ATTACHPTR **mutt_gen_attach_list (BODY *, int, ATTACHPTR **, short *, short *,
40                                   int, int);
41
42 void mutt_update_tree (ATTACHPTR **, short);
43
44 int mutt_print_attachment (FILE *, BODY *);
45 int mutt_decode_save_attachment (FILE *, BODY *, char *, int, int);
46 int mutt_save_attachment (FILE *, BODY *, char *, int, HEADER *);
47 int mutt_pipe_attachment (FILE *, BODY *, const char *, char *);
48 int mutt_view_attachment (FILE *, BODY *, int, HEADER *, ATTACHPTR **, short);
49 int mutt_is_autoview (BODY *, const char *);
50 void mutt_check_lookup_list (BODY *, char *, int);
51 int mutt_edit_attachment (BODY *);
52 int mutt_compose_attachment (BODY * a);
53 int mutt_get_tmp_attachment (BODY *);
54
55 #endif /* !_MUTT_ATTACH_H */