diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-06-01 10:55:23 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-06-01 10:55:23 -0400 |
| commit | 3b4590b1a745b06ce36cb558a4749923675e9b35 (patch) | |
| tree | 532e9f00ae0b7fdeb3645f13b926e8a65b74f1ec /scripts/checkmail | |
Ready. Set. Go!
Diffstat (limited to 'scripts/checkmail')
| -rwxr-xr-x | scripts/checkmail | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/checkmail b/scripts/checkmail new file mode 100755 index 0000000..64abbe6 --- /dev/null +++ b/scripts/checkmail @@ -0,0 +1,8 @@ +#!/bin/sh + +[ $# -lt 1 ] && echo "error: invalid usage: requires an email as an argument" && exit 1 + +mail_address="$1" +mail_dir="$XDG_DATA_HOME/mail/$mail_address/INBOX/new" + +echo "$(ls $mail_dir | wc -l) " |
