commit 8e6160a3d0404f538713327f409855a9ecf47f43 parent 3bd7fb174dfbaf1444eb624587bad5881d821840 Author: Jaromil <jaromil@dyne.org> Date: Wed, 30 May 2012 19:30:52 +0200 highlight long time unread when making backup Diffstat:
M | src/jaro | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/jaro b/src/jaro @@ -886,8 +886,12 @@ backup() { newread=`find $src/cur -type f -mtime +$expire | wc -l` newunread=`find $src/new -type f -mtime +$expire | wc -l` - act "from maildir $src ($oldread read / $oldunread unread)" - act "to maildir $dst ($newread read / $newunread unread)" + act "from: (${oldread}/${oldunread} read/unread) maildir $src" + if [ $newunread != 0 ]; then # use some highlight to signal long due unread + act "to: ($fg[red]${newread}/${newunread} read/unread$fg[white]) maildir $fg_bold[white]$dst$fg_no_bold[white]" + else + act "to: (${newread}/${newunread} read/unread) maildir $dst" + fi if [ $DRYRUN = 1 ]; then return 0; fi