File: msmtp-listqueue.sh

package info (click to toggle)
msmtp 1.4.28-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,980 kB
  • sloc: ansic: 10,847; sh: 5,168; python: 121; makefile: 84; sed: 16
file content (8 lines) | stat: -rwxr-xr-x 175 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
#!/usr/bin/env bash

QUEUEDIR=$HOME/.msmtpqueue

for i in $QUEUEDIR/*.mail; do
	egrep -s --colour -h '(^From:|^To:|^Subject:)' "$i" || echo "No mail in queue";
	echo " "
done