blob: 38aaf9e05c470f1def1aafa93ab00e4903cb4bb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
#
# Count number of postponed messages.
#
# Setup
POSTPONED="$HOME/temp/mutt/postponed"
# Check
if [ ! -e "$POSTPONED" ]; then
exit
fi
# Calculate
TOTAL="`grep "^From: " $POSTPONED | wc -l`"
# Print
if [ "$TOTAL" != "0" ]; then
echo $TOTAL postponed emails.
fi
|