aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-format.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index ecf8f39551..a803676dc2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,9 +1,15 @@
+2000-10-10 Larry Ewing <lewing@helixcode.com>
+
+ * mail-format.c (mail_generate_reply): make sure we dup the return
+ value of get_reply_to or get_from when building the recipient list.
+
2000-10-10 Iain Holmes <iain@helixcode.com>
* mail-summary.c (generate_html_summary): Removed the <li> from the
HTML.
2000-10-10 Cody Russell <bratsche@gnome.org>
+
* mail-threads.c: Added #include <errno.h>
2000-10-09 Iain Holmes <iain@helixcode.com>
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 8d690a1c84..7c2991ab18 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -1622,7 +1622,7 @@ EMsgComposer *
mail_generate_reply (CamelMimeMessage *message, gboolean to_all)
{
CamelDataWrapper *contents;
- char *text, *subject;
+ char *text, *subject, *recipient;
EMsgComposer *composer;
gboolean want_plain, is_html;
const char *repl_to, *message_id, *references;
@@ -1694,7 +1694,9 @@ mail_generate_reply (CamelMimeMessage *message, gboolean to_all)
repl_to = camel_mime_message_get_reply_to (message);
if (!repl_to)
repl_to = camel_mime_message_get_from (message);
- to = g_list_append (NULL, (gpointer)repl_to);
+
+ recipient = g_strdup (repl_to ? repl_to : "");
+ to = g_list_append (NULL, (gpointer)recipient);
if (to_all) {
const CamelInternetAddress *recip;