Code Monkey home page Code Monkey logo

mailbox-alert's People

Contributors

dandelionsprout avatar jobisoft avatar jolange avatar phil294 avatar rnc avatar shanness avatar staypirate avatar tjeb avatar

Stargazers

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

Watchers

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

mailbox-alert's Issues

Feature request: Use libnotify to support native notifications

The notifications that I think are caused by the addon are especially in Wayland/Sway full-screen and pretty annoying. It'd be much better if the addon supported at least optionally sending the notifications through libnotify so that they would go through the native notification platform and look the same as other notifications.

%server in custom command does not work any longer (TB 68)

Since TB was updated to 68.2.1, using %server in my custom command does no longer work. I pass it to notify-send and no notification is shown at all.

For debugging, I used this command:

/usr/bin/notify-send "%server" "%sendername" -t 100000

No notification is shown and the error console says:

[MailboxAlert] Command to execute: 
[MailboxAlert] /usr/bin/notify-send "%server" "%sendername" -t 100000
[MailboxAlert] 
[MailboxAlert] Executable: 
[MailboxAlert] /usr/bin/notify-send
[MailboxAlert] 
[MailboxAlert] Command:  /usr/bin/notify-send
[MailboxAlert] Arguments: ,Johannes Lange ,-t,100000

On the other hand, using the "Test these settings" works (it shows "SomeServer").

There seems to be a problem with the %server field. If I don't use it, it works:

/usr/bin/notify-send "TEST" "%sendername" -t 100000

Do you have an idea what happened in TB that might cause this?

alerts missing

I had to reinstall TB and even though my profile was restore alot of things are missing.
All the sounds I had configured are missing from the setup.
how can I fix this?

Feature request: alter Thunderbird's *window* if there are unread messages in configured folders

