Updating branch refs/heads/master
         to 99f15c8cc2227665f5be42188991e278daf60f93 (commit)
       from 0b4ac5bfbcfa1045bf4921dfcde80593825c17cc (commit)

commit 99f15c8cc2227665f5be42188991e278daf60f93
Author: Christian Dywan <[email protected]>
Date:   Thu Jun 2 20:30:00 2011 +0200

    Check that "to" is set before comparing to reply_to

 postler/postler-message.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/postler/postler-message.vala b/postler/postler-message.vala
index 579ef90..925ef99 100644
--- a/postler/postler-message.vala
+++ b/postler/postler-message.vala
@@ -245,7 +245,8 @@ namespace Postler {
                Also Reply-To may equal From, which is at best confusing. */
             if (reply_to != null) {
                 string canonical = Postler.Messages.parse_address 
(reply_to)[1];
-                if (canonical == Postler.Messages.parse_address (get_field 
("to") ?? "")[1])
+                if (get_field ("to") != null
+                 && canonical == Postler.Messages.parse_address (get_field 
("to"))[1])
                     reply_to = null;
                 else if (get_field ("list-post") != null && canonical == 
get_field ("list-post"))
                     reply_to = null;
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to