2020-11-22 Fred Gleason <fredg@paravelsystems.com>

* Added '--send-mail' and '--mail-per-file' options to rdimport(1).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2020-11-23 11:56:35 -05:00
parent deb363f6eb
commit e5a89ae833
7 changed files with 402 additions and 16 deletions

View File

@@ -256,6 +256,24 @@
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--mail-per-file</option>
</term>
<listitem>
<para>
Send an e-mail message for each file processed, rather than
a single message per run summarizing all actions taken. Implies
the <command>--send-mail</command> switch.
</para>
<para>
See the <command>--send-mail</command> switch (below) for more
details about generating e-mailed reports from
<command>rdimport</command><manvolnum>1</manvolnum>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--metadata-pattern=</option><replaceable>pattern</replaceable>
@@ -547,6 +565,32 @@
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--send-mail</option>
</term>
<listitem>
<para>
Send e-mail to the address(es) specified in the destination group's
<computeroutput>Notification E-Mail Addresses</computeroutput>
setting in <command>rdadmin</command><manvolnum>1</manvolnum>
summarizing the action(s) performed during the run.
Each invocation of
<command>rdimport</command><manvolnum>1</manvolnum> will
potentially generate
one message for all successful imports and another for all failed
imports (but see the <option>--mail-per-file</option> switch
(above) for a way to modify this behavior).
</para>
<para>
NOTE: Rivendell uses the system's
<command>sendmail</command><manvolnum>1</manvolnum> subsystem
for originating e-mail. For many modern e-mail setups, further
configuration of that subsystem may be necessary.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--set-datetimes=</option><replaceable>start-datetime</replaceable>,<replaceable>end-datetime</replaceable>
@@ -989,6 +1033,10 @@
<refsect1 id='see_also'><title>See Also</title>
<para>
<citerefentry>
<refentrytitle>sendmail</refentrytitle><manvolnum>1</manvolnum>
</citerefentry>
<literal>,</literal>
<citerefentry>
<refentrytitle>rdexport</refentrytitle><manvolnum>1</manvolnum>
</citerefentry>