aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/msmtp-listqueue.sh
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-11-08 20:43:20 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-11-08 20:43:20 +0000
commit8d0bdf6bef075ea538f05759528e58bad166b924 (patch)
treefe823b1ef3ca8f041d37c480b0c99ae4393a48f8 /.local/bin/msmtp-listqueue.sh
parent47f3bc8e0a8784f849cce23c9dfa72d1ea1d22b0 (diff)
Initial commit
Diffstat (limited to '.local/bin/msmtp-listqueue.sh')
-rwxr-xr-x.local/bin/msmtp-listqueue.sh8
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