This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Managing Akregator Archives with deleted feeds

Tags: None
(comma "," separated)
kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
I was having a problem with a particular feed and started looking at the akregator directory. I noticed some very old archives, and some I know I deleted the feeds. I often subscribe to a feed to "test" whether the quality and quantity fit my needs. If it doesn't, I delete the feed within a few days.

# Shows 468 files
ls ~/.kde4/share/apps/akregator/Archive/|wc -l

# Shows 184 feeds
grep xmlUrl ~/.kde4/share/apps/akregator/data/feeds.opml|wc -l

It appears deleting a feed doesn't delete the archive. I looked at my archive settings (Settings -> Configure Akregator -> Archive). I have:

Delete articles older than: 30 days
Do not expire important articles: checked

I searched and read the documentation, but it isn't clear to me when these files in the akregator Archive directory are deleted. When I delete a feed, I thought all traces of it were deleted. How do other folks handle the growth of files in the akregator archive directory? If I have 184 feeds (see above), I want only the corresponding 184 archive files in the Archive directory.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It may be likely that Akregator does not delete these files. Please close Akregator, then delete the files that have not been recently changed.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
Okay. HHHmmmm..., I suspect it wouldn't be too difficult to extract the xmlUrl from data/feeds.opml, convert the name to the Archive format, and delete the files that are in the Archive/ but not in the feeds.opml, and run that once in awhile in cron.

It would be nice if Akregator displayed a pop-up when deleting a feed that would ask the user whether or not the archive should be deleted. Is the appropriate place for that suggestion the "KDE Brainstorm" forum?

Thank you.
kdeforumsuser2010
Registered Member
Posts
59
Karma
0
OS
I have a comparison of what exists in the Archive directory verses what is in the data/feeds.opml file.

If I delete the files in the Archive directory that are not in the feeds.opml file, what happens to the file archiveindex.mk4 in the Archive direcotry?

Will archiveindex.mk4 recognize that files have been deleted in the Archive directory and clean itself up?

Thank you.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Unfortunately I do not know if it will do that. Rather than delete, it may be safer to simply move the files elsewhere to see if Akregator functions without them.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft