Confirm OPML file sanity ∞
Start up claws mail and go to your RSSyl folder. Create a new folder called
0 test and subscribe to a new feed. Subscribe to something unique, such as http://rss2email.infogami.com/blog/atom.xml
Exit claws mail.
~/.claws-mail/RSSyl/rssyl-feedlist.opml and confirm that
0 test exists and your new subscription is there. It ought to be at the bottom. If it's not there, re-open and then close claws mail until you can confirm the OPML entry.
This confirms that the OPML export is working correctly and that it's up-to-date.
\cd ~/.claws-mail/RSSyl/ \cp ./rssyl-feedlist.opml ~/ \cd ~
<outline title="YouTube" text="Uploads by YouTube" description="Uploads by YouTube" type="rss" xmlUrl="http://www.youtube.com/rss/user/YouTube/videos.rss">
OH FUCK THIS, using a regular editor and doing it by hand..
sed 's/\(*.\)xmlUrl="\(*.\)">/\2/' ~/rssyl-feedlist.opml sed -e 's/.*xmlUrl=".*">/&/' ~/rssyl-feedlist.opml sed 's*.\** <outline\ title="\0"\ text="\0"\ type="rss"\ version="RSS"\ xmlUrl="http://www.youtube.com/rss/user/\0/videos.rss"\ htmlUrl="http://www.youtube.com/profile_videos?user=\0"\ />*' ~/subs-nofaves2.txt >> ~/subs-nofaves.opml # Delete all blank lines. Spaces and tabs are ignored. sed '/^[ \t]*$/d' ~/subs-nofaves.txt > ~/subs-nofaves2.txt
the right way ∞
I used Geany to search and replace:
.. then I hand-edited to remove the crap.