diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-07-31 21:54:36 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-07-31 21:54:36 +0200 |
commit | a1d56564fdf8aa700468fb9feebe9cb05e4ab584 (patch) | |
tree | 2999b932bb321f34f1723805f8e6e6f3ca085c82 /sfeed_maildir | |
parent | 356e7d79925f91b9b703ee63e3680694c53a59a4 (diff) |
update and improve documentation (WIP)
Diffstat (limited to 'sfeed_maildir')
-rwxr-xr-x | sfeed_maildir | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sfeed_maildir b/sfeed_maildir deleted file mode 100755 index b6dc0ee..0000000 --- a/sfeed_maildir +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# Uses procmail to format mbox to maildir, see procmailrc.example. -# Copy procmailrc.example to $procmailconfig (see below). -# Depends on: procmail, formail, sfeed_mbox. - -maildir="$HOME/feeds" -feedsdir="$HOME/.sfeed/feeds" -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" - mkdir -p "${maildir}/${name}/new" - mkdir -p "${maildir}/${name}/tmp" - printf 'Mailbox %s\n' "${name}" - sfeed_mbox "${d}" | formail -s procmail "${procmailconfig}") & -done -wait |