Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   Setting Subject for ELog email notification, posted by Alan Stone on Wed Jul 12 17:52:45 2006 
    icon2.gif   Re: Setting Subject for ELog email notification, posted by Stefan Ritt on Thu Jul 13 08:11:33 2006 
Message ID: 1874     Entry time: Wed Jul 12 17:52:45 2006     Reply to this: 1875
Icon: Entry  Author: Alan Stone  Author Email: alstone@fnal.gov 
Category: Question  OS: Linux  ELOG Version: ELOG V2.6. 
Subject: Setting Subject for ELog email notification 
Hi,

I have the following elogd.cfg syntax:

; Email notification
Suppress Email to users = 1
Omit Email To = 1
User Email Subject = $subject
Use Email Heading Edit = $subject
Email Report Notify-CMSROC = alstone@fnal.gov

However, the resulting email is not exactly what I want:

*****************************************
Date: Wed, 12 Jul 2006 10:43:09 -0500
From: Alan Stone <alstone@fnal.gov>
To: ELOG@fnal.gov
Subject: New ELOG entry


A new entry has been submitted on nippon.fnal.gov:

Logbookcmsroc
AuthorAlan Stone
SystemAdmin
ReportNotify-CMSROC
Subjecttest email subject again
Logbook URLhttp://nippon.fnal.gov:8081/cmsroc/85
***************************************************

1) The subject is using some default, instead of capturing the $subject string (as
it does with Reply).

2) I want to control the output header "A new entry...".

3) The formatting of email body is awkward. For example, "AuthorAlan Stone"
should have at least a space, and maybe a hyphen or colon, "Author: Alan Stone"

Any help would be appreciated.

Thanks, Alan
ELOG V3.1.5-fe60aaf