jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit 1d42e1fa63251c35b37a7459296317e7503df42b
parent 1ef2e876c146f857430f43589399f8d3a65faea1
Author: Jaromil <jaromil@dyne.org>
Date:   Mon,  9 Nov 2015 12:22:09 +0100

filter fetchmail output to make it readable

Diffstat:
Msrc/zlibs/email | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/zlibs/email b/src/zlibs/email @@ -296,7 +296,11 @@ fetch() { act "please wait while downloading mails to incoming..." - print " $fmconf " | fetchmail -f - + print " $fmconf " | fetchmail -f - | awk ' +/^fetchmail: No mail/ { next } +/^reading message/ { printf(".") } +{ if ($7 == "(folder") printf("\n%s\n",$0) } +END { printf("\n") }' else act "dryrun: nothing will be fetched really." @@ -527,7 +531,7 @@ peek() { fi case $transport in - ssl|tls) act "using secure connection (SSL)" + SSL*|TLS*) act "using secure connection (SSL)" iproto="imaps" ;; plain) act "using clear text connection" iproto="imap" ;;