70 Commits

Author SHA1 Message Date
medmunds
a835838749 Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
2021-08-10 09:28:02 +02:00
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.
2021-08-10 09:28:02 +02:00
Alexander Kulumbeg
58ff7722cd Revert "Syncing with the original repo (#2)"
This reverts commit c384ed960c138f4449e79293644c4d0ec937cef1.
2021-08-10 09:27:23 +02:00
Mike Beattie
595196cdbe Update telegram.sh
(fix shellcheck failure)
2021-08-10 09:25:09 +02:00
Mike Beattie
cfec287272 Dump _post() call output to /dev/null
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-08-10 09:25:09 +02:00
Mike Beattie
bc455f2b54 Add debug output of $_data variable to aid diagnosis
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-08-10 09:25:09 +02:00
Mike Beattie
bae08da432 Escape asterisks in notification content
This messes with markdown parsing

Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-08-10 09:25:09 +02:00
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.)
2021-08-10 09:25:09 +02:00
medmunds
f8ee124742 Prefer Python to curl when both available 2021-08-10 09:25:09 +02:00
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.)
2021-08-10 09:25:09 +02:00
medmunds
9570cce7e3 Add Date email header in Python implementation 2021-08-10 09:25:09 +02:00
medmunds
d4fde8dad3 Clarify _readaccountconf_mutable_default 2021-08-10 09:25:09 +02:00
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.
2021-08-10 09:25:09 +02:00
medmunds
d9df5df2d0 Implement _rfc2822_date helper 2021-08-10 09:25:09 +02:00
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.
2021-08-10 09:25:09 +02:00
medmunds
362bd62152 Use PROJECT_NAME and VER for X-Mailer header
Also add X-Mailer header to Python version
2021-08-10 09:25:09 +02:00
medmunds
7f1586678c More than one blank line is an abomination, apparently
I will not try to use whitespace to group code visually
2021-08-10 09:25:09 +02:00
medmunds
897db8d038 Implement curl version of smtp notify-hook 2021-08-10 09:25:09 +02:00
medmunds
03c8cacb67 Prep for curl or Python; clean up SMTP_* variable usage 2021-08-10 09:25:09 +02:00
medmunds
3aec3fc436 Add instructions for reporting bugs 2021-08-10 09:25:09 +02:00
medmunds
897be36a26 Only save config if send is successful 2021-08-10 09:25:09 +02:00
medmunds
dd2844d5b8 Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
2021-08-10 09:25:09 +02:00
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.
2021-08-10 09:25:09 +02:00
Mike Beattie
6bdbc16394 Avoid usage of sed -e 2021-08-10 09:25:08 +02:00
Mike Beattie
f6f9f74a14 Correct shebang 2021-08-10 09:25:08 +02:00
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.
2021-08-10 09:25:08 +02:00
neil
19c4345162 fix shfmt 2020-08-17 22:18:20 +08:00
Honza Hommer
99793bb2c4
chore: remove shellcheck disable 2020-05-09 12:26:16 +02:00
Honza Hommer
24925a1739
feat: add default colors 2020-04-22 21:13:52 +02:00
Honza Hommer
74cdcde449
fix: remove :xdigit: 2020-04-19 23:59:35 +02:00
Honza Hommer
a9c4b8dd1a
feat: Microsoft Teams notify 2020-04-19 01:03:04 +02:00
Honza Hommer
2a8746f6b0
Feat: add msmtp command 2020-03-11 22:32:37 +01:00
Honza Hommer
15b841da06
Feat: simplify conditions for bin and command 2020-03-08 04:47:55 +01:00
Victor Huang
5d88ad554f
Improved token processing method and misc bugfixes
Replace '_err' to '_debug' in the final error report.
Removed redundancy code.
2020-02-08 23:24:45 +08:00
Victor Huang
33670a5bd0
CQHTTP: Change shebang to "/usr/bin/env sh" 2020-02-06 11:26:56 +08:00
Victor Huang
64f8a222cb
Add support for CQHTTP QQ bot API 2020-02-06 11:12:14 +08:00
Vitalii Tverdokhlib
f1f14040b8
DOCS: typo 2019-11-09 12:12:30 +02:00
neilpang
35b34c43ed fix format 2019-11-02 19:44:43 +08:00
neilpang
5698bec621 fix https://github.com/Neilpang/acme.sh/issues/2566 2019-11-02 09:48:41 +08:00
fgma
b9994e52eb Notify xmpp (#2407)
* notify via xmpp (using sendxmpp)

* fix formatting in notify/xmpp.sh

* minor cleanup
2019-09-05 22:28:47 +08:00
neilpang
143eac092c fix notify message 2019-08-05 22:03:56 +08:00
lcdtyph
d74dfb1f5c IFTTT Webhooks Notification (#2416)
* IFTTT webhooks Notification

* use sh instead of bash

* don't save value that is not set
2019-08-05 21:38:32 +08:00
neilpang
80af3d6ada minor 2019-07-22 21:26:47 +08:00
neilpang
28c153a0a2 fix errors 2019-07-20 12:36:28 +08:00
tdk1069
b8e6287774 PushOver notifications (#2325)
* PushOver notifications, using AppToken, UserKey, and optional sounds
2019-07-20 12:30:56 +08:00
Honza Hommer
51099bf148
Add postmark notify 2019-06-03 01:54:04 +02:00
neil
09bce5e6d6
sync (#2297)
* Create LICENSE.md

* remove _hostingde_parse_no_strip_whitespace function as this breaks API requests

* Fix sessionid parsing on BSD

* Make travis happy. (SC2020)

* fix for https://github.com/Neilpang/acme.sh/issues/2286

* Notify mail update (#2293)

* feat: disable e-mail validation if MAIL_NOVALIDATE is set

* fix: expose _MAIL_BIN variable

* fix: call _mail_body and _mail_cmnd directly to make sure that all used variables are exposed

* fix: update notify/mail.sh

Co-Authored-By: Matej Mihevc <zuexo@users.noreply.github.com>

* fix: remove useless echo, quote eval
2019-05-28 08:47:33 +08:00
neil
6a929d6a1a
Merge pull request #2264 from honzahommer/notify-slack
Add slack notify
2019-05-19 08:29:23 +08:00
neil
ae380cb21e
Merge pull request #2259 from honzahommer/notify-sendmail
Add mail notify
2019-05-19 08:28:43 +08:00
Honza Hommer
d83c9da830
add clearaccountconf MAIL_BIN 2019-05-18 18:21:19 +02:00