e395254b8d28f23c6240b8dea5566252fb8f2561
[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 <sys/stat.h>
19
20 #include "mx.h"
21
22 /* TODO all of these must disappear to achieve good information hiding */
23
24 int mh_check_mailbox (CONTEXT *, int *);
25 int mh_buffy (const char *);
26 int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *);
27 int mh_open_new_message (MESSAGE *, CONTEXT *, HEADER *);
28
29 int maildir_check_mailbox (CONTEXT *, int *);
30 int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
31 int maildir_open_new_message (MESSAGE *, CONTEXT *, HEADER *);
32 FILE *maildir_open_find_message (const char *, const char *);
33
34 mx_t* maildir_reg_mx (void);
35 mx_t* mh_reg_mx (void);
36
37 #endif /* !_MH_H */