For example, Azer Koçulu has an rss2email fork that uses msmtp [1].
[1]: https://github.com/azer/rss2email
Signed-off-by: W. Trevor King <wking@tremily.us>
+v3.2 (unreleased)
+ * Added sendmail configuration option. Change this if you want to use an alternative, sendmail-compatible mailer.
+
v3.1 (2013-02-14)
* Import __url__, __author__, and __email__ in rss2email.error, which fixes bugs in formatting a number of errors.
### Mailing
# True: Use SMTP_SERVER to send mail.
- # False: Call /usr/sbin/sendmail to send mail.
+ # False: Use sendmail (or compatible) to send mail.
('use-smtp', str(False)),
+ ('sendmail', '/usr/sbin/sendmail'), # Path to sendmail (or compatible)
('smtp-server', 'smtp.yourisp.net:25'), ('smtp-auth', str(False)), # set to True to use SMTP AUTH
('smtp-username', 'username'), # username for SMTP AUTH
('smtp-password', 'password'), # password for SMTP AUTH
if config is None:
config = _config.CONFIG
message_bytes = _flatten(message)
+ sendmail = config.get(section, 'sendmail')
_LOG.debug(
- 'sending message to {} via /usr/sbin/sendmail'.format(recipient))
+ 'sending message to {} via {}'.format(recipient, sendmail))
try:
p = _subprocess.Popen(
- ['/usr/sbin/sendmail', '-f', sender, recipient],
+ [sendmail, '-f', sender, recipient],
stdin=_subprocess.PIPE, stdout=_subprocess.PIPE,
stderr=_subprocess.PIPE)
stdout,stderr = p.communicate(message_bytes)