git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e9d1b0
)
+Optional folder cleaning after the close of == folder.
author
short
<>
Sun, 26 Dec 2004 21:35:01 +0000
(21:35 +0000)
committer
short
<>
Sun, 26 Dec 2004 21:35:01 +0000
(21:35 +0000)
bin/m
patch
|
blob
|
history
diff --git
a/bin/m
b/bin/m
index
6b017e5
..
459572c
100755
(executable)
--- a/
bin/m
+++ b/
bin/m
@@
-1,8
+1,11
@@
#! /bin/sh
#! /bin/sh
+LINES=$[`stty size|cut -d ' ' -f 1`]
+FETCHMAILHOME=$HOME/priv/${USER}mail
case $# in
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"
;;
;;
*) echo "Error parameters"
;;