|
Packit Service |
779887 |
reporter-mailx(1)
|
|
Packit Service |
779887 |
=================
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
NAME
|
|
Packit Service |
779887 |
----
|
|
Packit Service |
779887 |
reporter-mailx - Sends contents of a problem directory via email.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
SYNOPSIS
|
|
Packit Service |
779887 |
--------
|
|
Packit Service |
779887 |
'reporter-mailx' [-v] -d DIR [-c CONFFILE] [-F FMTFILE]
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
DESCRIPTION
|
|
Packit Service |
779887 |
-----------
|
|
Packit Service |
779887 |
The tool reads a problem directory, composes an email message
|
|
Packit Service |
779887 |
from the directory contents, and uses mailx to send the message to
|
|
Packit Service |
779887 |
specified recipient.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Properties of email messages can be specified in a configuration file,
|
|
Packit Service |
779887 |
and via environment variables.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Configuration file
|
|
Packit Service |
779887 |
~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
779887 |
Configuration file contains entries in a format "Option = Value".
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
The options are:
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'Subject'::
|
|
Packit Service |
779887 |
The subject of the email message.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'EmailFrom'::
|
|
Packit Service |
779887 |
The sender of the email message.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'EmailTo'::
|
|
Packit Service |
779887 |
The recipient of the email message.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'SendBinaryData'::
|
|
Packit Service |
779887 |
Use yes/true/on/1 to attach all binary files from the problem
|
|
Packit Service |
779887 |
directory to the email. This can cause the emails to be very
|
|
Packit Service |
779887 |
large.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Formatting configuration files
|
|
Packit Service |
779887 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
779887 |
Lines starting with # are ignored.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Lines can be continued on the next line using trailing backslash.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Format:
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
....
|
|
Packit Service |
779887 |
%summary:: subject format
|
|
Packit Service |
779887 |
section:: element1[,element2]...
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
The literal text line to be added to email. Can be empty.
|
|
Packit Service |
779887 |
(Empty lines are NOT ignored!)
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Subject format is a line of text, where %element% is replaced by
|
|
Packit Service |
779887 |
text element's content, and [[...%element%...]] block is used only if
|
|
Packit Service |
779887 |
%element% exists. [[...]] blocks can nest.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Sections can be:
|
|
Packit Service |
779887 |
- %summary: email subject format string.
|
|
Packit Service |
779887 |
- %attach: a list of elements to attach.
|
|
Packit Service |
779887 |
- text, double colon (::) and the list of comma-separated elements.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Elements can be:
|
|
Packit Service |
779887 |
- problem directory element names, which get formatted as
|
|
Packit Service |
779887 |
<element_name>: <contents>
|
|
Packit Service |
779887 |
or
|
|
Packit Service |
779887 |
<element_name>:
|
|
Packit Service |
779887 |
:<contents>
|
|
Packit Service |
779887 |
:<contents>
|
|
Packit Service |
779887 |
:<contents>
|
|
Packit Service |
779887 |
- problem directory element names prefixed by "%bare_",
|
|
Packit Service |
779887 |
which is formatted as-is, without "<element_name>:" and colons
|
|
Packit Service |
779887 |
- %oneline, %multiline, %text wildcards, which select all corresponding
|
|
Packit Service |
779887 |
elements for output or attachment
|
|
Packit Service |
779887 |
- %binary wildcard, valid only for %attach section, instructs to attach
|
|
Packit Service |
779887 |
binary elements
|
|
Packit Service |
779887 |
- problem directory element names prefixed by "-",
|
|
Packit Service |
779887 |
which excludes given element from all wildcards
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Nonexistent elements are silently ignored.
|
|
Packit Service |
779887 |
If none of elements exists, the section will not be created.
|
|
Packit Service |
779887 |
....
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
Integration with ABRT events
|
|
Packit Service |
779887 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
779887 |
'reporter-mailx' can be used as a reporter, to allow users report
|
|
Packit Service |
779887 |
problems via email when they decide to do it. This usage is
|
|
Packit Service |
779887 |
pre-configured in /etc/libreport/events.d/mailx_event.conf:
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
------------
|
|
Packit Service |
779887 |
EVENT=report_Mailx reporter-mailx
|
|
Packit Service |
779887 |
------------
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
It can also be used to notify administrator automatically when a
|
|
Packit Service |
779887 |
problem happens. When this is desired, modify the event configuration
|
|
Packit Service |
779887 |
file to run the tool on the 'post-create' event:
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
------------
|
|
Packit Service |
779887 |
EVENT=post-create reporter-mailx
|
|
Packit Service |
779887 |
------------
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
OPTIONS
|
|
Packit Service |
779887 |
-------
|
|
Packit Service |
779887 |
-d DIR::
|
|
Packit Service |
779887 |
Path to problem directory.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
-c CONFFILE::
|
|
Packit Service |
779887 |
Path to configuration file. When used in ABRT event system, the file
|
|
Packit Service |
779887 |
contains site-wide configuration. Users can change the values via
|
|
Packit Service |
779887 |
environment variables.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
-F CONF_FORMAT_FILE
|
|
Packit Service |
779887 |
Formatting file for an email.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
ENVIRONMENT VARIABLES
|
|
Packit Service |
779887 |
---------------------
|
|
Packit Service |
779887 |
Environment variables take precedence over values provided in
|
|
Packit Service |
779887 |
the configuration file.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'Mailx_Subject'::
|
|
Packit Service |
779887 |
Subject of the email message.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'Mailx_EmailFrom'::
|
|
Packit Service |
779887 |
Sender of the email message.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'Mailx_EmailTo'::
|
|
Packit Service |
779887 |
Recipient of the email message. If nor the environment variable
|
|
Packit Service |
779887 |
nor the corresponding option is defined, the message is send to
|
|
Packit Service |
779887 |
"root@localhost".
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
'Mailx_SendBinaryData'::
|
|
Packit Service |
779887 |
Use yes/true/on/1 to attach all binary files from the problem
|
|
Packit Service |
779887 |
directory to the email.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
FILES
|
|
Packit Service |
779887 |
-----
|
|
Packit Service |
779887 |
/usr/share/libreport/conf.d/plugins/mailx.conf::
|
|
Packit Service |
779887 |
Readonly default configuration files.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
/etc/libreport/plugins/mailx.conf::
|
|
Packit Service |
779887 |
Configuration files.
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
SEE ALSO
|
|
Packit Service |
779887 |
--------
|
|
Packit Service |
779887 |
mailx_event.conf(5), mailx.conf(5), report_mailx.conf(5)
|
|
Packit Service |
779887 |
|
|
Packit Service |
779887 |
AUTHORS
|
|
Packit Service |
779887 |
-------
|
|
Packit Service |
779887 |
* ABRT team
|