X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mh.h;fp=mh.h;h=011045e7a27e3da29e92d928274fa7b3dcc2f2d6;hp=0000000000000000000000000000000000000000;hb=ee1d4d931ca3ebec494694b74a1868a7a2e631e3;hpb=021836b3da95b9243e9f8386d87d220ab4f7f7b7 diff --git a/mh.h b/mh.h new file mode 100644 index 0000000..011045e --- /dev/null +++ b/mh.h @@ -0,0 +1,38 @@ +/* + * 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 Maildir/MH style mailboxes + */ + +#ifndef _MH_H +#define _MH_H + +#include "mx.h" + +int mh_read_dir (CONTEXT *, const char *); +int mh_sync_mailbox (CONTEXT *, int *); +int mh_check_mailbox (CONTEXT *, int *); +int mh_buffy (const char *); +int mh_check_empty (const char *); + +int maildir_read_dir (CONTEXT *); +int maildir_check_mailbox (CONTEXT *, int *); +int maildir_check_empty (const char *); + +int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *); +int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *); + +int maildir_open_new_message (MESSAGE *, CONTEXT *, HEADER *); +int mh_open_new_message (MESSAGE *, CONTEXT *, HEADER *); + +FILE *maildir_open_find_message (const char *, const char *); + +#endif /* !_MH_H */