add minute food, no more t21-cakes and no renamed posts pls

This commit is contained in:
Felix Van der Jeugt 2022-09-24 10:52:46 +02:00
parent 8e73e212d8
commit 8ddb2121cf
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 9 additions and 4 deletions

View file

@ -15,11 +15,15 @@ pgrep gpg-agent > /dev/null
d="$(mktemp -d)"
trap "rm -rf '$d'" EXIT KILL
mmkdir "$d"
sfeed_update > /dev/null 2>&1
sfeed_update > /dev/null 2>&1 || true
sfeed_mbox ~/.sfeed/feeds/* | mdeliver -M -v "$d" | while read mail; do
if ! mlist /data/mail/feeds | magrep -q message-id:"$(mshow -qh message-id "$mail" | cut -d' ' -f2)"; then
mdeliver /data/mail/feeds < "$mail" > /dev/null
if mlist /data/mail/feeds | magrep -q message-id:"$(mshow -qh message-id "$mail" | cut -d' ' -f2)"; then
continue
fi
if rg -qF "$(mshow -O "$mail" 1)" /data/mail/feeds; then
continue
fi
mdeliver /data/mail/feeds < "$mail" > /dev/null
done
rm -rf "$d"