From 635c4ebe0aae63eafb3119f0b8cef6f057759b62 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 13 May 2022 15:22:33 +0200 Subject: mail-checknow is unused now --- mail-checknow | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 mail-checknow (limited to 'mail-checknow') diff --git a/mail-checknow b/mail-checknow deleted file mode 100755 index 188042b..0000000 --- a/mail-checknow +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -# Check for new email, save result to file. -# Requires: mpop, notify-send or similar - -file="$XDG_DATA_HOME/newmail" -#notify="notify-send" -notify=herbe - -l=$(cat "$file") -n=$(mpop -s | awk '/new*./{print $2}') - -if [ -n "$n" ]; then - echo "$n" > "$file" - if [ "$n" != "no" ] && [ "$l" != "$n" ]; then - $notify "New email ($n)" - fi -fi -- cgit v1.3