2007-02-21 [wwp] 2.7.2cvs59
[claws.git] / src / imap.h
1 /*
2  * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client
3  * Copyright (C) 1999-2007 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 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __IMAP_H__
21 #define __IMAP_H__
22
23 #include "folder.h"
24
25 typedef enum
26 {
27         IMAP_AUTH_LOGIN         = 1 << 0,
28         IMAP_AUTH_CRAM_MD5      = 1 << 1,
29         IMAP_AUTH_ANON          = 1 << 2,
30         IMAP_AUTH_GSSAPI        = 1 << 3
31 } IMAPAuthType;
32
33 FolderClass *imap_get_class             (void);
34 guint imap_folder_get_refcnt(Folder *folder);
35 void imap_folder_ref(Folder *folder);
36 void imap_folder_unref(Folder *folder);
37 gchar imap_get_path_separator_for_item  (FolderItem *item);
38 void imap_disconnect_all(void);
39 gint imap_scan_tree_real(Folder *folder, gboolean subs_only);
40 gint imap_subscribe(Folder *folder, FolderItem *item, gchar *rpath, gboolean sub);
41 GList *imap_scan_subtree(Folder *folder, FolderItem *item, gboolean unsubs_only, gboolean recursive);
42 #endif /* __IMAP_H__ */