make return receipts work again
[claws.git] / src / mbox.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999,2000 Hiroyuki Yamamoto
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __MBOX_H__
21 #define __MBOX_H__
22
23 #include <glib.h>
24
25 #include "folder.h"
26
27 typedef enum {
28         LOCK_FILE,
29         LOCK_FLOCK
30 } LockType;
31
32 gint proc_mbox          (FolderItem     *dest,
33                          const gchar    *mbox,
34                          GHashTable     *folder_table);
35 gint lock_mbox          (const gchar    *base,
36                          LockType        type);
37 gint unlock_mbox        (const gchar    *base,
38                          gint            fd,
39                          LockType        type);
40 gint copy_mbox          (const gchar    *src,
41                          const gchar    *dest);
42 void empty_mbox         (const gchar    *mbox);
43
44 gint export_to_mbox     (FolderItem     *src,
45                          const gchar    *mbox);
46
47 #endif /* __MBOX_H__ */