aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-09-08 05:42:45 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-09-08 05:42:45 +0800
commit0bb5d2102efe043514f17a0c55c0371cfee3fcf2 (patch)
tree9ca3b5e0404bbce7be89cebcbb0c82267ff4c36c
parentbe8c0eaaec13e63aefa1447a35be568ad8d5acdf (diff)
downloadgsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.tar
gsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.tar.gz
gsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.tar.bz2
gsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.tar.lz
gsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.tar.xz
gsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.tar.zst
gsoc2013-evolution-0bb5d2102efe043514f17a0c55c0371cfee3fcf2.zip
I changed the Reply-All behavior so that the sender's address does
not appear in the cc: field. svn path=/trunk/; revision=5246
-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;