#include "mutt.h"
#include "mutt_menu.h"
+#include "attach.h"
#include "mutt_curses.h"
#include "keymap.h"
#include "rfc1524.h"
/* common protos for compose / attach menus */
+#ifndef _ATTACH_H_
+#define _ATTACH_H_ 1
+
+#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;
+
+ATTACHPTR **mutt_gen_attach_list (BODY *, int, ATTACHPTR **, short *, short *,
+ int, int);
+void mutt_update_tree (ATTACHPTR **, short);
+int mutt_view_attachment (FILE*, BODY *, int, HEADER *, ATTACHPTR **, short);
+
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,
void mutt_attach_resend (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
void mutt_attach_forward (FILE *, HEADER *, ATTACHPTR **, short, BODY *);
void mutt_attach_reply (FILE *, HEADER *, ATTACHPTR **, short, BODY *, int);
+
+#endif /* _ATTACH_H_ */
#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
+#include "attach.h"
#include "buffy.h"
#include "mapping.h"
#include "sort.h"
#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
+#include "attach.h"
#include "mailbox.h"
#include "mapping.h"
#include "sort.h"
unsigned int closing : 1; /* mailbox is being closed */
} CONTEXT;
-typedef struct attachptr
-{
- BODY *content;
- int parent_type;
- char *tree;
- int level;
- int num;
- unsigned int unowned : 1; /* don't unlink on detach */
-} ATTACHPTR;
-
typedef struct
{
FILE *fpin;
* This file is named mutt_menu.h so it doesn't collide with ncurses menu.h
*/
+#ifndef _MUTT_MENU_H_
+#define _MUTT_MENU_H_ 1
+
#include "keymap.h"
#include "mutt_regex.h"
/* used in both the index and pager index to make an entry. */
void index_make_entry (char *, size_t, struct menu_t *, int);
int index_color (int);
+
+#endif /* _MUTT_MENU_H_ */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*/
+#include "attach.h"
+
/* dynamic internal flags */
#define M_SHOWFLAT (1<<0)
#define M_SHOWCOLOR (1<<1)
#endif /* USE_HCACHE */
-ATTACHPTR **mutt_gen_attach_list (BODY *, int, ATTACHPTR **, short *, short *, int, int);
-
time_t mutt_decrease_mtime (const char *, struct stat *);
time_t mutt_local_tz (time_t);
time_t mutt_mktime (struct tm *, int);
void mutt_unblock_signals (void);
void mutt_unblock_signals_system (int);
void mutt_update_encoding (BODY *a);
-void mutt_update_tree (ATTACHPTR **, short);
void mutt_version (void);
void mutt_view_attachments (HEADER *);
void mutt_write_address_list (ADDRESS *adr, FILE *fp, int linelen, int display);
int mutt_thread_set_flag (HEADER *, int, int, int);
int mutt_user_is_recipient (HEADER *);
void mutt_update_num_postponed (void);
-int mutt_view_attachment (FILE*, BODY *, int, HEADER *, ATTACHPTR **, short);
int mutt_wait_filter (pid_t);
int mutt_which_case (const char *);
int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int, char *);