X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mx.h;h=8f0a3652c5a792f2dd28058fd4450181b84dc637;hp=a53763659c0abdfdeecdd06bb93d0a8b5012da5d;hb=230399f9632c37b66c1c117a17e8327eae6b3235;hpb=baf86ef44a449017ea20c3fcb252b66dc43fe6ce diff --git a/mx.h b/mx.h index a537636..8f0a365 100644 --- a/mx.h +++ b/mx.h @@ -19,28 +19,25 @@ #include #include +#include + +#include "mutt.h" /* * supported mailbox formats * in mx_init() the registration order must be exactly as given here!!!1! */ enum { - M_MBOX = 1, - M_MMDF, - M_MH, - M_MAILDIR -#ifdef USE_IMAP - , M_IMAP -#endif -#ifdef USE_POP - , M_POP -#endif + M_MBOX = 1, + M_MMDF, + M_MH, + M_MAILDIR, + M_IMAP, + M_POP, #ifdef USE_NNTP - , M_NNTP -#endif -#ifdef USE_COMPRESSED - , M_COMPRESSED + M_NNTP, #endif + M_COMPRESSED }; enum { @@ -102,6 +99,8 @@ typedef struct { void (*mx_fastclose_mailbox) (CONTEXT*); /* write out changes */ int (*mx_sync_mailbox) (CONTEXT*, int, int*); + /* commit a message to a folder */ + int (*mx_commit_message) (MESSAGE*, CONTEXT*); } mx_t; /* called from main: init all folder types */ @@ -169,4 +168,7 @@ void mx_update_tables (CONTEXT *, int); int mx_lock_file (const char *, int, int, int, int); int mx_unlock_file (const char *path, int fd, int dot); +int mx_rebuild_cache (void); +void mutt_parse_mime_message (CONTEXT * ctx, HEADER *); + #endif /* !_MX_H */