On Tue, Jan 13, 2015 at 05:09:06PM +0100, Michal Čihař wrote: > Package: feed2imap > Version: 1.2.3-1 > Severity: normal > > Hi > > while running feed2imap, I got following error: > > I, [2015-01-13T09:40:35.167347 #30040] INFO -- : 55: 14 new items, 0 updated > items. > F, [2015-01-13T09:40:35.167766 #30040] FATAL -- : Exception caught while > uploading mail to RSS: undefined method `gsub' for 55:Fixnum > /usr/lib/ruby/vendor_ruby/feed2imap/feed2imap.rb:247:in `block in initialize' > /usr/lib/ruby/vendor_ruby/feed2imap/feed2imap.rb:220:in `each' > /usr/lib/ruby/vendor_ruby/feed2imap/feed2imap.rb:220:in `initialize' > /usr/bin/feed2imap:48:in `new' > /usr/bin/feed2imap:48:in `<main>' > F, [2015-01-13T09:40:35.168778 #30040] FATAL -- : We can't recover from IMAP > errors, so we are exiting. > > when debugging, I've realized that this is caused by following entry: > > - name: 067 > url: https://067.cz/rss/ > target: "..." > > While parsing the configuration, feed2imap parses 067 as number and > converts it to 55, but it later probaly fails to find such named > section.
You need to quote the name: - name: "067" url: https://067.cz/rss/ target: "..." The config file is parsed as YAML, and a 067 unquoted _will_ be parsed as a number. I can even change feed2imap to handle receiving numbers as the feed name by converting them to strings, but I can't stop the YAML parser from doing the octal to decimal conversion for example. -- Antonio Terceiro <terce...@debian.org>
signature.asc
Description: Digital signature