1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2012 Hiroyuki Yamamoto and the Claws Mail team
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 3 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, see <http://www.gnu.org/licenses/>.
17  *
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 
33 gint proc_mbox		(FolderItem	*dest,
34 			 const gchar	*mbox,
35 			 gboolean	 apply_filter,
36 			 PrefsAccount	*account);
37 gint lock_mbox		(const gchar	*base,
38 			 LockType	 type);
39 gint unlock_mbox	(const gchar	*base,
40 			 gint		 fd,
41 			 LockType	 type);
42 gint copy_mbox		(gint		 srcfd,
43 			 const gchar	*dest);
44 void empty_mbox		(const gchar	*mbox);
45 
46 gint export_to_mbox	(FolderItem	*src,
47 			 const gchar	*mbox);
48 gint export_list_to_mbox(GSList 	*mlist,
49 			 const gchar 	*mbox);
50 
51 #endif /* __MBOX_H__ */
52