aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-25 06:53:00 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-25 06:53:00 +0000
commit97379a005b5a462f5773367aaea6d97a7d3d694c (patch)
treec9bcae18c4965264e5bcfcec918e62df54496e48
parentbf5f75ea8aeb3740f3e41e3ccd115238c03a4c2e (diff)
ignore empty Reply-To: and Followup-To: header when replying.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@188 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.ja5
-rw-r--r--src/compose.c14
3 files changed, 20 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2ba50a20..672d0835 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-25
+
+ * src/compose.c: compose_parse_header(): ignore empty Reply-To: and
+ Followup-To: header (thanks to Alfons).
+
2005-03-23
* src/compose.c:
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 38aede52..6c687d97 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,3 +1,8 @@
+2005-03-25
+
+ * src/compose.c: compose_parse_header(): 空の Reply-To: と
+ Followup-To: ヘッダを無視するようにした(Alfons さん thanks)。
+
2005-03-23
* src/compose.c:
diff --git a/src/compose.c b/src/compose.c
index 94a1d558..6b723918 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1259,8 +1259,11 @@ static gint compose_parse_header(Compose *compose, MsgInfo *msginfo)
fclose(fp);
if (hentry[H_REPLY_TO].body != NULL) {
- compose->replyto =
- conv_unmime_header(hentry[H_REPLY_TO].body, NULL);
+ if (hentry[H_REPLY_TO].body[0] != '\0') {
+ compose->replyto =
+ conv_unmime_header(hentry[H_REPLY_TO].body,
+ NULL);
+ }
g_free(hentry[H_REPLY_TO].body);
hentry[H_REPLY_TO].body = NULL;
}
@@ -1291,8 +1294,11 @@ static gint compose_parse_header(Compose *compose, MsgInfo *msginfo)
hentry[H_NEWSGROUPS].body = NULL;
}
if (hentry[H_FOLLOWUP_TO].body != NULL) {
- compose->followup_to =
- conv_unmime_header(hentry[H_FOLLOWUP_TO].body, NULL);
+ if (hentry[H_FOLLOWUP_TO].body[0] != '\0') {
+ compose->followup_to =
+ conv_unmime_header(hentry[H_FOLLOWUP_TO].body,
+ NULL);
+ }
g_free(hentry[H_FOLLOWUP_TO].body);
hentry[H_FOLLOWUP_TO].body = NULL;
}