Rocco Rutte:
[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 *, const char *);
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
26 int maildir_read_dir (CONTEXT *);
27 int maildir_check_mailbox (CONTEXT *, int *);
28 int maildir_check_empty (const char *);
29
30 int maildir_commit_message (CONTEXT *, MESSAGE *, HEADER *);
31 int mh_commit_message (CONTEXT *, MESSAGE *, HEADER *);
32
33 int maildir_open_new_message (MESSAGE *, CONTEXT *, HEADER *);
34 int mh_open_new_message (MESSAGE *, CONTEXT *, HEADER *);
35
36 FILE *maildir_open_find_message (const char *, const char *);
37
38 #endif /* !_MH_H */