From 0bb5d2102efe043514f17a0c55c0371cfee3fcf2 Mon Sep 17 00:00:00 2001 From: Jesse Pavel Date: Thu, 7 Sep 2000 21:42:45 +0000 Subject: I changed the Reply-All behavior so that the sender's address does not appear in the cc: field. svn path=/trunk/; revision=5246 --- mail/mail-format.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/mail-format.c b/mail/mail-format.c index c8cff1d857..3167024200 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1710,7 +1710,13 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all) name, addr); } else fulladdr = g_strdup (addr); - cc = g_list_append (cc, fulladdr); + + /* Here I'll check to see if the cc:'d address is the address + of the sender, and if so, don't add it to the cc: list; this + is to fix Bugzilla bug #455. */ + + if (strcmp (addr, id->address) != 0) + cc = g_list_append (cc, fulladdr); } recip = camel_mime_message_get_recipients (message, CAMEL_RECIPIENT_TYPE_CC); @@ -1720,7 +1726,9 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all) fulladdr = g_strdup_printf ("\"%s\" <%s>", name, addr); } else fulladdr = g_strdup (addr); - cc = g_list_append (cc, fulladdr); + + if (strcmp (addr, id->address) != 0) + cc = g_list_append (cc, fulladdr); } } else cc = NULL; -- cgit v1.2.3