Fix madmutt for stupid terms with only 64 colors.
[apps/madmutt.git] / attach.h
index 3bc1b82..9d55056 100644 (file)
--- a/attach.h
+++ b/attach.h
@@ -9,7 +9,7 @@
 #ifndef _MUTT_ATTACH_H
 #define _MUTT_ATTACH_H
 
-#include "mutt_menu.h"
+#include <lib-mime/mime-types.h>
 
 typedef struct attachptr {
   BODY *content;
@@ -20,31 +20,15 @@ typedef struct attachptr {
   unsigned int unowned:1;       /* don't unlink on detach */
 } ATTACHPTR;
 
-int mutt_tag_attach (MUTTMENU * menu, int n, int m);
-int mutt_attach_display_loop (MUTTMENU * menu, int op, FILE * fp,
-                              HEADER * hdr, BODY * cur, ATTACHPTR *** idxp,
-                              short *idxlen, short *idxmax, int recv);
-
-
-void mutt_save_attachment_list (FILE * fp, int tag, BODY * top, HEADER * hdr,
-                                MUTTMENU * menu);
-void mutt_pipe_attachment_list (FILE * fp, int tag, BODY * top, int filter);
-void mutt_print_attachment_list (FILE * fp, int tag, BODY * top);
-
 void mutt_attach_bounce (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
 void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
 void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
 void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
 
-ATTACHPTR **mutt_gen_attach_list (BODY *, int, ATTACHPTR **, short *, short *,
-                                  int, int);
-
-void mutt_update_tree (ATTACHPTR **, short);
-
 int mutt_print_attachment (FILE *, BODY *);
-int mutt_decode_save_attachment (FILE *, BODY *, char *, int, int);
+int mutt_decode_save_attachment (FILE *, BODY *, int, int);
 int mutt_save_attachment (FILE *, BODY *, char *, int, HEADER *);
-int mutt_pipe_attachment (FILE *, BODY *, const char *, char *);
+int mutt_pipe_attachment (FILE *, BODY *, const char *, int);
 int mutt_view_attachment (FILE *, BODY *, int, HEADER *, ATTACHPTR **, short);
 int mutt_is_autoview (BODY *, const char *);
 void mutt_check_lookup_list (BODY *, char *, int);
@@ -52,4 +36,8 @@ int mutt_edit_attachment (BODY *);
 int mutt_compose_attachment (BODY * a);
 int mutt_get_tmp_attachment (BODY *);
 
+/* this checks whether at least one text line matches
+ * AttachRemindRegexp and returns 1 if so and 0 otherwise */
+int mutt_attach_check (HEADER* hdr);
+
 #endif /* !_MUTT_ATTACH_H */