Skip to content

Instantly share code, notes, and snippets.

@scateu
Created February 11, 2019 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scateu/695adcb37a563489832516dcb26283c5 to your computer and use it in GitHub Desktop.
Save scateu/695adcb37a563489832516dcb26283c5 to your computer and use it in GitHub Desktop.
十分凶残的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