Skip to content

Commit

Permalink
Use mail -Ssendwait for systemd (RhBug:1862739)
Browse files Browse the repository at this point in the history
Closes: #1646
Approved by: kontura
  • Loading branch information
jmontleon authored and rh-atomic-bot committed Aug 4, 2020
1 parent 38fdae8 commit 7b1f083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dnf/automatic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def __init__(self):


class CommandEmailConfig(CommandConfig):
_default_command_format = "mail -s {subject} -r {email_from} {email_to}"
_default_command_format = "mail -Ssendwait -s {subject} -r {email_from} {email_to}"

def __init__(self):
super(CommandEmailConfig, self).__init__()
Expand Down
2 changes: 1 addition & 1 deletion doc/automatic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ The command emitter configuration. Variables usable in format string arguments a
The command email emitter configuration. Variables usable in format string arguments are ``body`` with message body, ``subject`` with email subject, ``email_from`` with the "From:" address and ``email_to`` with a space-separated list of recipients.

``command_format``
format string, default: ``mail -s {subject} -r {email_from} {email_to}``
format string, default: ``mail -Ssendwait -s {subject} -r {email_from} {email_to}``

The shell command to execute.

Expand Down
2 changes: 1 addition & 1 deletion etc/dnf/automatic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ email_host = localhost
# The shell command to use to send email. This is a Python format string,
# as used in str.format(). The format function will pass shell-quoted arguments
# called body, subject, email_from, email_to.
# command_format = "mail -s {subject} -r {email_from} {email_to}"
# command_format = "mail -Ssendwait -s {subject} -r {email_from} {email_to}"

# The contents of stdin to pass to the command. It is a format string with the
# same arguments as `command_format`.
Expand Down

0 comments on commit 7b1f083

Please sign in to comment.