Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Customized email subject line for an updated entry, posted by Erkcan Ozcan on Tue Jul 7 21:57:04 2015 
    icon2.gif   Re: Customized email subject line for an updated entry, posted by Erkcan Ozcan on Wed Jul 15 21:30:47 2015 
       icon2.gif   Re: Customized email subject line for an updated entry, posted by Stefan Ritt on Tue Aug 4 13:29:45 2015 
Message ID: 68044     Entry time: Wed Jul 15 21:30:47 2015     In reply to: 68040     Reply to this: 68066
Icon: Reply  Author: Erkcan Ozcan  Author Email: erkcan@gmail.com 
Category: Question  OS: Linux  ELOG Version: 3.1.0-5be245e 
Subject: Re: Customized email subject line for an updated entry 

Since there were no responses, I decided to make good use of the fact that the software is thankfully open-sourced. I modified elogd.c and added just a couple of lines to get what I wanted.

22245,22250d22244
<    if (old_mail && getcfg(lbs->name, "Use Email Subject Edit", subject, sizeof(subject))) {
<       i = build_subst_list(lbs, slist, svalue, attrib, TRUE);
<       sprintf(str, "%d", message_id);
<       add_subst_list(slist, svalue, "message id", str, &i);
<       strsubst_list(subject, sizeof(subject), slist, svalue, i);
<    } else

 

These lines just follow the comment line: /* compose subject from attributes */

 

Erkcan Ozcan wrote:

Hi,

The default email subject line for a new entry is: "New ELOG entry", and the default email subject line for an edited entry is: "Updated ELOG entry". However when we set "Use Email Subject", both new entries and the updated entries use the same email subject. Is there an equivalent of "Use Email Heading Edit" for the subject line? I tried "Use Email Subject Edit", to no avail.

Thanks in advance,

e.

 

ELOG V3.1.5-fe60aaf