From: short <> Date: Sun, 26 Dec 2004 21:35:01 +0000 (+0000) Subject: +Optional folder cleaning after the close of == folder. X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=2d57444222b533506ae4f1b5139f9ed312e0546f +Optional folder cleaning after the close of == folder. --- 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" ;;