Created
February 11, 2019 06:49
-
-
Save scateu/695adcb37a563489832516dcb26283c5 to your computer and use it in GitHub Desktop.
十分凶残的feed to maildir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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