summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net:ordener.fr/Aliases.zsh5
1 files changed, 3 insertions, 2 deletions
diff --git a/net:ordener.fr/Aliases.zsh b/net:ordener.fr/Aliases.zsh
index dafa07b..b82b99c 100644
--- a/net:ordener.fr/Aliases.zsh
+++ b/net:ordener.fr/Aliases.zsh
@@ -11,6 +11,7 @@
## Paranoid specifics aliases
-cmd_exists mailstat && a mailstats='mailstat -mo ~/.procmail/procmail.log'
-cmd_exists mailstat && a mails='mailstat -k ~/.procmail/procmail.log | egrep -v "## .*:" ; cat ~/.procmail/procmail.log >> ~/.procmail/procmail.log.old ; echo -n > ~/.procmail/procmail.log'
+#cmd_exists mailstat && a maillogs='mailstat -mo ~/.procmail/procmail.log | cut -c8- | sed "s:^[0-9]*::"'
+#cmd_exists mailstat && a mailstats='echo ; echo "\tToday" ; awk < ~/.procmail/procmail.log{,.old} "BEGIN {RS=\"From\"} /`LC_ALL=C date "+%a %b %d ..:..:.. %Y"`/ { print \"From \"\$0 }" | grep -v "^$" | mailstat | cut -c8- | sed "s:^[0-9]*::"'
+#cmd_exists mailstat && a mails='mailstat -km ~/.procmail/procmail.log | sed "s/^No mail.*/ No mail/" | cut -c8- | sed "s:^[0-9]*::" | egrep -v "## .*:" ; cat ~/.procmail/procmail.log >> ~/.procmail/procmail.log.old ; :> ~/.procmail/procmail.log'
cmd_exists mutt && a junkmail='[ -f ~/Mail/junk.gz ] && mutt -f ~/Mail/junk.gz'