aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-05 09:24:24 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-05 09:24:24 +0000
commit94d0e50a3ad681d469237630aff61272cfb7447e (patch)
tree5b195e99083612dcf71984788b6a20f2277c5b8b
parent4a468c2c09e69f053cb3948ec41716e2aa68bd07 (diff)
enabled COMPOSE_REPLY_TO_ALL for NNTP.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@801 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/compose.c28
3 files changed, 29 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 15384519..7a07313f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-12-05
+ * src/compose.c: compose_reply_set_entry(): enabled
+ COMPOSE_REPLY_TO_ALL for NNTP.
+
+2005-12-05
+
* libsylph/utils.[ch]
libsylph/imap.c: imap_cmd_append(): send message contents all at
once.
diff --git a/ChangeLog.ja b/ChangeLog.ja
index b5f72e48..c030e01e 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,10 @@
2005-12-05
+ * src/compose.c: compose_reply_set_entry(): COMPOSE_REPLY_TO_ALL を
+ NNTP でも有効にした。
+
+2005-12-05
+
* libsylph/utils.[ch]
libsylph/imap.c: imap_cmd_append(): メッセージの内容を一度に送信
するようにした。
diff --git a/src/compose.c b/src/compose.c
index 0e35f5ca..ed44889e 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1552,16 +1552,24 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
COMPOSE_ENTRY_CC);
} else
compose_entry_set(compose,
- (compose->replyto && !ignore_replyto)
- ? compose->replyto
- : msginfo->from ? msginfo->from : "",
- COMPOSE_ENTRY_TO);
+ (compose->replyto && !ignore_replyto)
+ ? compose->replyto
+ : msginfo->from ? msginfo->from : "",
+ COMPOSE_ENTRY_TO);
} else {
if (ignore_replyto) {
compose_entry_set(compose,
msginfo->from ? msginfo->from : "",
COMPOSE_ENTRY_TO);
} else {
+ if (to_all) {
+ compose_entry_set
+ (compose,
+ (compose->replyto && !ignore_replyto)
+ ? compose->replyto
+ : msginfo->from ? msginfo->from : "",
+ COMPOSE_ENTRY_TO);
+ }
compose_entry_set(compose,
compose->followup_to ? compose->followup_to
: compose->newsgroups ? compose->newsgroups
@@ -1593,7 +1601,7 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
compose_entry_set(compose, "Re: ", COMPOSE_ENTRY_SUBJECT);
if (!compose->replyto && to_ml && compose->ml_post) return;
- if (!to_all || compose->account->protocol == A_NNTP) return;
+ if (!to_all) return;
if (compose->replyto) {
Xstrdup_a(replyto, compose->replyto, return);
@@ -1618,12 +1626,14 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo,
/* remove address on To: and that of current account */
for (cur = cc_list; cur != NULL; ) {
+ gchar *addr = (gchar *)cur->data;
GSList *next = cur->next;
- if (g_hash_table_lookup(to_table, cur->data) != NULL)
- cc_list = g_slist_remove(cc_list, cur->data);
- else
- g_hash_table_insert(to_table, cur->data, cur);
+ if (g_hash_table_lookup(to_table, addr) != NULL) {
+ cc_list = g_slist_remove(cc_list, addr);
+ g_free(addr);
+ } else
+ g_hash_table_insert(to_table, addr, cur);
cur = next;
}