[PATCH] Avoid crashes in "notmuch reply" with gmime 3.0 when reply-to == sender

Daniel Kahn Gillmor dkg at fifthhorseman.net
Fri Jul 14 15:03:35 PDT 2017


Bremner found this fix.  I'm just documenting it for posterity :)
---
 notmuch-reply.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/notmuch-reply.c b/notmuch-reply.c
index bb6b99fa..4f3f3859 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -286,7 +286,7 @@ static InternetAddressList *get_sender(GMimeMessage *message)
 	if (! reply_to_header_is_redundant (message, reply_to_list))
 	    return reply_to_list;
 
-	g_object_unref (G_OBJECT (reply_to_list));
+	g_mime_2_6_unref (G_OBJECT (reply_to_list));
     }
 
     return g_mime_message_get_from (message);
-- 
2.13.2



More information about the notmuch mailing list