Coder Social home page Coder Social logo

electrotype / thunderbird-addon-scriptable-notifications Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 3.0 1.17 MB

Allow you to use an external script to manage Thunderbird mails notifications

Home Page: https://addons.thunderbird.net/en-US/thunderbird/addon/scriptable-notifications

License: MIT License

Shell 4.63% Python 46.65% Batchfile 0.24% JavaScript 36.03% CSS 2.74% HTML 9.71%
thunderbird thunderbird-addon

thunderbird-addon-scriptable-notifications's People

Contributors

electrotype avatar sphh avatar tech189 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sphh m8sa tech189

thunderbird-addon-scriptable-notifications's Issues

rss

great extension. is it possible to make it work for rss feed accounts as well? (you'll find it in account settings > account actions>add feed account, in case you didnt know)

also, any chance you could add a script example for showing icon1 when there are no new messages, and icon2 when there are new messages (and back to icon1 again when the new message(s) are marked read? i quite dislike new icons popping up in the tray and moving things around so always having an icon is better imo

thanks for this extensions, its pretty great

Windows 11 - Open Visible Terminal Window?

Trying to get an actual terminal window to show and I cannot for the life of me figure it out.

I've tried many variations of "C:\Program Files\PowerShell\7\pwsh.exe" -Command "Start-Process pwsh.exe"

That works when pasted into cmd.exe window and when executed by me double clicking a .bat file with that string as the contents.

The windows script.bat for simplenotification.py works, however.

Error in Developer Tools:
image

Watch other folders than INBOX

Finally an extension, which enables me to display an icon to my liking in the system tray! Thanks.

I filter my emails into different mailboxes and it would be really great, if ScriptableNotifications could act on mails in those folder as well.

Send msg URI in extended info?

I previously used Mailbox Alert, the developer of which says is not likely to be updated to 115, to call TerminalNotifier https://github.com/julienXX/terminal-notifier on my Mac. Actually I had Mailbox Alert call a bash script, which read the parameters sent by Mailbox Alert and formatted them for TerminalNotifier. I think I can write a bridge that will take Scriptable Nofications's JSON and transform it for the same use.

One thing is missing though: Mailbox Alert sent a TB Message URI, which meant I was able to make TerminalNotifier's notifications clickable... clicking an OS notification would directly open the message in Thunderbird, no muss, no fuss. I don't know anything about the under-the-hood changes in 115, but, do message URIs still exist, and would they be an easy bit of info to include in the JSON?

Perhaps someone might find Folder URIs of use, too.

Samples do not work

Hi the windows simple sample does not work with python 3 as the tk stuff has changed

Send a "quit" command in extended mode

In extended mode, the native script receives a "start" command, when Thunderbird starts. Sometimes it would be good, if the native script were to receive a "quit" (or "exit") command as well.

This is not possible (at the moment?), because the "Quit Event" feature is part of Thunderbird's experimental API โ€ฆ (for a discussion, see #5).

Another possible solution would be to keep the connection to the native script open, as outlined in https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#connection-based_messaging. Then the native script will receive a SIGTERM signal, whenever Thunderbird is closed.

Increase the payload?

The information currently sent to the script is good enough for a simple script.

I have a script, which could display the number of messages, create notifications etc. For this it would need more information from ScriptableNotifications. At the moment it cannot even tally and display the number of unread messages, because the script receives a true even for read messages.

Do you think, it would be possible to increase the payload with information about the new/read/deleted message? Obviously this should be an opt-in feature, so that current scripts do not break.

I could think of the following interesting information:

  • Message ID
  • Sender
  • To, Cc or Bcc?
  • Subject
  • Priority
  • Status (new|read|deleted)
  • Mailbox
    and maybe some more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.