1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-23 07:53:59 +01:00
aerc/contrib/ircbot/Sourcehut
Robin Jarry 2d9f949ac9 ircbot: sanitize email subjects
Email subjects may contain line breaks if they are too long to fit in 72
columns. The supybot library does not support sending messages with line
breaks. It raises an error. Replace all consecutive "white space"
characters (including \r and \n) with regular space characters.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2024-08-20 13:57:33 +02:00
..
local contrib: add irc bot stuff 2023-07-01 18:26:35 +02:00
__init__.py contrib: add irc bot stuff 2023-07-01 18:26:35 +02:00
config.py contrib: add irc bot stuff 2023-07-01 18:26:35 +02:00
plugin.py ircbot: sanitize email subjects 2024-08-20 13:57:33 +02:00
README.md contrib: add irc bot stuff 2023-07-01 18:26:35 +02:00
setup.py contrib: add irc bot stuff 2023-07-01 18:26:35 +02:00

Supybot plugin to receive Sourcehut webhooks