Commit Graph

91 Commits

Author SHA1 Message Date
682828dc7c Create gchat.sh
add support for gchat webhooks
2022-01-31 10:07:56 -08:00
61c853a3c1 Add Gotify notification (#3759) 2022-01-09 10:39:28 +08:00
5e5ba11601 Add iOS Bark notify hook. 2021-11-21 02:39:46 +08:00
640c7c5fa3 Merge pull request #3798 from Scre13/patch_mail_sh
removed -- at beginning of subject
2021-11-09 11:49:25 +08:00
eb6395a62c Update mail.sh 2021-11-09 11:48:58 +08:00
2b2845aa07 removed -- at beginning of subject 2021-11-09 04:28:30 +01:00
54d8c66f3e Merge pull request #3797 from Scre13/patch_lf_mime_version
Removed newline at the end of subject, added MIME-Version header
2021-11-09 09:32:03 +08:00
95bbf1b190 Update mail.sh 2021-11-09 09:30:36 +08:00
ee2dab51f3 removed newline at the end of subject, added MIME-Version header 2021-11-08 22:13:14 +01:00
e8756482aa Update feishu.sh 2021-11-04 09:42:30 +08:00
35d6da785b add support for feishu notification 2021-11-04 00:41:58 +08:00
f2958818c8 Update pushbullet.sh 2021-10-03 22:33:41 +08:00
20f604948f Update pushbullet.sh 2021-10-03 22:31:56 +08:00
4a8511f680 fix wrong variable name 2021-07-17 13:50:45 -03:00
cd6698c688 Merge branch 'acmesh-official:dev' into dev 2021-07-15 22:56:26 -03:00
c7ca9d7e36 fix shfmt issues 2021-07-15 22:55:35 -03:00
98ef51514f added pushbullet functionality 2021-07-11 20:29:44 -03:00
849c3fd9c9 Fix space inconsistency 2021-07-06 22:54:15 -04:00
da58fcbfce Add sender name for SendGrid notify hook 2021-07-06 20:51:51 -04:00
7c7d61f61e Fix special characters escaping
To escape characters '_', '*', '`', '[' outside of an entity, prepend the characters '\' before them.
2021-06-23 03:20:07 +03:00
ec0538d251 Merge pull request #3455 from ecm75/notify_fix
fix _exists error message if MAIL_BIN env variable is not set
2021-04-29 22:34:11 +08:00
eb0c629fad more simple mail.sh fix
Reverted the original patch and changed it to the obvious simple solution provided by @Neilpang.
2021-04-29 12:53:13 +02:00
fb079f9e50 Update telegram.sh
(fix shellcheck failure)
2021-04-08 16:44:22 +12:00
39b09f8f87 Dump _post() call output to /dev/null
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-04-08 16:38:00 +12:00
53d26e5c5c Add debug output of $_data variable to aid diagnosis
Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-04-08 16:37:27 +12:00
e21f3e6c73 Escape asterisks in notification content
This messes with markdown parsing

Signed-off-by: Mike Beattie <mike@ethernal.org>
2021-04-08 16:36:42 +12:00
37e3e2f9c2 fixed formating 2021-03-22 15:32:02 +01:00
3c7be32ef5 fix _exists error message when MAIL_BIN env variable is not set 2021-03-22 15:12:27 +01:00
afe6f4030e 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-02-17 11:39:16 -08:00
6e49c4ffe0 Prefer Python to curl when both available 2021-02-17 11:28:50 -08:00
28d9f00610 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-02-17 09:57:44 -08:00
8f688e5e13 Add Date email header in Python implementation 2021-02-17 09:46:13 -08:00
5a182eddbf Clarify _readaccountconf_mutable_default 2021-02-16 14:41:21 -08:00
4b615cb3a9 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-02-16 14:02:09 -08:00
b36247a091 Implement _rfc2822_date helper 2021-02-16 13:13:26 -08:00
6e77756d6a 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-02-16 12:49:27 -08:00
6ff75f9a9f Use PROJECT_NAME and VER for X-Mailer header
Also add X-Mailer header to Python version
2021-02-15 12:23:48 -08:00
ffe7ef4764 More than one blank line is an abomination, apparently
I will not try to use whitespace to group code visually
2021-02-14 20:06:07 -08:00
30dae70e2b Implement curl version of smtp notify-hook 2021-02-14 19:56:23 -08:00
557a747d55 Prep for curl or Python; clean up SMTP_* variable usage 2021-02-14 16:42:25 -08:00
fe273b3829 Add instructions for reporting bugs 2021-02-14 13:10:30 -08:00
2439bb30e8 Only save config if send is successful 2021-02-14 13:10:30 -08:00
e48b6bd22d Make shfmt happy
(I'm open to better ways of formatting the heredoc
that embeds the Python script.)
2021-02-14 13:10:30 -08:00
1de9ffacb0 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-02-14 13:10:30 -08:00
584cc6de2e Avoid usage of sed -e 2021-01-11 11:27:39 +13:00
2e5a6e21cf Correct shebang 2021-01-11 11:21:46 +13:00
10de4b6b7b 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-01-04 18:41:02 +13:00
19c4345162 fix shfmt 2020-08-17 22:18:20 +08:00
99793bb2c4 chore: remove shellcheck disable 2020-05-09 12:26:16 +02:00
24925a1739 feat: add default colors 2020-04-22 21:13:52 +02:00