Bug 2368 - RSSyl does not work very well with curl-7.21.4
Summary: RSSyl does not work very well with curl-7.21.4
Status: RESOLVED WORKSFORME
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins/RSSyl (show other bugs)
Version: 3.7.9
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2011-02-21 23:43 UTC by Andreas
Modified: 2013-11-03 10:33 UTC (History)
0 users

See Also:


Attachments

Description Andreas 2011-02-21 23:43:19 UTC
Steps to reproduce:
1. Download a rss feed locally to your harddisk (for example http://www.tagesschau.de/xml/rss2).
2. Subscribe to that locally downloaded feed (for example file:///home/user/my_file.rss)
3. Right-click the feed folder and click 'Refresh feed'
4. Repeat step 3 several times
5. Watch console output.

At the console I get these warnings: 
** (claws-mail:21120): WARNING **: Couldn't fetch feed 'file:///home/user/.claws-mail/RSSyl/raw_feeds/clawsmail.rss', aborting.

** (claws-mail:21120): WARNING **: [23:37:29] Couldn't fetch URL file:///home/user/.claws-mail/RSSyl/raw_feeds/clawsmail.rss

** (claws-mail:21120): WARNING **: [23:37:29] RSSyl: Cannot update feed file:///home/user/.claws-mail/RSSyl/raw_feeds/clawsmail.rss:
Malformed feed


I didn't have any warnings with curl-7.21.3.
Comment 1 Andreas 2011-02-22 09:20:45 UTC
Sorry for the noise. I checked rssyl source code, and saw, that there's a check if the downloaded file has a modification time which lies in the past of the update. Therefore the document is empty (somehow curl-7.21.3 did not work very well with this, and downloaded always)

Anyway, it would be better to stop parsing there, instead of continue and see these warnings .
Comment 2 Andrej Kacian 2011-02-22 20:39:00 UTC
If you don't mind, how exactly does one such feed refresh look in console, when you run claws-mail with --debug?
Comment 3 Andreas 2011-02-22 21:26:49 UTC
Thats the output when fetching fails:
[21:22:01] RSSyl: Updating feed file:///home/user/.claws-mail/RSSyl/raw_feeds/tagesschau.rss
feed.c:301:RSSyl: XML - url is 'file:///home/user/.claws-mail/RSSyl/raw_feeds/tagesschau.rss'
feed.c:318:RSSyl: waiting for thread to finish
feed.c:142:TEMPLATE: /home/user/.claws-mail/RSSyl/curltmpdLZfG8
feed.c:174:RSSyl: last update 1298406104 (Tue, 22 Feb 2011 20:21:44 GMT)
feed.c:211:RSSyl: got status 0, last mod 1298404805 (Tue, 22 Feb 2011 20:00:05 GMT)
feed.c:323:RSSyl: thread finished
feed.c:349:parsing /home/user/.claws-mail/RSSyl/curltmpdLZfG8
/home/user/.claws-mail/RSSyl/curltmpdLZfG8:1: parser error : Document is empty

^
/home/user/.claws-mail/RSSyl/curltmpdLZfG8:1: parser error : Start tag expected, '<' not found

^
feed.c:357:error Start tag expected, '<' not found


** (claws-mail:2192): WARNING **: Couldn't fetch feed 'file:///home/user/.claws-mail/RSSyl/raw_feeds/tagesschau.rss', aborting.


** (claws-mail:2192): WARNING **: [21:22:01] Couldn't fetch URL file:///home/user/.claws-mail/RSSyl/raw_feeds/tagesschau.rss


** (claws-mail:2192): WARNING **: [21:22:01] RSSyl: Cannot update feed file:///home/user/.claws-mail/RSSyl/raw_feeds/tagesschau.rss:
Malformed feed

feed.c:1587:setting Tagesschau mtime to 1298406121
[21:22:01] RSSyl: Feed update finished: file:///home/user/.claws-mail/RSSyl/raw_feeds/tagesschau.rss
folderview.c:2124:newly selected 0x2ad1c00, opened 0x2ad1c00
folderview.c:2128:TIMING folderview_selected : 0s000ms
Comment 4 Paul 2013-11-03 10:33:22 UTC
everything seems fine to me when using curl 7.32.0

Note You need to log in before you can comment on or make changes to this bug.