From 2d57444222b533506ae4f1b5139f9ed312e0546f Mon Sep 17 00:00:00 2001 From: short <> Date: Sun, 26 Dec 2004 21:35:01 +0000 Subject: [PATCH] +Optional folder cleaning after the close of == folder. --- bin/m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/m b/bin/m index 6b017e5..459572c 100755 --- a/bin/m +++ b/bin/m @@ -1,8 +1,11 @@ #! /bin/sh +LINES=$[`stty size|cut -d ' ' -f 1`] +FETCHMAILHOME=$HOME/priv/${USER}mail case $# in - 0) ls -ltL ~/Mail #|less + 0) ls -ltL ~/Mail|head -n $[$LINES-2] ;; - 1) exec mutt -f ="$1" + 1) mutt -f ="$1" + test "$1" = "=" -a -d $FETCHMAILHOME && echo cleaning && (FETCHMAILHOME=$FETCHMAILHOME fetchmail >/dev/null &) ;; *) echo "Error parameters" ;; -- 1.8.3.1