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 <lib-mime/mime-types.h>
14 typedef struct attachptr {
20 unsigned int unowned:1; /* don't unlink on detach */
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);
28 int mutt_print_attachment (FILE *, BODY *);
29 int mutt_decode_save_attachment (FILE *, BODY *, int, int);
30 int mutt_save_attachment (FILE *, BODY *, char *, int, HEADER *);
31 int mutt_pipe_attachment (FILE *, BODY *, const char *, int);
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 *);
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);
43 #endif /* !_MUTT_ATTACH_H */