diff options
author | Dan Winship <danw@src.gnome.org> | 2002-04-11 05:23:02 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-04-11 05:23:02 +0800 |
commit | b10ec13f8b5e2cd92d111c31fcd7d4d854f55474 (patch) | |
tree | d25f3eb96811bd116bff80a4473f6984aa14381b /mail/mail-config.c | |
parent | bf2a13c1efac6b338dbc6e831ce68a16b2892797 (diff) | |
download | gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.tar gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.tar.gz gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.tar.bz2 gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.tar.lz gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.tar.xz gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.tar.zst gsoc2013-evolution-b10ec13f8b5e2cd92d111c31fcd7d4d854f55474.zip |
Handle the X-Mailer display style. (There is currently no GUI for
* mail-config.c (config_read, mail_config_write,
mail_config_get_x_mailer_display_style,
mail_config_set_x_mailer_display_style): Handle the X-Mailer
display style. (There is currently no GUI for configuring this.)
* mail-format.c (write_headers, write_xmailer_header): Show
X-Mailer/User-Agent (and Rupert's stamp of approval) as
appropriate.
svn path=/trunk/; revision=16430
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 6e2963ad22..1ecbbb1ff2 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -112,6 +112,7 @@ typedef struct { MailConfigForwardStyle default_forward_style; MailConfigReplyStyle default_reply_style; MailConfigDisplayStyle message_display_style; + MailConfigXMailerDisplayStyle x_mailer_display_style; char *default_charset; GHashTable *threaded_hash; @@ -946,6 +947,11 @@ config_read (void) config->notify_filename = bonobo_config_get_string ( config->db, "/Mail/Notify/new_mail_notification_sound_file", NULL); + /* X-Mailer header display */ + config->x_mailer_display_style = bonobo_config_get_long_with_default ( + config->db, "/Mail/Format/x_mailer_display_style", + MAIL_CONFIG_XMAILER_NONE, NULL); + /* last filesel dir */ config->last_filesel_dir = bonobo_config_get_string ( config->db, "/Mail/Filesel/last_filesel_dir", NULL); @@ -1310,6 +1316,11 @@ mail_config_write_on_exit (void) bonobo_config_set_string_wrapper (config->db, "/Mail/Notify/new_mail_notification_sound_file", config->notify_filename, NULL); + /* X-Mailer Display */ + bonobo_config_set_long (config->db, + "/Mail/Format/x_mailer_display_style", + config->x_mailer_display_style, NULL); + /* last filesel dir */ bonobo_config_set_string_wrapper (config->db, "/Mail/Filesel/last_filesel_dir", config->last_filesel_dir, NULL); @@ -2132,6 +2143,18 @@ mail_config_set_new_mail_notify_sound_file (const char *filename) config->notify_filename = g_strdup (filename); } +MailConfigXMailerDisplayStyle +mail_config_get_x_mailer_display_style (void) +{ + return config->x_mailer_display_style; +} + +void +mail_config_set_x_mailer_display_style (MailConfigXMailerDisplayStyle style) +{ + config->x_mailer_display_style = style; +} + const char * mail_config_get_label_name (int label) { |