Also simplify recipients when creating new messages (replying)
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 3 Apr 2009 16:20:54 +0000 (16:20 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 3 Apr 2009 16:20:54 +0000 (16:20 +0000)
pmo-trunk-r8606

src/modest-tny-msg.c

index 2d79dea..a0d072c 100644 (file)
@@ -868,6 +868,7 @@ get_new_to (TnyMsg *msg, TnyHeader *header, const gchar* from,
        gchar* old_reply_to;
        gchar* old_from;
        gchar* new_to;
        gchar* old_reply_to;
        gchar* old_from;
        gchar* new_to;
+       gchar* tmp;
        
        /* according to RFC2369 (http://www.faqs.org/rfcs/rfc2369.html), we
         * can identify Mailing-List posts by the List-Help header.
        
        /* according to RFC2369 (http://www.faqs.org/rfcs/rfc2369.html), we
         * can identify Mailing-List posts by the List-Help header.
@@ -931,6 +932,10 @@ get_new_to (TnyMsg *msg, TnyHeader *header, const gchar* from,
                }
        }
 
                }
        }
 
+       tmp = modest_text_utils_simplify_recipients (new_to);
+       g_free (new_to);
+       new_to = tmp;
+
        return new_to;
 }
 
        return new_to;
 }