aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-05-14 02:04:57 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-05-14 02:04:57 +0800
commit11ec709d94cea06827785fe09d1760711939c7ef (patch)
tree9d8d82d314483c8a88737000bb60a7a5d22326e3 /mail/em-format.c
parentc22062eb58d8b15321d9c0dcc3c3bf02574ecc19 (diff)
downloadgsoc2013-evolution-11ec709d94cea06827785fe09d1760711939c7ef.tar.gz
gsoc2013-evolution-11ec709d94cea06827785fe09d1760711939c7ef.tar.zst
gsoc2013-evolution-11ec709d94cea06827785fe09d1760711939c7ef.zip
Don't include the last default_header when setting the default headers. If
2004-05-13 Jeffrey Stedfast <fejj@novell.com> * em-format.c (em_format_default_headers): Don't include the last default_header when setting the default headers. If the user has configured Evolution to display the Mailer header, then it will be set in em-folder-view.c as appropriate when it checks the gconf settings. Fixes bug #58217. * em-mailer-prefs.c (em_mailer_prefs_construct): Default "x-evolution-mailer" header to disabled. svn path=/trunk/; revision=25903
Diffstat (limited to 'mail/em-format.c')
-rw-r--r--mail/em-format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/em-format.c b/mail/em-format.c
index 0894669a15..a93b63728c 100644
--- a/mail/em-format.c
+++ b/mail/em-format.c
@@ -762,9 +762,9 @@ void
em_format_default_headers(EMFormat *emf)
{
int i;
-
+
em_format_clear_headers(emf);
- for (i=0;i<sizeof(default_headers)/sizeof(default_headers[0]);i++)
+ for (i = 0; i < G_N_ELEMENTS (default_headers) - 1; i++)
em_format_add_header(emf, default_headers[i].name, default_headers[i].flags);
}