commit cfcaa71d9e81d3f266301c36c6188e660337fcf0
parent 61c114cca363c4b0c39b0c4d9aadbf4cff0e21cf
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 31 Mar 2020 21:59:44 +0200
Support sfeed mboxes in mailboxes listing
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/.local/bin/mailboxes b/.local/bin/mailboxes
@@ -1,6 +1,7 @@
#!/bin/sh
-mailroot=$HOME/.mail
+mailroot="$HOME/.mail"
+sfeedroot="$HOME/.cache/sfeed"
die() {
printf '%s\n' "$1" >&2
@@ -19,6 +20,11 @@ fi
if [ -f "$HOME/mbox" ]; then
printf ' "%s" \\\n' "$HOME/mbox"
fi
+if [ -d "$sfeedroot" ]; then
+ for f in "${sfeedroot}/"*; do
+ printf ' "%s" \\\n' "$f"
+ done
+fi
cd $mailroot
find . -type d | grep -v -e '^\.$' -e '\/cur$' -e '\/new$' -e '\/tmp$' | \