sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit b74be27d28d068af81ba7d9fce43f548b59d2513
parent 3bdac3dbeb37c4c221a135b18890da018e6d77b3
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 31 Jul 2015 01:20:08 +0200

sfeed_maildir: check if procmail config exists and is readable

Diffstat:
Msfeed_maildir | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/sfeed_maildir b/sfeed_maildir @@ -10,6 +10,12 @@ procmailconfig="$HOME/.sfeed/procmailrc" # message-id cache to prevent duplicates. mkdir -p "${maildir}/.cache" +if ! test -r "${procmailconfig}"; then + echo "Procmail configuration file \"${procmailconfig}\" does not exist or is not readable." >&2 + echo "See procmailrc.example for an example." >&2 + exit 1 +fi + find "${feedsdir}" -type f -exec printf '%s\n' {} \; | while read -r d; do (name=$(basename "${d}") mkdir -p "${maildir}/${name}/cur"