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 #define _MUTT_ATTACH_H
12 #include "mutt_menu.h"
14 typedef struct attachptr {
20 unsigned int unowned:1; /* don't unlink on detach */
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);
29 void mutt_save_attachment_list (FILE * fp, int tag, BODY * top, HEADER * hdr,
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);
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);
39 ATTACHPTR **mutt_gen_attach_list (BODY *, int, ATTACHPTR **, short *, short *,
42 void mutt_update_tree (ATTACHPTR **, short);
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 *);
55 #endif /* !_MUTT_ATTACH_H */