imap.h (2052B)
1 /* 2 * Claws Mail -- 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 __IMAP_H__ 21 #define __IMAP_H__ 22 23 #include "folder.h" 24 25 typedef enum 26 { 27 IMAP_AUTH_PLAINTEXT = 1 << 0, 28 IMAP_AUTH_CRAM_MD5 = 1 << 1, 29 IMAP_AUTH_ANON = 1 << 2, 30 IMAP_AUTH_GSSAPI = 1 << 3, 31 IMAP_AUTH_DIGEST_MD5 = 1 << 4, 32 IMAP_AUTH_SCRAM_SHA1 = 1 << 5, 33 IMAP_AUTH_PLAIN = 1 << 6, 34 IMAP_AUTH_LOGIN = 1 << 7, 35 IMAP_AUTH_OAUTH2 = 1 << 8, 36 IMAP_AUTH_SCRAM_SHA224 = 1 << 9, 37 IMAP_AUTH_SCRAM_SHA256 = 1 << 10, 38 IMAP_AUTH_SCRAM_SHA384 = 1 << 11, 39 IMAP_AUTH_SCRAM_SHA512 = 1 << 12, 40 } IMAPAuthType; 41 42 FolderClass *imap_get_class (void); 43 guint imap_folder_get_refcnt(Folder *folder); 44 void imap_folder_ref(Folder *folder); 45 void imap_folder_unref(Folder *folder); 46 gchar imap_get_path_separator_for_item (FolderItem *item); 47 void imap_disconnect_all(gboolean have_connectivity); 48 gint imap_subscribe(Folder *folder, FolderItem *item, gchar *rpath, gboolean sub); 49 GList *imap_scan_subtree(Folder *folder, FolderItem *item, gboolean unsubs_only, gboolean recursive); 50 void imap_cache_msg(FolderItem *item, gint msgnum); 51 52 void imap_cancel_all(void); 53 gboolean imap_cancel_all_enabled(void); 54 55 char* imap_modified_utf7_to_utf8(const char *mbox, gboolean change_spaces); 56 char* imap_utf8_to_modified_utf7(const char *src, gboolean change_spaces); 57 58 #endif /* __IMAP_H__ */