1 /* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU Lesser General Public License as published by 4 * the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, but 7 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 8 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 9 * for more details. 10 * 11 * You should have received a copy of the GNU Lesser General Public License 12 * along with this program; if not, see <http://www.gnu.org/licenses/>. 13 * 14 * 15 * Authors: 16 * Jeffrey Stedfast <fejj@ximian.com> 17 * 18 * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) 19 * 20 */ 21 22 #if !defined (__LIBEMAIL_ENGINE_H_INSIDE__) && !defined (LIBEMAIL_ENGINE_COMPILATION) 23 #error "Only <libemail-engine/libemail-engine.h> should be included directly." 24 #endif 25 26 #ifndef MAIL_CONFIG_H 27 #define MAIL_CONFIG_H 28 29 #include <libemail-engine/e-mail-session.h> 30 31 G_BEGIN_DECLS 32 33 /* Configuration */ 34 void mail_config_init (EMailSession *session); 35 36 /* General Accessor functions */ 37 38 gint mail_config_get_address_count (void); 39 gboolean mail_config_get_show_mails_in_preview 40 (void); 41 42 /* static utility functions */ 43 gchar * mail_config_folder_to_cachename (CamelFolder *folder, 44 const gchar *prefix); 45 gint mail_config_get_sync_timeout (void); 46 47 void mail_config_reload_junk_headers (EMailSession *session); 48 gboolean mail_config_get_lookup_book (void); 49 gboolean mail_config_get_lookup_book_local_only (void); 50 gchar * mail_config_dup_local_archive_folder (void); 51 52 G_END_DECLS 53 54 #endif /* MAIL_CONFIG_H */ 55