aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.ja6
-rw-r--r--src/compose.c18
4 files changed, 26 insertions, 5 deletions
diff --git a/AUTHORS b/AUTHORS
index 2453378d..7f141d02 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -118,3 +118,4 @@ contributors (beside the above; based on Changelog)
IWAMOTO Kouichi
Sergey Pinaev
Hiroyuki Ikezoe
+ mori
diff --git a/ChangeLog b/ChangeLog
index 6018a375..ee3882fe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2005-02-28
+ * src/compose.c: compose_parse_header(): generate References: from
+ In-Reply-To: even if the parent message doesn't have Message-Id:
+ (thanks to mori).
+
+2005-02-28
+
* src/procheader.[ch]: fixed the argument type of buffer length
(thanks to Alfons).
diff --git a/ChangeLog.ja b/ChangeLog.ja
index 9ec463fc..3e4ddd40 100644
--- a/ChangeLog.ja
+++ b/ChangeLog.ja
@@ -1,5 +1,11 @@
2005-02-28
+ * src/compose.c: compose_parse_header(): 親メッセージが Message-Id:
+ を持っていない場合でも In-Reply-To: から References: を生成する
+ ようにした(mori さん thanks)。
+
+2005-02-28
+
* src/procheader.[ch]: バッファ長の引数の型を修正(Alfons さん thanks)。
2005-02-27
diff --git a/src/compose.c b/src/compose.c
index 4f81babc..3293b79f 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1216,13 +1216,17 @@ static gint compose_parse_header(Compose *compose, MsgInfo *msginfo)
hentry[H_LIST_POST].body = NULL;
}
- if (compose->mode == COMPOSE_REEDIT && msginfo->inreplyto)
- compose->inreplyto = g_strdup(msginfo->inreplyto);
- else if (compose->mode != COMPOSE_REEDIT &&
- msginfo->msgid && *msginfo->msgid) {
+ if (compose->mode == COMPOSE_REEDIT) {
+ if (msginfo->inreplyto && *msginfo->inreplyto)
+ compose->inreplyto = g_strdup(msginfo->inreplyto);
+ return 0;
+ }
+
+ if (msginfo->msgid && *msginfo->msgid)
compose->inreplyto = g_strdup(msginfo->msgid);
- if (!compose->references) {
+ if (!compose->references) {
+ if (msginfo->msgid && *msginfo->msgid) {
if (msginfo->inreplyto && *msginfo->inreplyto)
compose->references =
g_strdup_printf("<%s>\n\t<%s>",
@@ -1232,6 +1236,10 @@ static gint compose_parse_header(Compose *compose, MsgInfo *msginfo)
compose->references =
g_strconcat("<", msginfo->msgid, ">",
NULL);
+ } else if (msginfo->inreplyto && *msginfo->inreplyto) {
+ compose->references =
+ g_strconcat("<", msginfo->inreplyto, ">",
+ NULL);
}
}