aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
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
Diffstat (limited to 'src')
-rw-r--r--src/compose.c14
1 files changed, 10 insertions, 4 deletions
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;
}