diff options
| author | 2022-09-25 23:08:51 -0700 | |
|---|---|---|
| committer | 2022-09-25 23:08:51 -0700 | |
| commit | de8d1094fca307b44020ae85ef0acf0d467cd8c4 (patch) | |
| tree | 1b75ae846cc1ed0330c8baa9026b343b3a04a9fc | |
| parent | a3be7607212d481b1b261b33e00bcf1d13a6abe6 (diff) | |
| download | count-emails-de8d1094fca307b44020ae85ef0acf0d467cd8c4.tar.gz count-emails-de8d1094fca307b44020ae85ef0acf0d467cd8c4.zip | |
Simplify counting emails using notmuch
| -rwxr-xr-x | count-emails | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/count-emails b/count-emails index 4bb75c1..113f95b 100755 --- a/count-emails +++ b/count-emails @@ -5,7 +5,7 @@ exec scsh -o thread-fluids -s "$0" "$@" !# (if (exec-path-search "notmuch" (thread-fluid exec-path-list)) - (display (length (run/sexp (notmuch search --output=files --format=sexp tag:unread)))) + (display (run/sexp (notmuch count tag:unread))) (begin (let* ((mail-root (string-append (getenv "HOME") "/documents/mail")) (unread-emails |
