- Known quirks
- Troubleshooting
- Where to begin
- Missing or black systray icon
- Need more help?
- High-level architecture
There is an edge-case when an .msf
is not immediately flushed to
disk. This causes nbiff
to believe there are Unread messages
when there are none.
The issue is being tracked.
There are several work-arounds:
-
Wait. Within two or three minutes,
Thunderbird
synchronizes the disk file andnbiff
will note the change, -
Restart
Thunderbird
, -
Use
tbird_new_msgs
to identify which.msf
is out of sync. Once identified, click on the Folder andThunderbird
will syncrhornize it.To read more about about
tbird_new_msgs
, see the Troubleshooting section.
The sections below assume that you have read the High-level architecture section.
- Ensure that
nbiff
can create its icons independent ofgen_new_msgs
:- See previewing changes.
- Invoking
nbiff
using this method is independent ofgen_new_msgs
.
- Ensure that
gen_new_msgs
is working properly:- See tbird_new_msgs on how to run the
Thunderbird
script in a terminal.
- See tbird_new_msgs on how to run the
This will happen when nbiff
cannot access its icons.
To troubleshoot this issue, change directories to the systray
directory and in a bash
shell, load the respective configuration
files:
cd $HOME/.nbiff/systray
. ../Globals
. ../conf/nbiff.conf
Each .
command will return silently if there are no errors.
Next, confirm that the directory variable is properly set. The command below will return the list of icons contained in the directory:
ls -la $ICONS_DIR
The final step is to ensure each icon variable points to a file:
ls -la $ICONS_DIR/$ICON_UNREAD_MSGS
ls -la $ICONS_DIR/$ICON_NO_UNREAD_MSGS
ls -la $ICONS_DIR/$ICON_ERROR
ls -la $ICONS_DIR/$ICON_MUA_IS_DOWN
If you need help, it may be possible to get online help.
There are two high-level components for nbiff
:
[ gen_new_msgs ] <-> [ nbiff ]
Scripts in gen_new_msgs
can be run standalone or are called by
nbiff
.
nbiff
is the data visualizer. It reads the input from a
gen_new_msgs
script and changes the systray icon accordingly.
$HOME/.nbiff/gen_new_msgs
stores the scripts/programs with the logic
to determine the count of unread messages for the mail client.
For testing purposes, multiple instances of it can be running.
tbird_new_msgs
is tailored for Thunderbird
.
For testing purposes, multiple instances of it can be running.
To run it:
cd $HOME/.nbiff/gen_new_msgs
./tbird_new_msgs
This is some sample output.
Use the argument -?
to see its options:
./tbird_new_msgs '-?'
Within the gen_new_msgs/
is the Test/
subdirectory. These scripts
can be used to isolate issues and/or exercise nbiff
's icons.
This is an example of running one of the scripts:
cd $HOME/.nbiff/gen_new_msgs/Test
./cycle_icons
This is its output.
nbiff
is the data visualizer. It runs a script/program and
depending on the results, displays different systray icons.
It is designed to be invoked from any directory as it changes its directory to the directory where it is located.
Below is an example calling it to run the nbiff_qt5.py
script:
cd $HOME/.nbiff/systray
$HOME/.nbiff/systray/Run_nbiff nbiff_qt5.py &