# The folder name will be the title as defined in the @text attr
set -e
-cat $1 | xq '.opml.body.outline[]' -rc | while read outline ; do
+xq '.opml.body.outline[]' -rc | while read outline ; do
url=$(echo $outline | jq '."@xmlUrl"' -r)
dir=$(echo $outline | jq '."@text"' -r)
mkdir -p "$dir"/{cur,new,tmp} # make it maildir