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 typedef struct attachptr {
18 unsigned int unowned:1; /* don't unlink on detach */
21 void mutt_attach_bounce (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
22 void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
23 void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
24 void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
26 int mutt_print_attachment (FILE *, BODY *);
27 int mutt_decode_save_attachment (FILE *, BODY *, char *, int, int);
28 int mutt_save_attachment (FILE *, BODY *, char *, int, HEADER *);
29 int mutt_pipe_attachment (FILE *, BODY *, const char *, char *);
30 int mutt_view_attachment (FILE *, BODY *, int, HEADER *, ATTACHPTR **, short);
31 int mutt_is_autoview (BODY *, const char *);
32 void mutt_check_lookup_list (BODY *, char *, int);
33 int mutt_edit_attachment (BODY *);
34 int mutt_compose_attachment (BODY * a);
35 int mutt_get_tmp_attachment (BODY *);
37 /* this checks whether at least one text line matches
38 * AttachRemindRegexp and returns 1 if so and 0 otherwise */
39 int mutt_attach_check (HEADER* hdr);
41 #endif /* !_MUTT_ATTACH_H */