[Xfce4-commits] <postler:master> Gracefully proceed if no "To" is in the message
Christian Dywan
noreply at xfce.org
Fri May 27 20:32:11 CEST 2011
Updating branch refs/heads/master
to a102a9d6e3eaab50970e044fafbc2d61559c95a3 (commit)
from 52cfae56a1a2fb01427ca9ec689bd0640b81be5f (commit)
commit a102a9d6e3eaab50970e044fafbc2d61559c95a3
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri May 27 20:27:48 2011 +0200
Gracefully proceed if no "To" is in the message
postler/postler-message.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/postler/postler-message.vala b/postler/postler-message.vala
index d2387a4..ee23465 100644
--- a/postler/postler-message.vala
+++ b/postler/postler-message.vala
@@ -176,7 +176,7 @@ 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 (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;
More information about the Xfce4-commits
mailing list