From 868f88bbb65636defa3720d66656b0f468adf61e Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 5 Jul 2005 20:49:22 +0000 Subject: [PATCH] Made reply_to links absolute SVN revision: 1420 --- src/elogd.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index f63ed9f4..5bde2def 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.697 2005/07/05 20:49:22 ritt + Made reply_to links absolute + Revision 1.696 2005/07/05 20:39:16 ritt Fixed
for quotes @@ -19959,10 +19962,10 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command) if (email) { compose_base_url(lbs, str, sizeof(str)); sprintf(str+strlen(str), "%d", message_id); - rsprintf("ELOG: %s  ", str, lbs->name); - } - - rsprintf("%s: %s\n", loc("Message ID"), display); + rsprintf("%s: %s  ", loc("Logbook"), lbs->name); + rsprintf("%s: %d", loc("Message ID"), str, message_id); + } else + rsprintf("%s: %s\n", loc("Message ID"), display); /*---- display date ----*/ @@ -19980,7 +19983,8 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command) if (message_error != EL_FILE_ERROR && (reply_tag[0] || orig_tag[0])) { if (orig_tag[0]) { - sprintf(ref, "%s", orig_tag); + compose_base_url(lbs, ref, sizeof(ref)); + sprintf(ref+strlen(ref), "%s", orig_tag); rsprintf("    %s: ", loc("In reply to")); rsprintf("%s\n", ref, orig_tag); } @@ -19989,7 +19993,9 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command) p = strtok(reply_tag, ","); do { - rsprintf("%s\n", p, p); + compose_base_url(lbs, ref, sizeof(ref)); + sprintf(ref+strlen(ref), "%s", p); + rsprintf("%s\n", ref, p); p = strtok(NULL, ",");