removed -- at beginning of subject
Removed newline at the end of subject, added MIME-Version header
To escape characters '_', '*', '`', '[' outside of an entity, prepend the characters '\' before them.
fix _exists error message if MAIL_BIN env variable is not set
Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang.
(fix shellcheck failure)
Signed-off-by: Mike Beattie <mike@ethernal.org>
This messes with markdown parsing Signed-off-by: Mike Beattie <mike@ethernal.org>
Secure by default. Also try to minimize configuration errors. (Many ESPs/ISPs require STARTTLS, and most support it.)
Improves standards compatibility and utf-8 handling in Python 3.3-3.8. (email.policy.default becomes the default in Python 3.9.)
Just in case, make sure CR or NL don't end up in an email header.
Add and use _readaccountconf_mutable_default and _saveaccountconf_mutable_default helpers to capture common default value handling. New approach also eliminates need for separate underscore-prefixed version of each conf var.
Also add X-Mailer header to Python version
I will not try to use whitespace to group code visually
(I'm open to better ways of formatting the heredoc that embeds the Python script.)
Support notifications via direct SMTP server connection. Uses Python (2.7.x or 3.4+) to communicate with SMTP server.
Requires: - API Token for a bot created with the Telegram Bot Father. - A Chat ID for a user/group that the bot has permission to post to.