Description: add another notification method which will alter Thunderbird's window for as long as there are unread messages in configured folders. Alteration should be "strong" in a way you could see it even from far away. Few ideas, as I don't know what is technically possible:

  • change window background (what if there are multiple Thunderbird windows opened?)
  • change background of custom toolbar (Mailbox Alert currently doesn't have one, but it may have)

This notification method would complement current methods which are ephemeral and easy to miss if you are not in front of your computer when messages arrive.

Alerts don't display diacritical mark

When I set up Mailbox Alert with some diacritical letters, like ś, it show another character after confirm alert.
Environment: Windows 10 + Thunderbird 78.8

thunderbird1
thunderbird2

Version 0.24 doesn't work in TB 75.0b3

Hello,
I have installed Version 0.24 in TB version 75.0b3, and when I right-click on a folder, I don't see the Mailbox alert menu item. I'm running Mac OS Catalina (10.15.4).
With Best Regards,
Josh

It seems not to work :(

  1. I created a test-Alert (Test1) for Local Folder/Junk.
  2. In the filter ([see screenshot]https://ufile.io/ipqduixy) I set this alert Test1 and
  3. I even set up the folder with this alert Test1

Now I started a program, that sends two email which are moved to Junk and I see the coming in but Mailbox-Alert remains silent in every way

Custom alert overlaps with more than one email

@tjeb When custom alerts are set up using message filters and more than one email arrives with the same address, at the same time, the custom alert sounds and overlaps itself. For instance, today I received four emails to the same address, at the same time. The alert started to play, but then was immediately played over by the same custom alert. So it sounded like a stutter, playing "John, John a new email has arrived for you". When only one email arrives, it plays fine "John, a new email has arrived for you"
Can an option be added to only process the message filter once, regardless of how many opportunities are present?

Command does not allow unicode characters

Hello,

when trying to use notify-send via a command, it does not accept unicode characters. For example if I try to use notify-send "%server · %sendername" it does not show any notification, but when I replace the middle dot by a dash.
The same command works (except for %server and %sendername) when executed in zsh or bash.

Cheers,
hpaantee

wondering if i don't understand usage

hi,
first, nice add-on! i needed something where i had a popup notification that remained until i saw it. for this purpose, the add-on is what i need.
i have TB adaptive junk mail filter enabled, too. those go right to the junk folder.
what i would like is not to receive MA notice for those labeled as junk by TB. i tried checking the box that says filter after junk mail classification, but the MA filter still displays a popup.
it's not a big deal, really, since i am just clicking to close the popups, but i was wondering if i am misunderstanding how this works. i don't even think it's a MA issue as much as trying to understand how the TB filter system works.
thanks!!

Not able to browse for custom sounds in linux Fedora 28

it seems to wor with default sound

unfortunately clicking on "Browse" has no effect
I have tried to put the short path ( from the user home root ~/rest_of_the_path/file.wav) and no effect
It works with the full path (/home/username/rest_of_the_path/file.wav )
It will be grat to fix the browse button

Popups & ding still showing up

Hi there,

So I'm trying to get rid of the poups & ding when there's new mail in TB v 91 & we tried to turn it off, but it wasn't intuitive for us.

Then someone in a forum told us to do this which didn't make sense. https://i.imgur.com/kGAr35Z.png

Can you please help.

We thought it would turn off specific mailboxes in TB from doing the popup & the ding.

Thanks a ton

Feature request: Trigger custom alert based on time of day

I'm not sure if it's within the scope of this add-on, but I'd love to see an option to trigger a custom alert based on the time of day an email is received. Right now I use custom voice alerts for each of my email accounts, but I'd like to further customize them by the time of day, using a time range. For instance, any email received between 12:00 AM and 11:59 AM would have a custom alert "Good morning John, new Hotmail email has arrived". Any email received between 12:00 PM and 4:59 PM would have a custom alert "Good afternoon", then from 5:00 PM to 11:59 PM would be "Good evening". Could that functionality be added to this add-on?

thunderbird linux: cannot handle command arguments containing umlaut in path

Execute a command does not accept path arguments containing umlauts.
Here I've uploded examle (sound) files I get played with "aplay" which should be installed on any sound capable linux system.
https://bits-fritz.de/File/bug/tunes.zip (append at this issue didn't work)
successful command:
/usr/bin/aplay [wherever]/toene/mail.wav
"test configuration" plays sound
unsuccessful command:
/usr/bin/aplay [wherever]/toene/trööt.wav
"test configuration" silently ignores the command

Mailbox Alert 0.22.1
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Color customization

I'm using the TT DeepDark theme for Thunderbird. Due to its CSS, it causes the alert that pops up to have white text on a white background. Is it possible to change the text colors used in the alert popup? I've tried modifying the newmailalert.css file but can't get anything to change when I use the test option.

Alerts fire when email is read, not received

Thunderbird 52.9.1 (64-bit) on Ubuntu 16.04

A bunch of emails will arrive in my inbox while the computer is shut down. When I open Thunderbird and go through the inbox reading those messages that arrived while TB was closed, the alerts will fire when the email is read/opened. I think they are only supposed to fire when the email arrives? It is useless to fire an alert when I read an email because I am already reading it - I don't need an alert.

Feature request: Add option to publish all commandline arguments as json or similar datagram.

When integrating using commandline, it would be nice to have an option of exposing all commandline arguments as a single json string.

Currently, I call my script as:

notify.py "{\"server\": \"%server\",\"originalfolder\": \"%originalfolder\",\"folder\": \"%folder\",\"countall\": \"%countall\",\"count\": \"%count\",\"subject\": \"%subject\",\"senderaddress\": \"%senderaddress\",\"sendername\": \"%sendername\",\"sender\": \"%sender\",\"recipientaddress\": \"%recipientaddress\",\"recipientname\": \"%recipientname\",\"recipient\": \"%recipient\",\"charset\": \"%charset\",\"messagebytes\": \"%messagebytes\",\"messagesize\": \"%messagesize\",\"date\": \"%date\",\"time\": \"%time\",\"enter\": \"%enter\",\"msg_uri\": \"%msg_uri\",\"msg_preview\": \"%msg_preview\"}"

Would be nice, to simply check a box and have all arguments auto added as the last argument of the specified command, or call notify.py %json

Exclusions

While I can see

Don't let parent folders alert for this one

its not clear whether it operates recursively i.e. don't do alerts on child folders as well? Or, if not, could that be added as an option?

Feature request

Add an option to the popup context menu to close all popups.

%date gives incorrect dates.

I use the following custom command to send my alerts to terminalnotifier, so that I can log the parameters for troubleshooting purposes:

/bin/bash /Users/home/Dropbox/Documents/IT/Shell\ Scripts/terminalNotifierForThunderbird.sh -s %sender -d %date -t %time -j %subject -f %folder -u %msg_uri

My log entries show that, for instance, for an email dated 10/21/15 10:28 PM, Mailbox-alert sends the value 6/20/47775 as %date and 2:03:20 AM as %time.

This is a problem because I am migrating over 65,000 old emails from another account, and I don't want to turn off alerts because then I couldn't see new emails come in, but I want to filter by date in my script to prevent me from getting 65,000 alerts. I can't figure out how it's getting the values it's sending as dates, though.

Couple of problems on v91

From the popup:

  1. Choosing to delete the message isn't working.

  2. Choosing to open the message in current window isn't working.

Message won't open in a new window

When an alert is set up to "Open the message in a new window" on click, a new Thunderbird window opens but no message is displayed.

I am using v0.24 on Thunderbird v68.12.0 (64-bit) on Windows v10.0.18363.1082

Feature request: More intrusive popup

Hi,
it would be nice to be able to configure a more intrusive, e.g. bigger popup. When you add more text to the textbox, the size of the popup doesn't change. Adding whitespace also doesn't work.

The background is that the current popup is not that noticeable, especially if it has to compete with alarms from other programs on many different monitors.

OS: Windows 10.

Thanks!

Support for Thunderbird 102

I love your extension. Can you add support for Thunderbird 102 (currently in beta)? I installed using the Snap, so I think you could use it too to test.

Custom .wav Crashes Thunderbird

Using Windows 10 and Thunderbird 60.3.3, if I enter a path to a custom .wav file, Thunderbird crashes when I try to test it. Also the Browse button doesn't work properly as stated in issue #4 . It pops up an error dialog saying, "Error, unable to find selected audio file. Using default."
image

Incompatible with v91?

I upgraded to v91 yesterday, now none of my custom sounds for individual email accounts are played when new email arrives. Will this add-on be updated so that will work again?

command execution not working

OS: Ubuntu Mate 18.04
Steps:

Test1:
1-activating use of command with letting command field blank
2-click on Test these settings

Error1: [MailboxAlert] error at chrome://mailboxalert/content/mailboxalert_funcs.js:637: ReferenceError: Services is not defined

Test2:
1-activating use of command with command being play "/path/to/file.wav" (command working on terninal)
2-click on Test these settings

Error2: [MailboxAlert] error at chrome://mailboxalert/content/mailboxalert_funcs.js:637: ReferenceError: Services is not defined

Impossible to use cusom icon in alerts

  1. Select "Edit Mailbox Alert alerts"
  2. For icon press "Browse"
  3. Select a picture.
  4. Press "OK", dialog closes.
  5. When mail arrives, the alert is without any icon. Icon disappeares in editor too. 100% reproducible.

I'm using Mailbox Alert 0.18.0 on Thunderbird 52.9.1 (32-bit) under Windows 10

virtual or search folders do offer contextmenu but don't alert

I have several search folders which I would like to alert incoming Mails.

The context menu appears, I can set configuration, but incoming mails don't
start alert.

Mailbox Alert 0.22.1
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Commands don't execute

On OS X, commands that work just fine on the command line, such as /usr/bin/osascript -e 'tell application "Terminal" to activate' , fail silently. No error is given but they never execute when I hit the button to test the alert.

Mailbox Alert doesn't display the content of the email

Hello,

Environment : Debian 10.6 + Thunderbird 78.6

I get the alert displayed on my screen. I configured the "action on click" to "open the message".
When I click, it just displays a new empty Thunderbird window.

Thanks for help.
Francis

Trailing slash

I think the code in MailboxAlert.getFullFolderName causes a trailing slash if folderName is empty so I get notifications like

Nick has mail in Inbox/

Feature request: Add option to display message on a specific monitor

I have a triple monitor set up, and will soon be using the left and center monitors for work, leaving the right monitor for personal use until my work day has ended. While I could toggle the input on the center monitor at random times throughout the day to check emails, it would be a better option to be able to specify within Mailbox-Alert which monitor to display the new email message on. TB is always running on my middle monitor, along with all of my other programs, so moving it and the others to the third monitor is not a viable option.

Mailbox alert and thunderbird alerts

Its not clear from the documentation what the interaction with the native thunderbird alerts are? - does it disable them, overwrite them etc?

Alerts for RSS feeds don't work at all

The add-on allows to set alerts for RSS folders, but they don't seem to work at all. Basically, no notifications are displayed when new RSS feeds come in. Not sure if this is a limitation of Thunderbird itself (which also doesn't support notifications for RSS feeds), but if that's the case, then I'd like to kindly ask for such a functionality to be added to the add-on.

On the other hand, if doing so is either technically impossible or very difficult, then at least the add-on shouldn't allow to set notifications for RSS folders, as they don't seem to do anything right now.

Compatability with TB60

TB 60 (the current beta) reports incompatibility with this awesome plugin.
I'm not sure whether this affects real functionality or is just a heads-up that some compatibility flag needs to be set.

Version 0.29.1 not operating att all in TB 91.12.0 on Ubuntu 22.04

No matter the settings, I could not have Mailbox Alert make any useful work in that context.
The only things having an impact on alerts behaviour are still the built-in alert settings of Thunderbird, just global settings.
No way to have a distinct behaviour for some mailboxes.

In camparizon,
proceeding the same but under WIndows 10, with Thunberbird 91 or even 102 works perfectly fine.

"alert for child folders" greyed out for the RSS feeds root folder

First of all, I'd just like to say thank you for this extremely useful add-on.

I'd like to ask whether it's technically possible to allow enabling "alert for child folders" for the RSS feeds root folder. At the moment, the option in the right-click menu is greyed out for it specifically, although it is still possible to enable separate alerts for individual RSS subfolders. If there's no technical limitation here, would you consider adding this possibility to the add-on?

On a similar note, the "alert for child folders" option can be enabled in the case of "Local Folders".

Edit: User error, I'm sorry for the noise. Everything works as expected. You just need to enable the alert for the root folder first 😊.

[FR] Mail alert if mail is NOT incoming?

I get a lot of automated status mails every day. It would be great if I could set an alert if a mail from a specific sender has NOT been received until a specific time (let's say mail from sender X expected until 11.00 AM is not incoming = alert "sender x overdue").

Do you think such a reverse logic is possible?

Help button: TypeError: protocolSvc.loadUrl

When pressing the "Help" button, I get the following error printed:

JavaScript error: chrome://mailboxalert/content/alert_list.xul, line 32: TypeError: protocolSvc.loadUrl is not a function

Thunderbird 60.3.1, Mailbox Alert 0.18.0

Feature request - add SMS alerts

It's probably out of the scope of this add-on, but I would love to see an option to trigger an SMS alert when a new email arrives. To save data and reduce my plan cost, I no longer have email on my phone. However it would be nice to still know when a new email arrives via a text sent to my phone.

Silent isn't silent

Running 0.30 on Tbird 102.3.1 64-bit on Win10.

I have several IMAP accounts configured. One account has only an inbox and the inbox is set to Silent. I got a storm of messages this morning (Fedora released a bunch of updates and the messages were the notices for each package) and Tbird played the default new mail sound for each one.

Directory alerts do not work with filter rules

Hi and thanks for this useful addon.
When enabling Mailbox Alert on a subfolder where filtered emails are moved to, it does not fire.
Steps to reproduce:

  • create subfolder under Inbox
  • rightclick on that folder and enable Mailbox Alert for it
  • create a filter-rule to move emails from Inbox into that folder (e.g. emails from another account you have access to)
  • Send yourself an email from that account. Mailbox Alert does not fire

Workaround
Add Mailbox Alert action right in above filter rule.

Thanks
Tycho

Versions:
Mailbox Alert: 0.29.1
Thunderbird: 91.7.0-amd64 (Debian 11)

Alerts trigger twice

Hello,

I have Thunderbird alerts disabled and use this extension for alerting instead. I have two alerts set, one for a notification, one for sound. Both alerts are enabled for the topmost folder (account) and "Alert for child folders" is enabled.

When new mail arrives, I get two alerts of each kind in quick succession, i.e. two notifications and two sounds.

I can't tell why this happens. When "Alert for child folders" is disabled, I get no alert whatsoever.

Thunderbird 78, Mailbox Alert 0.27, Gentoo Linux

Any ideas? Thanks!

Feature request: Add an Event when an Email is read

It would be great to have a possibility to execute a command or an alert if a Email message is read. So in addition to a event when a mail is received, I want to have a event when the mail is read.
In my case I want to update the Unread-Messages counter in the taskbar.

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.