diff options
author | Justine Smithies <justine@smithies.me.uk> | 2023-08-22 19:35:23 +0100 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2023-08-22 19:35:23 +0100 |
commit | 3058d6df77817de298a207d36b8b0871893c417a (patch) | |
tree | 2f3cbb973751e0f829ad3e00dd52bc5a081936d5 /.local/bin/msmtp-listqueue.sh | |
parent | 1125d4a4ee25de42f3223d612a50a1256bd222d3 (diff) |
Initial commit
Diffstat (limited to '.local/bin/msmtp-listqueue.sh')
-rwxr-xr-x | .local/bin/msmtp-listqueue.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.local/bin/msmtp-listqueue.sh b/.local/bin/msmtp-listqueue.sh new file mode 100755 index 0000000..cc97c58 --- /dev/null +++ b/.local/bin/msmtp-listqueue.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +QUEUEDIR=$HOME/.msmtpqueue + +for i in $QUEUEDIR/*.mail; do + grep -E -s --colour -h '(^From:|^To:|^Subject:)' "$i" || echo "No mail in queue"; + echo " " +done |