aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mail-format.c12
1 files changed, 10 insertions, 2 deletions
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;