Feed-URLs aus Apple Mail exportieren
Mit diesem Shell-Skript kann man sich die Feed-URLs aus der PubSub-Datenbank (wie sie z.B. von Apple Mail verwendet wird) als OPML exportieren, z.B. um sie in Google Reader wieder zu importieren. Eine andere Möglichkeit habe ich nicht gefunden die RSS-URLs aus Mail zu bekommen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh dbfile=~/Library/PubSub/Database/Database.sqlite3 if [ ! -r $dbfile ] then echo "Cannot read pubsub db file" >2 exit 1 fi dateCreated=`date` cat < < EOF <?xml version="1.0" encoding="utf-8"?> <opml version="1.1"> <head> <title>Feeds subscribed via PubSub</title> <datecreated>$dateCreated</datecreated> <ownername>$USER</ownername> </head> <body> <outline> EOF sqlite3 -batch $dbfile "select url from feeds" | while read url do echo "<outline type=\"rss\" xmlUrl=\"$url\" />" done cat < < EOF </outline> </outline></body> </opml> EOF |
Hier gibt es das Skript zum Download: pubsub2opml.sh
Tags: Apple Mail, Feed, google, Mac, OPML, PubSub, RSS, Shell