aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-05-12 04:58:44 +0800
committerDan Winship <danw@src.gnome.org>2001-05-12 04:58:44 +0800
commit714cf99b72b368750d167e8b4861dc8394878458 (patch)
treed0d5b57b1f21fa3f458995ba40cb4a32ed188673 /mail/mail-config.h
parentba099582f365aa886cf426c4b7c422244ccec2e4 (diff)
downloadgsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.tar
gsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.tar.gz
gsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.tar.bz2
gsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.tar.lz
gsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.tar.xz
gsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.tar.zst
gsoc2013-evolution-714cf99b72b368750d167e8b4861dc8394878458.zip
callback to use GNOME-VFS to load http data. (on_url_requested): Handle
* mail-display.c (load_http): callback to use GNOME-VFS to load http data. (on_url_requested): Handle http: URLs that refer to either MIME parts or web data. (mail_display_redisplay_when_loaded): Moved out of mail_content_loaded and made more generic. * mail-format.c (add_url): Handle two different kinds of URLs (URLs that point to CamelMimeParts and URLs that point to GByteArrays). (mail_content_loaded): Use mail_display_redisplay_when_loaded. (format_mime_part): Renamed from "call_handler_function". Also, record Content-Location if the part has one. (This is not yet 100% correct: it doesn't deal with relative URLs correctly.) (handle_text_html): Use Content-Location URL rather than Content-ID, when available (will help deal with relative URLs once GtkHTML supports that better). (etc): Update for changes. * mail-config.c (mail_config_get_http_mode, mail_config_set_http_mode): get/set HTTP image downloading mode. (config_read, mail_config_write_on_exit): save/load that data. svn path=/trunk/; revision=9773
Diffstat (limited to 'mail/mail-config.h')
-rw-r--r--mail/mail-config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/mail-config.h b/mail/mail-config.h
index 198e0f4cde..31e31ddb2f 100644
--- a/mail/mail-config.h
+++ b/mail/mail-config.h
@@ -59,6 +59,11 @@ typedef struct {
gchar *sent_folder_name, *sent_folder_uri;
} MailConfigAccount;
+typedef enum {
+ MAIL_CONFIG_HTTP_NEVER, MAIL_CONFIG_HTTP_SOMETIMES,
+ MAIL_CONFIG_HTTP_ALWAYS,
+} MailConfigHTTPMode;
+
/* Identities */
MailConfigIdentity *identity_copy (const MailConfigIdentity *id);
void identity_destroy (MailConfigIdentity *id);
@@ -115,6 +120,9 @@ void mail_config_set_pgp_type (CamelPgpType pgp_type);
const char *mail_config_get_pgp_path (void);
void mail_config_set_pgp_path (const char *pgp_path);
+MailConfigHTTPMode mail_config_get_http_mode (void);
+void mail_config_set_http_mode (MailConfigHTTPMode);
+
const MailConfigAccount *mail_config_get_default_account (void);
const MailConfigAccount *mail_config_get_account_by_name (const char *account_name);
const MailConfigAccount *mail_config_get_account_by_source_url (const char *url);