/* * Copyright notice from original mutt: * Copyright (C) 1996-2002 Michael R. Elkins * Copyright (C) 1999-2002 Thomas Roessler * * 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. */ /* * functions for dealing with mbox/mmdf style mailboxes */ #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_close_mailbox (CONTEXT *); int mbox_lock_mailbox (CONTEXT *, int, int); void mbox_unlock_mailbox (CONTEXT *); int mbox_check_empty (const char*); int mbox_is_magic (const char*, struct stat*); mx_t* mbox_reg_mx (void); mx_t* mmdf_reg_mx (void); #endif