aboutsummaryrefslogtreecommitdiffstats
path: root/README.org
blob: 14b03b7daceeb2e31da1f69e58c85128e344a087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#+title: Count Emails

A simple script that counts the number of unread emails in my inbox for display in a status bar like [[https://polybar.github.io/][Polybar]].

* Requirements

This script needs [[https://scsh.net/][scsh]]. It also optionally needs [[https://notmuchmail.org/][notmuch]]. If notmuch isn't installed, it needs [[https://www.gnu.org/software/findutils/][findutils]] instead.

* Installation

Put the =count-emails= script anywhere in your =$PATH=.

* Usage

Run the =count-emails= script without arguments. If notmuch is installed it just asks it how many emails there are tagged =inbox= and =unread=, otherwise it needs one or more [[https://en.wikipedia.org/wiki/Maildir][Maildir]]-format directories to exist in =$HOME/documents/mail=.