d8b385bb135d2e2284306e9686e7a4bf595779cc
[apps/madmutt.git] / mh.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-2002 Michael R. Elkins <me@mutt.org>
4  * Copyright (C) 1999-2002 Thomas Roessler <roessler@does-not-exist.org>
5  *
6  * This file is part of mutt-ng, see http://www.muttng.org/.
7  * It's licensed under the GNU General Public License,
8  * please see the file GPL in the top level source directory.
9  */
10
11 /*
12  * functions for dealing with Maildir/MH style mailboxes
13  */
14
15 #ifndef _MH_H
16 #define _MH_H
17
18 #include "mx.h"
19
20 int mh_read_dir (CONTEXT *);
21 int mh_sync_mailbox (CONTEXT *, int *);
22 int mh_check_mailbox (CONTEXT *, int *);
23 int mh_buffy (const char *);
24 int mh_check_empty (const char *);
25 int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *);
26 int mh_open_new_message (MESSAGE *, CONTEXT *, HEADER *);
27 int mh_is_magic (const char*);
28
29 int maildir_read_dir (CONTEXT *);
30 int maildir_check_mailbox (CONTEXT *, int *);
31 int maildir_check_empty (const char *);
32 int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
33 int maildir_open_new_message (MESSAGE *, CONTEXT *, HEADER *);
34 FILE *maildir_open_find_message (const char *, const char *);
35 int maildir_is_magic (const char*);
36
37 mx_t* maildir_reg_mx (void);
38 mx_t* mh_reg_mx (void);
39
40 #endif /* !_MH_H */