aboutsummaryrefslogtreecommitdiffstats
path: root/main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-30 14:17:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-30 14:17:29 +0000
commit8d85a4bc792065ba8a2247c11b917046d38c0fb9 (patch)
treeca11f8dccee6072f8078f57ce36ce2d473705d3a /main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch
parent90a14cb6c868f230f15201eb85093408380feb70 (diff)
downloadaports-8d85a4bc792065ba8a2247c11b917046d38c0fb9.tar.bz2
aports-8d85a4bc792065ba8a2247c11b917046d38c0fb9.tar.xz
main/claws-mail: fix for rssyl
Diffstat (limited to 'main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch')
-rw-r--r--main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch b/main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch
new file mode 100644
index 0000000000..b16e59d470
--- /dev/null
+++ b/main/claws-mail/claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch
@@ -0,0 +1,30 @@
+From 72510f27b10889e119b42804835e8beaf70bc18d Mon Sep 17 00:00:00 2001
+From: Andrej Kacian <ticho@claws-mail.org>
+Date: Thu, 8 Jan 2015 22:51:04 +0100
+Subject: [PATCH] RSSyl: Day-of-week name in RFC822 timestamps is optional.
+
+---
+ src/plugins/rssyl/libfeed/date.c | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/plugins/rssyl/libfeed/date.c b/src/plugins/rssyl/libfeed/date.c
+index c37756d..92f5a86 100644
+--- a/src/plugins/rssyl/libfeed/date.c
++++ b/src/plugins/rssyl/libfeed/date.c
+@@ -132,8 +132,11 @@ time_t parseRFC822Date(gchar *date)
+ if (c != NULL)
+ setlocale(LC_TIME, "C");
+
+- if (!strptime(date, "%a, %d %b %Y %H:%M:%S %Z", &t) &&
+- !strptime(date, "%a, %d %b %Y %H:%M %Z", &t)) {
++ if (date != NULL &&
++ !strptime(date, "%a, %d %b %Y %H:%M:%S %Z", &t) &&
++ !strptime(date, "%a, %d %b %Y %H:%M %Z", &t) &&
++ !strptime(date, "%d %b %Y %H:%M:%S %Z", &t) &&
++ !strptime(date, "%d %b %Y %H:%M %Z", &t)) {
+ g_warning("Invalid RFC822 date!\n");
+ if (c != NULL)
+ setlocale(LC_TIME, c);
+--
+1.7.10.4
+