Command line utility: read(and dismiss) new Mastodon (Pleroma) notifications.
Required requests library.
Read mention notifications for Pleroma user:
python3 mstdnotify.py --server_url https://pleroma.example --token <USER_TOKEN> --exclude follow --exclude favourite --exclude reblog --exclude poll --exclude pleroma:emoji_reaction
Obtain USER_TOKEN: https://docs.joinmastodon.org/client/authorized/#flow
Required scope: read:notifications
read:statuses
write:notifications
Sending new mention notifications using sendmail
.
pleroma_sendmail_mention.sh https://pleroma.example <USER_TOKEN> user@example.net