3 # Takes an opml file as first argument and creates a feeder-enabled maildir for each feed
4 # The folder name will be the title as defined in the @text attr
7 xq '.opml.body.outline[]' -rc | while read outline ; do
8 url=$(echo $outline | jq '."@xmlUrl"' -r)
9 dir=$(echo $outline | jq '."@text"' -r)
10 mkdir -p "$dir"/{cur,new,tmp} # make it maildir
11 echo "$url" > $dir/url