#!/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