X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mx.h;h=efc732bff042b4e3f03299f63691717a1090cec2;hb=74697a5c38af6a85ce3b0062d781c35814a9f536;hp=b5fdd6bf3208e0d1c1dd7fa332a90f4b8ed93190;hpb=3cb53df6efcb6b137bbab53c16da4eddbc5a1b2b;p=apps%2Fmadmutt.git diff --git a/mx.h b/mx.h index b5fdd6b..efc732b 100644 --- a/mx.h +++ b/mx.h @@ -17,24 +17,18 @@ #ifndef _MX_H #define _MX_H -#include #include +#include "mutt.h" -/* - * supported mailbox formats - * in mx_init() the registration order must be exactly as given here!!!1! - */ +/* supported mailbox formats + XXX: has to be in the same order than mxfmts in mx.c */ enum { M_MBOX = 1, M_MMDF, M_MH, M_MAILDIR, -#ifdef USE_IMAP M_IMAP, -#endif -#ifdef USE_POP M_POP, -#endif #ifdef USE_NNTP M_NNTP, #endif @@ -76,7 +70,7 @@ typedef struct { time_t received; /* the time at which this message was received */ } MESSAGE; -typedef struct { +typedef struct mx_t { /* folder magic */ int type; /* may we stat() it? */ @@ -104,9 +98,6 @@ typedef struct { int (*mx_commit_message) (MESSAGE*, CONTEXT*); } mx_t; -/* called from main: init all folder types */ -void mx_init (void); - /* flags for mx_open_mailbox() */ #define M_NOSORT (1<<0) /* do not sort the mailbox after opening it */ #define M_APPEND (1<<1) /* open mailbox for appending messages */ @@ -170,5 +161,6 @@ 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 */