talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 078b1d28f0100ded947fd623a54f4ab1be9a896f
parent 1936240171c2608af9eb417bf715aa767826d3e0
Author: Colin Leroy <colin@colino.net>
Date:   Mon, 29 Aug 2011 08:13:32 +0000

2011-08-29 [colin]	3.7.10cvs4

	* src/compose.c
		Don't insert custom headers that have empty values.
		Allows not inserting X-Mailer if it's set to nothing.
		Fixes bug #2471, "Make setting an X-Mailer header optional".

Diffstat:
MChangeLog | 7+++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Msrc/compose.c | 6++++--
4 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,10 @@ +2011-08-29 [colin] 3.7.10cvs4 + + * src/compose.c + Don't insert custom headers that have empty values. + Allows not inserting X-Mailer if it's set to nothing. + Fixes bug #2471, "Make setting an X-Mailer header optional". + 2011-08-29 [colin] 3.7.10cvs3 * src/image_viewer.c diff --git a/PATCHSETS b/PATCHSETS @@ -4207,3 +4207,4 @@ ( cvs diff -u -r 1.53.2.37 -r 1.53.2.38 po/POTFILES.in; cvs diff -u -r 1.4.2.38 -r 1.4.2.39 src/common/ssl_certificate.c; cvs diff -u -r 1.1.4.114 -r 1.1.4.115 src/etpan/imap-thread.c; cvs diff -u -r 1.1.2.16 -r 1.1.2.17 src/etpan/nntp-thread.c; ) > 3.7.10cvs1.patchset ( cvs diff -u -r 1.204.2.201 -r 1.204.2.202 src/prefs_common.c; cvs diff -u -r 1.103.2.132 -r 1.103.2.133 src/prefs_common.h; cvs diff -u -r 1.395.2.429 -r 1.395.2.430 src/summaryview.c; ) > 3.7.10cvs2.patchset ( cvs diff -u -r 1.1.2.29 -r 1.1.2.30 src/image_viewer.c; cvs diff -u -r 1.96.2.231 -r 1.96.2.232 src/textview.c; cvs diff -u -r 1.5.2.94 -r 1.5.2.95 src/gtk/gtkutils.c; cvs diff -u -r 1.4.2.56 -r 1.4.2.57 src/gtk/gtkutils.h; ) > 3.7.10cvs3.patchset +( cvs diff -u -r 1.382.2.578 -r 1.382.2.579 src/compose.c; ) > 3.7.10cvs4.patchset diff --git a/configure.ac b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=10 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=3 +EXTRA_VERSION=4 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/compose.c b/src/compose.c @@ -6254,10 +6254,12 @@ static gchar *compose_get_header(Compose *compose) cur = cur->next) { CustomHeader *chdr = (CustomHeader *)cur->data; - if (custom_header_is_allowed(chdr->name)) { + if (custom_header_is_allowed(chdr->name) + && chdr->value != NULL + && *(chdr->value) != '\0') { compose_convert_header (compose, buf, sizeof(buf), - chdr->value ? chdr->value : "", + chdr->value, strlen(chdr->name) + 2, FALSE); g_string_append_printf(header, "%s: %s\n", chdr->name, buf); }