From dcf408630cb04aa27604a4bbba78358df1a8c243 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 7 Jun 2010 13:34:10 +0000 Subject: [PATCH] Monotone-Parent: 269b321dff89afa32244e026cff74a5d6372e4b7 Monotone-Revision: 10fadb79fc28a892498ff228f648c363587ed6e4 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-06-07T13:34:10 Monotone-Branch: ca.inverse.sogo --- UI/MailerUI/UIxMailListActions.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/UI/MailerUI/UIxMailListActions.m b/UI/MailerUI/UIxMailListActions.m index de930eac2..b852bc2fc 100644 --- a/UI/MailerUI/UIxMailListActions.m +++ b/UI/MailerUI/UIxMailListActions.m @@ -571,7 +571,7 @@ - (id ) getHeadersAction { - NSArray *uids, *to; + NSArray *uids, *to, *from; NSDictionary *msgs; NSMutableArray *headers; NSMutableDictionary *msg; @@ -633,8 +633,12 @@ [self messageSubject]] forKey: @"Subject"]; - [msg setObject: [addressFormatter stringForArray: [[message objectForKey: @"envelope"] from]] forKey: @"From"]; - + from = [[message objectForKey: @"envelope"] from]; + if ([from count] > 0) + [msg setObject: [addressFormatter stringForArray: from] forKey: @"From"]; + else + [msg setObject: @"" forKey: @"From"]; + if ([self isMessageRead]) msgIconStatus = @"dot.png"; else