diff options
author | Milan Crha <mcrha@redhat.com> | 2008-11-13 04:03:07 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2008-11-13 04:03:07 +0800 |
commit | d808366b5f070f8700a4f116c473235063523e7f (patch) | |
tree | fca822eef57620c5ffcaf772b88618c3bdea65b6 /mail/mail-config.c | |
parent | 8ef97f1b13849dc22c24b76e17cbfb8d23d7aa70 (diff) | |
download | gsoc2013-evolution-d808366b5f070f8700a4f116c473235063523e7f.tar.gz gsoc2013-evolution-d808366b5f070f8700a4f116c473235063523e7f.tar.zst gsoc2013-evolution-d808366b5f070f8700a4f116c473235063523e7f.zip |
** Part of fix for bug #524377
2008-11-12 Milan Crha <mcrha@redhat.com>
** Part of fix for bug #524377
* configure.in: Bump eds minimum version to 2.25.2 because of
camel's int camel_header_param_encode_filenames_in_rfc_2047.
* mail/mail-config.glade:
* mail/evolution-mail.schemas.in:
* mail/em-composer-prefs.c: (em_composer_prefs_construct):
* mail/mail-config.c: (gconf_outlook_filenames_changed), (mail_config_init):
Declare, be able to change and listen to changes on new key,
'/apps/evolution/mail/composer/outlook_filenames' to encode file names
header in camel based on the RFC 2047, instead of the correct RFC 2231.
Note: Requires at least eds revision 9756.
svn path=/trunk/; revision=36779
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 4629d7a310..001b5399c7 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -248,6 +248,22 @@ gconf_style_changed (GConfClient *client, guint cnxn_id, } static void +gconf_outlook_filenames_changed (GConfClient *client, guint cnxn_id, + GConfEntry *entry, gpointer user_data) +{ + extern int camel_header_param_encode_filenames_in_rfc_2047; + + g_return_if_fail (client != NULL); + + /* pass option to the camel */ + if (gconf_client_get_bool (client, "/apps/evolution/mail/composer/outlook_filenames", NULL)) { + camel_header_param_encode_filenames_in_rfc_2047 = 1; + } else { + camel_header_param_encode_filenames_in_rfc_2047 = 0; + } +} + +static void gconf_jh_check_changed (GConfClient *client, guint cnxn_id, GConfEntry *entry, gpointer user_data) { @@ -369,6 +385,12 @@ mail_config_init (void) gconf_client_notify_add ( config->gconf, key, func, NULL, NULL, NULL); + key = "/apps/evolution/mail/composer/outlook_filenames"; + func = (GConfClientNotifyFunc) gconf_outlook_filenames_changed; + gconf_outlook_filenames_changed (config->gconf, 0, NULL, NULL); + gconf_client_notify_add ( + config->gconf, key, func, NULL, NULL, NULL); + /* Display Configuration */ gconf_client_add_dir ( |