Created attachment 174238 [details] fix check for empty queue string mailq status returns $1 even when queue is empty. Attached patch fixes problem on my system, which may be entirely because I use postfix instead of sendmail. I'm not sure how postfix interacts with /usr/bin/mailq if at all.