mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Added 'use email heading edit'
SVN revision: 743
This commit is contained in:
parent
bdda2272e8
commit
52862c9566
@ -1250,6 +1250,7 @@ individual logbook sections, one has to log in to each logbook separately.<p>
|
|||||||
<LI><b><code>Use Email Subject = <string></code></b>
|
<LI><b><code>Use Email Subject = <string></code></b>
|
||||||
<LI><b><code>Use Email From = <string></code></b>
|
<LI><b><code>Use Email From = <string></code></b>
|
||||||
<LI><b><code>Use Email Heading = <string></code></b>
|
<LI><b><code>Use Email Heading = <string></code></b>
|
||||||
|
<LI><b><code>Use Email Heading Edit = <string></code></b>
|
||||||
<LI><b><code>Omit Email To = 0|1</code></b>
|
<LI><b><code>Omit Email To = 0|1</code></b>
|
||||||
<LI><b><code>Suppress Email to users = 0|1</code></b>
|
<LI><b><code>Suppress Email to users = 0|1</code></b>
|
||||||
|
|
||||||
@ -1280,7 +1281,9 @@ used as the email subject. The text can contain <b><code>$<attribute>
|
|||||||
attribute. For a full list of possible substitutions, see the
|
attribute. For a full list of possible substitutions, see the
|
||||||
"<I>Subst <attribute></I>" option. The <b><code>Use Email Heading
|
"<I>Subst <attribute></I>" option. The <b><code>Use Email Heading
|
||||||
= <string></code></b> specifies the text for the email heading line.
|
= <string></code></b> specifies the text for the email heading line.
|
||||||
Default is <i>"A new entry has been submitted/updated on [host]"</i>.<p>
|
Default is <i>"A new entry has been submitted on [host]"</i>. The option
|
||||||
|
<b><code>Use Email Heading Edit = <string></code></b> works the same
|
||||||
|
way for updated (edited) entries.<p>
|
||||||
|
|
||||||
The option <b><code>Use Email From = <string>
|
The option <b><code>Use Email From = <string>
|
||||||
</code></b> is used for the "<I>From:</I>" field in the email. Please note that more and
|
</code></b> is used for the "<I>From:</I>" field in the email. Please note that more and
|
||||||
|
|||||||
10
src/elogd.c
10
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.234 2004/02/04 09:21:37 midas
|
||||||
|
Added 'use email heading edit'
|
||||||
|
|
||||||
Revision 1.233 2004/02/04 08:25:06 midas
|
Revision 1.233 2004/02/04 08:25:06 midas
|
||||||
Only [global] admin user sees 'synchronize all logbooks'
|
Only [global] admin user sees 'synchronize all logbooks'
|
||||||
|
|
||||||
@ -11964,7 +11967,13 @@ int compose_email(LOGBOOK * lbs, char *mail_to, int message_id,
|
|||||||
|
|
||||||
if (flags & 1) {
|
if (flags & 1) {
|
||||||
if (getcfg(lbs->name, "Use Email heading", str)) {
|
if (getcfg(lbs->name, "Use Email heading", str)) {
|
||||||
|
if (old_mail) {
|
||||||
|
if (!getcfg(lbs->name, "Use Email heading edit", str))
|
||||||
|
getcfg(lbs->name, "Use Email heading", str);
|
||||||
|
}
|
||||||
|
|
||||||
sprintf(mail_text + strlen(mail_text), str);
|
sprintf(mail_text + strlen(mail_text), str);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (old_mail)
|
if (old_mail)
|
||||||
sprintf(mail_text + strlen(mail_text),
|
sprintf(mail_text + strlen(mail_text),
|
||||||
@ -14126,7 +14135,6 @@ void show_selection_page()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
phier = get_logbook_hierarchy();
|
phier = get_logbook_hierarchy();
|
||||||
show_title = 0;
|
show_title = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user