Steven Zhu
fbe01cfeaa
Fix space inconsistency
4 years ago
Steven Zhu
276bfb04de
Add sender name for SendGrid notify hook
4 years ago
Habetdin
5535bb4cf8
Fix special characters escaping
To escape characters '_', '*', '`', '[' outside of an entity, prepend the characters '\' before them.
5 years ago
Eike-Christian Müller
1b2e3e07ef
more simple mail.sh fix
Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang .
5 years ago
emueller
1996d52578
fixed formating
5 years ago
emueller
212be3d7bd
fix _exists error message when MAIL_BIN env variable is not set
5 years ago
medmunds
5822e1e54c
Change default SMTP_SECURE to "tls"
Secure by default. Also try to minimize configuration errors.
(Many ESPs/ISPs require STARTTLS, and most support it.)
5 years ago
medmunds
0f4aadfc92
Prefer Python to curl when both available
5 years ago
medmunds
f59cd16bfd
Use email.policy.default in Python 3 implementation
Improves standards compatibility and utf-8 handling
in Python 3.3-3.8. (email.policy.default becomes the
default in Python 3.9.)
5 years ago
medmunds
1864109b82
Add Date email header in Python implementation
5 years ago
medmunds
a236b3cfc0
Clarify _readaccountconf_mutable_default
5 years ago
medmunds
86818463f1
Clean email headers and warn on unsupported address format
Just in case, make sure CR or NL don't end up in
an email header.
5 years ago
medmunds
07a04f42c5
Implement _rfc2822_date helper
5 years ago
medmunds
3ed3e3095c
Rework read/save config to not save default values
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.
5 years ago
medmunds
ff009f4c2f
Use PROJECT_NAME and VER for X-Mailer header
Also add X-Mailer header to Python version
5 years ago
medmunds
f4a2dc1fcc
More than one blank line is an abomination, apparently
I will not try to use whitespace to group code visually
5 years ago
medmunds
0f4a0441cf
Implement curl version of smtp notify-hook
5 years ago
medmunds
30b54b8d0f
Prep for curl or Python; clean up SMTP_* variable usage
5 years ago
medmunds
0fc1654faf
Add instructions for reporting bugs
5 years ago
medmunds
7eef1e6623
Only save config if send is successful
5 years ago
medmunds
a835838749
Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
5 years ago
medmunds
2000240aa6
Implement smtp notify hook
Support notifications via direct SMTP server connection.
Uses Python (2.7.x or 3.4+) to communicate with SMTP server.
5 years ago
Alexander Kulumbeg
58ff7722cd
Revert "Syncing with the original repo ( #2 )"
This reverts commit c384ed960c .
5 years ago
Mike Beattie
595196cdbe
Update telegram.sh
(fix shellcheck failure)
5 years ago
Mike Beattie
cfec287272
Dump _post() call output to /dev/null
Signed-off-by: Mike Beattie <mike@ethernal.org>
5 years ago
Mike Beattie
bc455f2b54
Add debug output of $_data variable to aid diagnosis
Signed-off-by: Mike Beattie <mike@ethernal.org>
5 years ago
Mike Beattie
bae08da432
Escape asterisks in notification content
This messes with markdown parsing
Signed-off-by: Mike Beattie <mike@ethernal.org>
5 years ago
medmunds
60027ca7fe
Change default SMTP_SECURE to "tls"
Secure by default. Also try to minimize configuration errors.
(Many ESPs/ISPs require STARTTLS, and most support it.)
5 years ago
medmunds
f8ee124742
Prefer Python to curl when both available
5 years ago
medmunds
3cfb423e89
Use email.policy.default in Python 3 implementation
Improves standards compatibility and utf-8 handling
in Python 3.3-3.8. (email.policy.default becomes the
default in Python 3.9.)
5 years ago
medmunds
9570cce7e3
Add Date email header in Python implementation
5 years ago
medmunds
d4fde8dad3
Clarify _readaccountconf_mutable_default
5 years ago
medmunds
c7ce0fd780
Clean email headers and warn on unsupported address format
Just in case, make sure CR or NL don't end up in
an email header.
5 years ago
medmunds
d9df5df2d0
Implement _rfc2822_date helper
5 years ago
medmunds
a4590b9707
Rework read/save config to not save default values
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.
5 years ago
medmunds
362bd62152
Use PROJECT_NAME and VER for X-Mailer header
Also add X-Mailer header to Python version
5 years ago
medmunds
7f1586678c
More than one blank line is an abomination, apparently
I will not try to use whitespace to group code visually
5 years ago
medmunds
897db8d038
Implement curl version of smtp notify-hook
5 years ago
medmunds
03c8cacb67
Prep for curl or Python; clean up SMTP_* variable usage
5 years ago
medmunds
3aec3fc436
Add instructions for reporting bugs
5 years ago
medmunds
897be36a26
Only save config if send is successful
5 years ago
medmunds
dd2844d5b8
Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
5 years ago
medmunds
e770250bb9
Implement smtp notify hook
Support notifications via direct SMTP server connection.
Uses Python (2.7.x or 3.4+) to communicate with SMTP server.
5 years ago
Mike Beattie
6bdbc16394
Avoid usage of sed -e
5 years ago
Mike Beattie
f6f9f74a14
Correct shebang
5 years ago
Mike Beattie
9cccf5e7cf
Add Telegram notification script
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.
5 years ago
neil
19c4345162
fix shfmt
5 years ago
Honza Hommer
99793bb2c4
chore: remove shellcheck disable
6 years ago
Honza Hommer
24925a1739
feat: add default colors
6 years ago
Honza Hommer
74cdcde449
fix: remove :xdigit:
6 years ago