Rocco Rutte:
[apps/madmutt.git] / attach.h
index e7b5513..3bc1b82 100644 (file)
--- a/attach.h
+++ b/attach.h
@@ -1,22 +1,24 @@
 /*
 /*
+ * Copyright notice from original mutt:
  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
  * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
- * 
- *     This program is free software; you can redistribute it and/or modify
- *     it under the terms of the GNU General Public License as published by
- *     the Free Software Foundation; either version 2 of the License, or
- *     (at your option) any later version.
- * 
- *     This program is distributed in the hope that it will be useful,
- *     but WITHOUT ANY WARRANTY; without even the implied warranty of
- *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *     GNU General Public License for more details.
- * 
- *     You should have received a copy of the GNU General Public License
- *     along with this program; if not, write to the Free Software
- *     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ *
+ * This file is part of mutt-ng, see http://www.muttng.org/.
+ * It's licensed under the GNU General Public License,
+ * please see the file GPL in the top level source directory.
  */
  */
+#ifndef _MUTT_ATTACH_H
+#define _MUTT_ATTACH_H
 
 
-/* common protos for compose / attach menus */
+#include "mutt_menu.h"
+
+typedef struct attachptr {
+  BODY *content;
+  int parent_type;
+  char *tree;
+  int level;
+  int num;
+  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,
 
 int mutt_tag_attach (MUTTMENU * menu, int n, int m);
 int mutt_attach_display_loop (MUTTMENU * menu, int op, FILE * fp,
@@ -33,3 +35,21 @@ 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);
 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_save_attachment (FILE *, BODY *, char *, int, HEADER *);
+int mutt_pipe_attachment (FILE *, BODY *, const char *, char *);
+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);
+int mutt_edit_attachment (BODY *);
+int mutt_compose_attachment (BODY * a);
+int mutt_get_tmp_attachment (BODY *);
+
+#endif /* !_MUTT_ATTACH_H */