| \n");
- if (strieq(command, "oldemail"))
+ if (strstr(command, "oldemail") != NULL)
rsprintf("%s:", loc("An old ELOG entry has been updated"));
else
rsprintf("%s:", loc("A new ELOG entry has been submitted"));
@@ -25220,11 +25275,16 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
str[13] = 0;
strcpy(file_enc, attachment[index] + 14);
url_encode(file_enc, sizeof(file_enc)); /* for file names with special characters like "+" */
- if (email) {
+ if (email && !att_links) {
retrieve_domain(domain, sizeof(domain));
sprintf(ref, "cid:att%d@%s", index, domain);
- } else
+ } else if (email) {
+ compose_base_url(lbs, ref, sizeof(ref), TRUE);
+ sprintf(ref + strlen(ref), "%s", str);
+ sprintf(ref + strlen(ref), "/%s", file_enc);
+ } else {
sprintf(ref, "%s/%s", str, file_enc);
+ }
/* overall table */
rsprintf(" |
\n");
@@ -25232,7 +25292,7 @@ void show_elog_entry(LOGBOOK * lbs, char *dec_path, char *command)
rsprintf("| %s %d: | \n",
loc("Attachment"), index + 1);
- if (email)
+ if (email && !att_links)
rsprintf("%s\n", attachment[index] + 14);
else
rsprintf(" | %s\n", ref,
| |