diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-11 09:28:32 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-11-11 09:28:32 +0000 |
commit | 6da4cad587675e9a12fc20cb8b1440a4dbfe86b4 (patch) | |
tree | f8fea10b19e4fa5e702b86d0b5f376f8ff90a1cb /src/compose.c | |
parent | e5b275862e088de58a25434401fe81ffded07007 (diff) |
fixed separator of newsgroups.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@739 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/compose.c b/src/compose.c index 7989fdd1..c805d77e 100644 --- a/src/compose.c +++ b/src/compose.c @@ -1606,11 +1606,18 @@ static void compose_reply_set_entry(Compose *compose, MsgInfo *msginfo, static void compose_reedit_set_entry(Compose *compose, MsgInfo *msginfo) { g_return_if_fail(msginfo != NULL); + g_return_if_fail(compose->account != NULL); compose_entry_set(compose, msginfo->to , COMPOSE_ENTRY_TO); compose_entry_set(compose, compose->cc , COMPOSE_ENTRY_CC); compose_entry_set(compose, compose->bcc , COMPOSE_ENTRY_BCC); compose_entry_set(compose, compose->replyto, COMPOSE_ENTRY_REPLY_TO); + if (compose->account->protocol == A_NNTP) { + compose_entry_set(compose, compose->newsgroups, + COMPOSE_ENTRY_NEWSGROUPS); + compose_entry_set(compose, compose->followup_to, + COMPOSE_ENTRY_FOLLOWUP_TO); + } compose_entry_set(compose, msginfo->subject, COMPOSE_ENTRY_SUBJECT); } @@ -3504,7 +3511,7 @@ static gint compose_write_headers(Compose *compose, FILE *fp, compose_convert_header(compose, buf, sizeof(buf), str, strlen("Newsgroups: "), - TRUE, charset); + FALSE, charset); fprintf(fp, "Newsgroups: %s\n", buf); } } @@ -3565,7 +3572,7 @@ static gint compose_write_headers(Compose *compose, FILE *fp, compose_convert_header(compose, buf, sizeof(buf), str, strlen("Followup-To: "), - TRUE, charset); + FALSE, charset); fprintf(fp, "Followup-To: %s\n", buf); } } @@ -3733,7 +3740,7 @@ static gint compose_redirect_write_headers(Compose *compose, FILE *fp) compose_convert_header(compose, buf, sizeof(buf), str, strlen("Newsgroups: "), - TRUE, NULL); + FALSE, NULL); fprintf(fp, "Newsgroups: %s\n", buf); } } @@ -3774,7 +3781,7 @@ static gint compose_redirect_write_headers(Compose *compose, FILE *fp) compose_convert_header(compose, buf, sizeof(buf), str, strlen("Followup-To: "), - TRUE, NULL); + FALSE, NULL); fprintf(fp, "Followup-To: %s\n", buf); } } |