aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-08-04 23:20:57 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-08-04 23:20:57 +0800
commit865fc73a24c625a58fa55ac378c02e4855ec3125 (patch)
tree8c692434ab7aaae98c0ede0ed7cc50c3fe267e2b
parent0b342f2c845e095e72d55c25180e55d5b8165102 (diff)
downloadgsoc2013-evolution-865fc73a24c625a58fa55ac378c02e4855ec3125.tar.gz
gsoc2013-evolution-865fc73a24c625a58fa55ac378c02e4855ec3125.tar.zst
gsoc2013-evolution-865fc73a24c625a58fa55ac378c02e4855ec3125.zip
If type="{Sender}" and name is an empty string, use the addr. Fixes bug
2004-08-03 Jeffrey Stedfast <fejj@novell.com> * em-composer-utils.c (format_sender): If type="{Sender}" and name is an empty string, use the addr. Fixes bug #62377 svn path=/trunk/; revision=26820
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/em-composer-utils.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7b2f40bee4..6ad3a0b481 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-03 Jeffrey Stedfast <fejj@novell.com>
+
+ * em-composer-utils.c (format_sender): If type="{Sender}" and name
+ is an empty string, use the addr. Fixes bug #62377
+
2004-08-01 JP Rosevear <jpr@novell.com>
* default/C/Inbox: Update to just call us "Evolution" and be more
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 8e3ce70672..025b490472 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1506,7 +1506,7 @@ format_sender (GString *str, const char *attr, CamelMimeMessage *message)
g_string_append (str, name);
} else if (addr && !strcmp (attr, "{SenderEMail}")) {
g_string_append (str, addr);
- } else if (name) {
+ } else if (name && *name) {
g_string_append (str, name);
} else if (addr) {
g_string_append (str, addr);