Dear Alain:
On Wed, 06 Sep 2017, Alain Borel wrote:
> I feel that using noreply would be easier, but in order to do that I
> need to know if one of the addresses is used exclusively for the From:
> field, and if so, which one. Can anyone help me?
Both addresses are used, actually, depending on the context. This is
because a site support person may be theoretically different from the
site administrator... Hence the system sends emails either under one or
the other sender identity, even though the reasons are mostly of legacy
nature.
The easiest to see the usage is to grep Invenio 1.2 sources for the
send_email() function, for example:
$ git grep send_email.*CFG_SITE_SUPPORT_EMAIL
modules/miscutil/lib/errorlib.py: send_email(CFG_SITE_SUPPORT_EMAIL,
address_str, subject, msg)
modules/oaiharvest/lib/oai_harvest_daemon.py:
send_email(fromaddr=CFG_SITE_SUPPORT_EMAIL, \
modules/webaccess/lib/webaccessadmin_lib.py: return
send_email(CFG_SITE_SUPPORT_EMAIL, send_to, sub, body, header='')
modules/webaccess/lib/webaccessadmin_lib.py: return
send_email(CFG_SITE_SUPPORT_EMAIL, send_to, sub, body, header='')
modules/webaccess/lib/webaccessadmin_lib.py: return
send_email(CFG_SITE_SUPPORT_EMAIL, send_to, sub, body, header='')
modules/webaccess/lib/webaccessadmin_lib.py: return
send_email(CFG_SITE_SUPPORT_EMAIL, send_to, sub, body, header='')
modules/websession/lib/websession_webinterface.py: if not
send_email(CFG_SITE_SUPPORT_EMAIL, args['p_email'], "%s %s"
modules/websession/lib/webuser.py: if not
send_email(CFG_SITE_SUPPORT_EMAIL, email, _("Account registration at %s") %
CFG_SITE_NAME_INTL.get(ln, CFG_SITE_NAME),
modules/websession/lib/webuser.py: return
send_email(CFG_SITE_SUPPORT_EMAIL, send_to, subject=sub, content=body)
modules/websubmit/lib/functions/Mail_Approval_Request_to_Referee.py:
send_email(CFG_SITE_SUPPORT_EMAIL,
modules/websubmit/lib/functions/Mail_Approval_Withdrawn_to_Referee.py:
send_email(CFG_SITE_SUPPORT_EMAIL,
modules/websubmit/lib/functions/Send_Delete_Mail.py:
send_email(CFG_SITE_SUPPORT_EMAIL,
and:
$ git grep send_email.*CFG_SITE_ADMIN_EMAIL
modules/bibencode/lib/bibencode_batch_engine.py:
send_email(fromaddr=invenio.config.CFG_SITE_ADMIN_EMAIL,
modules/bibencode/lib/bibencode_batch_engine.py:
send_email(fromaddr=invenio.config.CFG_SITE_ADMIN_EMAIL,
modules/bibencode/lib/bibencode_batch_engine.py:
send_email(fromaddr=invenio.config.CFG_SITE_ADMIN_EMAIL,
modules/bibsched/lib/tasklets/bst_notify_url.py: return
send_email(fromaddr=CFG_SITE_ADMIN_EMAIL,
modules/miscutil/lib/mailutils.py:
send_email(CFG_SITE_ADMIN_EMAIL, CFG_SITE_ADMIN_EMAIL,
modules/weblinkback/lib/weblinkback.py:
send_email(CFG_SITE_ADMIN_EMAIL, email, 'Pending ' + linkback_type + '
requests', content)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - OLD ALEPH SYS LOCKFILE ENCOUNTERED!",
content=admin_msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT CREATE LOCKFILE!", content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT ACCESS ALEPH SYS COUNTER(S)!", content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT ACCESS ALEPH SYS COUNTER(S)!", content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - ALEPH SYS COUNTER(S) CONTAINS INVALID DATA!",
content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - MAXIMUM ALEPH SYS COUNTER VALUE EXCEEDED!",
content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT CREATE TEMPORARY ALEPH SYS COUNTER FILE!",
content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT WRITE BACK-UP ALEPH SYS COUNTER!",
content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT WRITE ALEPH SYS COUNTER FILE!", content=msg)
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit WARNING - MAXIMUM SYS IN [%s] APPROACHING!" % db,
modules/websubmit/lib/functions/Allocate_ALEPH_SYS.py:
send_email(fromaddr=mailfrom_addr, toaddr=CFG_SITE_ADMIN_EMAIL,
subject="WebSubmit ERROR - CANNOT REMOVE ALEPH SYS LOCKFILE!", content=mailtxt)
modules/websubmit/lib/functions/Mail_New_Record_Notification.py:
scheduled_send_email(CFG_EMAIL_FROM_ADDRESS, CFG_SITE_ADMIN_EMAIL, \
modules/websubmit/web/publiline.py: send_email(FROMADDR,
CFG_SITE_ADMIN_EMAIL, "Failed sending approval email request", message)
The system also sends emails under other identities, e.g. for alerts,
for user comments...
Best regards
--
Tibor Simko