Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

A shell script to monitor unread messages of Thunderbird

License

Notifications You must be signed in to change notification settings

eikendev/thunderbird-unread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status License

This project was discontinued in favor of tbunread.

About

This script outputs how many emails are unread in each account of Thunderbird. It can automatically detect your default Thunderbird profile.

Usage

To use the script you have to provide it with the accounts you want to query. This is done by creating symbolic links in the ImapMail directory of Thunderbird. The links must have the file extension .unread and point to one of the IMAP directories (POP3 is not supported). By naming the links in the alphabetical order of your choice you can also choose the order of the output.

The following is an example of how it could be set up.

$ pwd
/home/YourUsername/.thunderbird/YourProfile/ImapMail
$ ls -la
(...)
lrwxrwxrwx. (...) 01.unread -> mail.example1.com
lrwxrwxrwx. (...) 02.unread -> mail.example2.com
drwxr-xr-x. (...) mail.example1.com
drwxr-xr-x. (...) mail.example2.com

Be aware that I have only tested the Maildir format of Thunderbird.

I recommend using systemd to run the script. See below for an example on how the service file should look like.

[Unit]
Description=Thunderbird Unread

[Service]
Type=fork
ExecStart=/your/path/to/bin/thunderbird-unread
Restart=on-success
RestartSec=5s

[Install]
WantedBy=default.target

Requirements

Thunderbird Unread depends on ripgrep and inotify-tools.

About

A shell script to monitor unread messages of Thunderbird

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published