diff options
author | Larry Ewing <lewing@helixcode.com> | 2000-10-11 08:14:21 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2000-10-11 08:14:21 +0800 |
commit | 6d26494925d2875fed9739a55ec5d214f18fb972 (patch) | |
tree | 08039434ff0ce62ff629e9f6a4cf2e2c967e6a0c /mail | |
parent | 0f0c7ec34e90bc0bd4b9fb465c86f8b9ef8ddef5 (diff) | |
download | gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.tar gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.tar.gz gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.tar.bz2 gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.tar.lz gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.tar.xz gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.tar.zst gsoc2013-evolution-6d26494925d2875fed9739a55ec5d214f18fb972.zip |
make sure we dup the return value of get_reply_to or get_from when
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.
svn path=/trunk/; revision=5829
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-format.c | 6 |
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; |