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 --- Makefile | 1 - TODO | 5 +++++ mail-checknow | 18 ------------------ old/mail-checknow | 18 ++++++++++++++++++ 4 files changed, 23 insertions(+), 19 deletions(-) delete mode 100755 mail-checknow create mode 100755 old/mail-checknow diff --git a/Makefile b/Makefile index 7a8f60d..0822e70 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,6 @@ SCRIPTS = addressgrep \ dmenu-websearch \ ffmpeg-screenrecord \ ffmpeg-facecam \ - mail-checknow \ mail-compose \ mblaze-extras \ notify-status \ diff --git a/TODO b/TODO index 65e18b6..de7ed81 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,9 @@ * Modify all dmenu-* scripts to optionally use another menu, like vis-menu (slmenu) + Do this by taking an optional $1 which is the name of the program to use + (optional $dir argument is removed: fix dmenu-bookmarks simply using cd) + +* mblaze-extras: remove mmv, just use complete_mrefile=mail/... + * sfeed-browser: optionally just write link to stdout (or to xsel -i) * Refactor: review all scripts and adapt to common style 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 diff --git a/old/mail-checknow b/old/mail-checknow new file mode 100755 index 0000000..188042b --- /dev/null +++ b/old/mail-checknow @@ -0,0 +1,18 @@ +#!/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