See also RSS
It leaves crap around in its tags database. So if you make a directory and move things around.. things will linger. Maybe this is just an issue with my making changes when it was active the one time.. I'm not sure.
Directories here:
"tagsdb/#rssyl/My Feeds/.*" RSSyl/*
Files here:
folderitemrc RSSyl/feeds.xml maybe
Correcting RSSyl YouTube feed names ∞
(YouTube)
Importing from an OPML file lists all items as "Uploads by username". I just want the username.
First, quit Claws Mail with control-q.
# Backing stuff up.. \cd "/home/user/.claws-mail" \cp --force "./folderlist.xml" "./folderlist.xml-BACKUP" # Huh, it doesn't exist any more! # \cp --force "./RSSyl/feeds.xml" "./RSSyl/feeds.xml-BACKUP" \cd "/home/user/.claws-mail" \sed \ '/name="Uploads by / s/name="Uploads by /name="/g' \ "./folderlist.xml" \ > "./folderlist2.xml" \ ` # ` \mv --force "./folderlist2.xml" "./folderlist.xml" # If in the root: # \sed '/path=".Uploads by / s/path=".Uploads by /path="./g' folderlist.xml > folderlist2.xml # If in the folder "YouTube", then change the command. It's odd that I don't have to keep the .YouTube in the path. # TODO: Update this to be universal? \sed '/path=".YouTube.Uploads by / s/path=".YouTube.Uploads by /path="./g' \ "./folderlist.xml" \ > "./folderlist2.xml" \ ` # ` \mv --force "./folderlist2.xml" "./folderlist.xml" \cd RSSyl \rename "Uploads by " "" * # Huh, it doesn't exist any more! # \sed '/feed name="Uploads by / s/feed name="Uploads by /feed name="/g' "./feeds.xml" > "./feeds2.xml" # \mv --force "./feeds2.xml" "./feeds.xml" \cd .. \cd "tagsdb/#rssyl/My Feeds" \rename ".Uploads by " "." .*
Happy? Delete the backups:
\cd "/home/user/.claws-mail" \rm --force "./folderlist.xml-BACKUP" \rm --force "./RSSyl/feeds.xml-BACKUP"
Unhappy? Restore the backups:
\cd "/home/user/.claws-mail" \mv --force "./folderlist.xml-BACKUP" "./folderlist.xml" \rm --force "./RSSyl/feeds.xml-BACKUP" "./RSSyl/feeds.xml"
Have some leftover "Uploads by " directories you want to merge? You can try this:
However, I don't think this is a good idea at all.. it's merging the dotfiles and it may muck things up. I don't see a rebuild feature for RSSyl's folders.. so you may be overwriting data..
\cd ~/.claws-mail/RSSyl \find -type d -name 'Uploads by *' |\ while read LONG; do SHORT=`\echo "$LONG"|\sed 's/Uploads by //'` # echo "$LONG" "=>" "$SHORT" \mv --force --verbose "$LONG"/* "$SHORT"/ \mv --force --verbose "$LONG"/.* "$SHORT"/ \rmdir "$LONG" done \ ` # `