summaryrefslogtreecommitdiff
path: root/feed2imap-test
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@softwarelivre.org>2015-05-03 20:13:29 -0300
committerAntonio Terceiro <terceiro@softwarelivre.org>2015-05-03 20:20:01 -0300
commitc1e5c1c00bd996140d2a74ee4b5e50182b846bc6 (patch)
treeab46ddb807e385432a0b145a3b3a6e9c1ffd3761 /feed2imap-test
parent7ce801979c3a17622dc74edf67cbb0d001d7ca02 (diff)
downloadfeed2imap-c1e5c1c00bd996140d2a74ee4b5e50182b846bc6.tar.gz
feed2imap-c1e5c1c00bd996140d2a74ee4b5e50182b846bc6.tar.bz2
feed2imap-c1e5c1c00bd996140d2a74ee4b5e50182b846bc6.zip
Fix usage of filters
- avoid accessing $? unless it is actually available - when calling a filter, make sure to release the mutex even if there is an exception during the filter handling. The long term solution is to drastically reorganize concurrency code.
Diffstat (limited to 'feed2imap-test')
-rwxr-xr-xfeed2imap-test5
1 files changed, 5 insertions, 0 deletions
diff --git a/feed2imap-test b/feed2imap-test
index b5e7390..e8424b5 100755
--- a/feed2imap-test
+++ b/feed2imap-test
@@ -24,6 +24,11 @@ feeds:
- name: CNPQ
url: http://www.cnpq.br/web/guest/noticias/-/asset_publisher/6QsO/rss?p_p_cacheability=cacheLevelPage
target: maildir://#{maildir}
+ filter: /bin/cat
+ - name: Planet Debian (broken filter)
+ url: http://planet.debian.org/atom.xml
+ target: maildir://#{maildir}
+ filter: /bin/epicfail
- name: XKCD
url: http://www.xkcd.com/atom.xml
target: maildir://#{maildir}