X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mbox.h;h=8c26e82b5841c1861085b8e3e3e84570abf5e614;hp=031e54a46b98a107f6e0205594f0c32da4e6d124;hb=f70e0d5b479d4917b97d5e1e50f9276dcd51cad3;hpb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3 diff --git a/mbox.h b/mbox.h index 031e54a..8c26e82 100644 --- a/mbox.h +++ b/mbox.h @@ -15,23 +15,22 @@ #ifndef _MBOX_H #define _MBOX_H +#include + #include "mx.h" +/* TODO all of these must disappear to achieve good information hiding */ + #define MMDF_SEP "\001\001\001\001\n" -int mbox_sync_mailbox (CONTEXT *, int *); -int mbox_open_mailbox (CONTEXT *); -int mbox_check_mailbox (CONTEXT *, int *); int mbox_close_mailbox (CONTEXT *); int mbox_lock_mailbox (CONTEXT *, int, int); -int mbox_parse_mailbox (CONTEXT *); -int mmdf_parse_mailbox (CONTEXT *); void mbox_unlock_mailbox (CONTEXT *); -int mbox_check_empty (const char *); - +int mbox_check_empty (const char*); +int mbox_is_magic (const char*, struct stat*); int mbox_strict_cmp_headers (const HEADER *, const HEADER *); -int mbox_reopen_mailbox (CONTEXT *, int *); -int mbox_open_new_message (MESSAGE * msg, CONTEXT * dest, HEADER * hdr); +mx_t* mbox_reg_mx (void); +mx_t* mmdf_reg_mx (void); #endif