From 6c9df51d75a2313beb0759a1c6c403dba73048c2 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 8 Jun 2009 07:18:37 +0000 Subject: [PATCH] Fixed wrong reply links with "Preserve IDs" SVN revision: 2208 --- src/elogd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index dc201d40..03cb4dfb 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -22729,8 +22729,12 @@ void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_i /* submit in destination logbook without links, submit all attributes from the source logbook even if the destination has a differnt number of attributes */ - message_id = el_submit(lbs_dest, message_id, bedit, date, attr_list, attrib, lbs->n_attr, text, str, "", - encoding, attachment, TRUE, NULL); + if (getcfg(lbs->name, "Preserve IDs", str, sizeof(str)) && atoi(str) == 1) + message_id = el_submit(lbs_dest, message_id, bedit, date, attr_list, attrib, lbs->n_attr, text, in_reply_to, reply_to, + encoding, attachment, TRUE, NULL); + else + message_id = el_submit(lbs_dest, message_id, bedit, date, attr_list, attrib, lbs->n_attr, text, str, "", + encoding, attachment, TRUE, NULL); if (message_id <= 0) { sprintf(str, loc("New entry cannot be written to directory \"%s\""), lbs_dest->data_dir);