** Fix for bug #464636
authorSankar P <psankar@novell.com>
Thu, 23 Aug 2007 15:50:41 +0000 (15:50 +0000)
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>
Thu, 23 Aug 2007 15:50:41 +0000 (15:50 +0000)
2007-08-23  Sankar P  <psankar@novell.com>

** Fix for bug #464636

* Committed on behalf of Ashish <shashish@novell.com>

* camel-groupwise-folder.c: (gw_update_cache), (gw_update_summary):
Sender field does not display anything.

svn path=/trunk/; revision=7983

camel/providers/groupwise/ChangeLog
camel/providers/groupwise/camel-groupwise-folder.c

index 5fc8213..d19602d 100644 (file)
@@ -1,3 +1,12 @@
+2007-08-23  Sankar P  <psankar@novell.com>
+       
+       ** Fix for bug #464636
+
+       * Committed on behalf of Ashish <shashish@novell.com>
+
+       * camel-groupwise-folder.c: (gw_update_cache), (gw_update_summary):
+       Sender field does not display anything.
+
 2007-08-16  Milan Crha  <mcrha@redhat.com>
 
        ** Part of fix for bug #350539
index a2e1799..a028fe8 100644 (file)
@@ -1321,6 +1321,12 @@ gw_update_cache (CamelFolder *folder, GList *list, CamelException *ex, gboolean
                                str = g_string_append (str, org->display_name);
                                str = g_string_append (str, " ");
                        }
+
+                        if (org->display_name[0] == '\0') { 
+
+                               str = g_string_append (str, org->email);
+                               str = g_string_append (str, " ");
+                       }
                        if (org->email && org->email[0]) { 
                                g_string_append (str, "<");
                                str = g_string_append (str, org->email);
@@ -1533,6 +1539,13 @@ gw_update_summary ( CamelFolder *folder, GList *list,CamelException *ex)
                                str = g_string_append (str, org->display_name);
                                str = g_string_append (str, " ");
                        }
+
+                        if (org->display_name[0] == '\0') { 
+                               
+                                str = g_string_append (str, org->email);
+                               str = g_string_append (str, " ");
+                       }
+
                        if (org->email && org->email[0]) { 
                                g_string_append (str, "<");
                                str = g_string_append (str, org->email);