Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
十分凶残的feed to maildir
while read LINE
do
NAME=$(echo "$LINE" | cut -d, -f1)
URL=$(echo "$LINE" | cut -d, -f2)
wget --timeout=4 --tries=2 --retry-connrefused $(echo $URL | tr -d '"') -O - | feed2maildir -s -m ~/mail/feeds/ -n "$NAME" &
done < ~/.feeds
# http://chriswarbo.net/blog/2017-01-14-rss_to_maildir.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment