aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/providers/sendmail/camel-sendmail-transport.c2
-rw-r--r--camel/providers/smtp/camel-smtp-transport.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c
index 70abc68026..7ba567832b 100644
--- a/camel/providers/sendmail/camel-sendmail-transport.c
+++ b/camel/providers/sendmail/camel-sendmail-transport.c
@@ -123,7 +123,7 @@ sendmail_send_to (CamelTransport *transport, CamelMimeMessage *message,
header = (struct _header_raw *) &CAMEL_MIME_PART (message)->headers;
n = header->next;
while (n != NULL) {
- if (!strcasecmp (header->name, "Bcc")) {
+ if (!strcasecmp (n->name, "Bcc")) {
header->next = n->next;
tail->next = n;
n->next = NULL;
diff --git a/camel/providers/smtp/camel-smtp-transport.c b/camel/providers/smtp/camel-smtp-transport.c
index 0acdfeb4d1..d43f5c6e38 100644
--- a/camel/providers/smtp/camel-smtp-transport.c
+++ b/camel/providers/smtp/camel-smtp-transport.c
@@ -1288,7 +1288,7 @@ smtp_data (CamelSmtpTransport *transport, CamelMimeMessage *message, gboolean ha
header = (struct _header_raw *) &CAMEL_MIME_PART (message)->headers;
n = header->next;
while (n != NULL) {
- if (!strcasecmp (header->name, "Bcc")) {
+ if (!strcasecmp (n->name, "Bcc")) {
header->next = n->next;
tail->next = n;
n->next = NULL;