Skip to content

tmux-plugins/tmux-maildir-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tmux maildir counter

NOTE: This project is no longer in active development. Bugs and features requests won't get implemented by the project maintainers. We still welcome discussions and community pull requests, though.


Plugin that counts files on a specific mail directory.

If you use offlineimap to synchronize your emails with your computer, you can use this plugin to count how many emails you have in a specific folder and display in your tmux left or right status bar.

Shows how many unread emails I have in both my personal and work accounts: prefix_off

Usage

Add the list of folders you want to count to your tmux.conf. All folders must be separated by |.

set -g @maildir_counters '~/Mail/Personal/INBOX/new|~/Mail/Work/INBOX/new'

Then, add the maildir_counter to your left/right status bar where N is the index of the folder you want to show.

set -g status-right 'Personal: #{maildir_counter_1}, Work: #{maildir_counter_2} | %a %Y-%m-%d %H:%M'

If you want to get unread count, pass only the path of the IMAP folder and plugin will check cur and new subfolders, filter them and present any unread mail. Omit trailing slash.

set -g @maildir_counters '~/Mail/Personal/INBOX/new|~/Mail/Work/INBOX'

Then, add the maildir_unread_counter variable and set it to yes:

set -g @maildir_unread_counter 'yes'

Installation with Tmux Plugin Manager (recommended)

Add plugin to the list of TPM plugins:

set -g @plugin 'tmux-plugins/tmux-maildir-counter'

Press prefix + I to install it.

Manual Installation

Clone the repo:

$ git clone https://github.com/tmux-plugins/tmux-maildir-counter.git ~/clone/path

Add this line to your .tmux.conf:

run-shell ~/clone/path/tmux-maildir-counter.tmux

Reload TMUX environment with:

$ tmux source-file ~/.tmux.conf

License

MIT

About

Plugin that counts files on a specific mail directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages