mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
'Use email from' has priority over user email address
SVN revision: 1073
This commit is contained in:
parent
31e7e8fed9
commit
78b5cdd3e6
13
src/elogd.c
13
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.469 2004/09/14 22:12:47 midas
|
||||||
|
'Use email from' has priority over user email address
|
||||||
|
|
||||||
Revision 1.468 2004/09/10 14:06:42 midas
|
Revision 1.468 2004/09/10 14:06:42 midas
|
||||||
Fixed bug with select return status
|
Fixed bug with select return status
|
||||||
|
|
||||||
@ -3176,10 +3179,12 @@ void retrieve_email_from(LOGBOOK * lbs, char *ret)
|
|||||||
{
|
{
|
||||||
char str[256];
|
char str[256];
|
||||||
|
|
||||||
if (isparam("user_email") && *getparam("user_email"))
|
if (!getcfg(lbs->name, "Use Email from", str, sizeof(str))) {
|
||||||
strcpy(str, getparam("user_email"));
|
if (isparam("user_email") && *getparam("user_email"))
|
||||||
else if (!getcfg(lbs->name, "Use Email from", str, sizeof(str)))
|
strcpy(str, getparam("user_email"));
|
||||||
sprintf(str, "ELog@%s", host_name);
|
else
|
||||||
|
sprintf(str, "ELog@%s", host_name);
|
||||||
|
}
|
||||||
|
|
||||||
strcpy(ret, str);
|
strcpy(ret, str);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user