[前][次][番号順一覧][スレッド一覧]

sylpheed-jp:2280

From: 吉山 晃 <yosshy@xxxxxxxxxx>
Date: Sun, 30 Mar 2003 00:51:16 +0900
Subject: [sylpheed-jp:02280] [PATCH] multiple Reply-to: entries


  吉山です。

  必要にかられて、Reply-to: に複数のメールアドレスが記載されている受信メー
ルに対して「全員に返信」を行うと To: と Cc: の両方にそれらのエントリが記載
されてしまうバグに対するパッチを作りました。手元ではこれで問題なく動いてい
ます。

# 一時作業リストのメモリの開放を考慮していないのが気になります。

--- compose.c.orig      2003-03-30 00:21:08.000000000 +0900
+++ compose.c   2003-03-30 00:40:51.000000000 +0900
@@ -1293,7 +1293,7 @@
 static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
                                    ComposeMode mode)
 {
-       GSList *cc_list = NULL;
+       GSList *cc_list = NULL, *to_list_temp = NULL;
        GSList *cur;
        gchar *from = NULL;
        gchar *replyto = NULL;
@@ -1380,8 +1380,12 @@
        cc_list = address_list_append(cc_list, compose->cc);
 
        to_table = g_hash_table_new(g_str_hash, g_str_equal);
-       if (replyto)
-               g_hash_table_insert(to_table, replyto, GINT_TO_POINTER(1));
+       if (replyto) {
+               to_list_temp = address_list_append(to_list_temp, replyto);
+               for (cur = to_list_temp; cur != NULL; cur = cur->next) {
+                       g_hash_table_insert(to_table, cur->data, cur);
+               }
+       }
        if (compose->account)
                g_hash_table_insert(to_table, compose->account->address,
                                    GINT_TO_POINTER(1));
---
吉山あきら <yosshy@xxxxxxxxxx>


[前][次][番号順一覧][スレッド一覧]