dotfiles/scripts/prefix/bin/msmtp-listqueue

9 lines
167 B
Text
Raw Normal View History

2017-03-14 15:18:28 +01:00
#!/bin/sh
QUEUEDIR=$HOME/.msmtpqueue
for i in $QUEUEDIR/*.mail; do
egrep -s --colour -h '(^From:|^To:|^Subject:)' "$i" || echo "No mail in queue";
echo " "
done