(any news can be found on my general blog)
This extension for Mozilla Thunderbird allows you to specify, for each separate mail folder, a message, sound and/or a system command that will be executed when new mail is found there. This way, you specify different actions for less important folders, or no action at all.
See the Manual for information on how to use Mailbox Alert.
The current version is 0.16.3.
To install it in Thunderbird, right-click the link, choose "Save as", go to Tools->Addons in Thunderbird, choose Install, and select the downloaded xpi file.
You can also download and install it through Mozilla's AMO website or, depending on your version, the dialog within Thunderbird.
- Fixed a bug where alerts were fired for child folders even if the 'alert for child folders' option was not set (Patch submitted by Jon Siddle, thanks!)
- Fixed a bug where %count was not replaced correctly in the 'execute a command' option.
- The final file that got uploaded as 0.16 had missed a few final cleanup updates and fixes, one of which can cause some messages not to appear, and one where the fade option causes a loop. These issues should be fixed in this version.
- Sound playback should no longer be interrupted
- Reworked the internal triggering system; reintroduced delays to prevent multiple messages in one folder causing multiple alerts, and fixed the 'double alert' issue for filters. This should also fix the problem where sometimes alerts weren't fired at all.
- Removed the call to updateFolder() which may be the cause of seemingly unrelated caching problems in Thunderbird
- Fixed a looping issue in the closing of fading alerts
- Fixed a bug when selecting a new icon and an alert was shown
- Fixed a bug when selecting a new icon and the window was not resized properly
- Fixed a bug where play a sound resulted in an error if the global mute had never been set
- Configuration has changed; you can now define a set of alerts, and specify one or more alerts per folder directly from the folder context menu. Existing configuration is automatically converted to the new one.
- Mailbox alert can now also be used as a filter action
- You can now right-click the alert message popup to get a menu with all the available actions mailbox alert can do on the message (this list is similar to the default click action you can configure)
- If duration for popups is set to 0, it is never automatically closed
- You can now choose custom locations on your screen for the 'show message' option.
- Added a %date and a %time macro
- Sliding and fading alerts should be smoother now
- Added an option to delete the message from the alert popup (moves it to trash)
- Changed the way Mailbox Alert listens to the arrival of new messages. There should no longer be a delay between the arrival and the alert, and some problems that people have been experiencing should now be solved.
- Execute a command now supports quoting with "
- Internal sound is no longer the system beep but a built-in bell sound.
- Fixed an issue on Thunderbird 2 caused by a changed internal API, where alerts would not fire at all in some circumstances.
- Fixed another issue with Thunderbird 2 where 'execute a command' did not work for some executables.
- Fixed a problem where the check if a command is executable failed on Windows, even though the command would run fine
- Fixed a problem where the folder was not always correctly selected with the 'Open in current window' option
- Fixed a problem with older thunderbirds that don't have some functions newer versions do
- Fixed a bug in the assignment of a few of the macro variables
- Fixed some locales that were not included in last release
- Some internal refactoring (nothing user-visible)
- Fixed a problem with Thunderbird 2
- Updated da-DK locale
- New option in 'global preferences', open the message in existing window (and raise it)
- Alert message window is immediately closed after it is clicked
- Added a global 'mute' selection (in the tools menu)
- An earlier release lost a lot of translations, these have been re-added, though they are not complete yet (so some english may still occur)
- Updated to work with Thunderbird 3.1
- Updated allowed programs to include SeaMonkey 2.0.x
- Updated to work with Thunderbird 3
- Fixed a bug in the command section of the preferences screen
- Fixed a bug in the no-alert-to-parent section
- the popups no longer uses the internal alerts service (which was very limited and on some platforms missing altogether). I have replaced it with a personal version of something that works a bit like the alerts in tb2.
- This means that there is now an extra settings screen, available through 'global alert settings' in the normal prefs screen, where you can set:
- the delay of the popup
- the duration of the popup
- the position of the popup
- an appearance effect
- what to do when you click on the popup (open message or close popup)
- This also means that popup alerts should be available to OS X users
- The icon is now optional in alert popups
- Major change in settings storage: only non-default settings are stored; this should mean that the problems for people with a lot of mailboxes should be mitigated, unless they specify maximal separate settings for each and every folder
- Added it-IT locale
- Added pt-PT locale
- Updated allowed version of Thunderbird to include 2.0 Release candidates
- It does not make any use of the improved alerts system, but still uses the old one, which has been tested and still seems to work.
- Fixed a bug in the %folder macro where the complete URI was shown instead of just the folder name
- Added localization for de_DE (thanks Archaeopteryx)
- Complete change to the way the settings are stored, settings should now be kept if you use localization, or change the name of a folder)
- IMPORTANT: YOUR OLD SETTINGS WILL BE GONE IF YOUR REVERT TO AN OLD VERSION
- Settings will be back when you upgrade back to 0.11
- Before you restart, you can copy your prefs.js file if you only want to test first
- Fixed bugs where localization broke storing settings, see previous point
- Fixed a bug in charset conversion
- Localization support (current locales: en_US, nl_NL and fr_FR, thanks Jean-Michel).
- Alerts that fail are automatically disabled,
- The built-in alert service is disabled for setups that don't support it (OSX, old Thunderbird versions)
- The preferences screen has been reduced in size, and the macro explanations have been moved to a separate window.
- Mailbox Alert is now triggered by additions to folders and does not need to search through the whole folder again, so the speed problems ('hanging script alerts') should be gone now.
- Manually setting a message to unread no longer triggers an alert.
- Virtual folders can no longer be configured, and are disabled if they are.
- Error messages are now more clear.
- File paths should now be displayed correctly on all platforms (OSX gave some Base 64 string instead of the file name).
- You can now set a folder to alert for its subfolders, and you can set alerts on complete accounts
- Alerting is now done through a delayed queue, which means that:
- When multiple new messages arrive for one folder, only one alert is shown
- When new messages arrive in different folders, the alerts are shown one at a time
- There is a 2 second delay before alerting so the junk filter can run first
- Preferences screen has been improved, unused settings boxes are disabled
- The Test option from the tools menu has been removed, use the button from the preferences screen now
- Bugfixes, most notably:
- Different charsets are now displayed correctly in the default message popup
- Empty values for macro replacements (like subject) don't break the alert anymore
- Alert are now shown as soon as mail arrives (sometimes this did not work with IMAP or user-defined filters)
- Added direct show message option (which calls built-in alert service)
- Added play sound option
- %sendername is stripped from surrounding quotes
- Added test button in preferences dialog
- Updated icons
- Added a Browse button to select the program to execute
- Added a Last command button that copies the last saved command to the current command field (convenient when setting the same command to multiple folders).
- Better error messages
- There is a toggle in the settings that replaces special characters in the macro contents by their HTML Entity numbers. Only the ASCII Entities from the HTML specification are replaced (", ', &, << and >>).
- There are two new macros:
- %sendername This is replaced by the name part of the sender's address (up to the first <<).
- %senderaddress This is replaced by the address part of the sender's address (between the << and the >>).
- If the address does not contain << and >>, these values are the same as %sender
- Arguments to executable are nog longer prepended by a space (which breaks everything you call with it that uses options).
- The actual command and it's arguments are now dump()ed if you set browser.dom.window.dump.enabled to true.
- Added some debug messages using the dump() function (enable them by setting browser.dom.window.dump.enabled to true in your settings)
- No longer alerts with 'locked' or exceptions, instead it ignores the locked setting (doesn't seem to matter anyway for reading out folder data) and uses dump() for exceptions.
- Changed the possible Thunderbird version to 1.0 - 1.9+ so that it also works in 1.5
- Fixed bad backslashes in front of << >> and & characters in the messages
- [0.1-0.2] Made the function call non-blocking
- [0.0-0.1] Initial version
If you don't like the default system messages, you can use libnotify (Thanks for the tip, Alf :) ) to show new mail arrived:
/usr/bin/notify-send -i /usr/share/pixmaps/mozilla-thunderbird.xpm %sendername\ %folder %subject
Don't forget to turn on the HMTL tags checkbox, otherwise the texts don't appear if there is a '<' character in it.
External Windows Alert Tool
A friend of mine, who wishes to remain anonymous, whipped up some c++ code to show a popup from the system tray, so you can have nice messages in Windows too.
There is a second version already, this one shows the Thunderbird icon, and has a third optional argument; the timeout in milliseconds.
To use it, copy the file Popup.exe from the zip to a directory on your hard drive, and set the mailbox alert to:
c:\<<dir>>\Popup.exe %sender %subject
If your directory has spaces in it, put a \ in front of them. Quoting does not work. It looks weird with the backslash also being the directory separator, but it works.
This code is unsupported. I do not have access to a windows machine with a compiler and will not be able to improve on this. I have tested it briefly on a Windows XP machine and it seems to work.
If you do have a compiler, and can improve on it, I will gladly put it up on this page, or link to your site, provided the source is up there too.
Another option to use with Windows is mNotify which looks pretty nice if you don't mind the color. It takes two arguments (remember, if you want spaces within the arguments, put a backslash in front of them.
Mailbox Alert for OSX
(this is for versions before 0.13, or for people who like Growl better than the internal system. Which would be understandable)
I have had reports that Mailbox Alert's 'show a message' option produces an error when using it on mac OSX. Apparently this part of the Thunderbird/XPCOM library is disabled for OSX at the moment.
Users are adviced to use Growl for showing alerts.
A nice example line for growl is:
/usr/local/bin/growlnotify -a thunderbird %folder %sender %subject
Here is more information on how to use Growl.
If you want a more interactivity, and your operating system contains the python-notify (or notify-python, names seem to differ) package, you can also use notify-more, with this you can add a 'show' button to the popup message.