[DRE-maint] Bug#731073: More details
Antonio Terceiro
terceiro at debian.org
Wed Feb 5 17:52:02 UTC 2014
On Wed, Feb 05, 2014 at 02:43:55PM +0100, Sébastien Dailly wrote:
> Hello,
>
> I've understood the problem.
>
> My configuration looks like this :
>
> >target-refix: &target "maildir:///path/to/Maildir/"
> >
> >feeds:
> >
> > - name: name
> > url: url
> > target: [ *target, '.RSS.PATH.TO.MAILDIR_FORMAT' ]
>
> wich is a valid yaml format.
>
> in config.rb, uri are parsed with the following code :
>
> > uri = URI::parse(f['target'].to_s)
>
> the to_s create a string represention of the array wich is
> unparsable (see the first ticket).
>
> One solution (worked for me) is to replace this line by :
>
> > uri = URI::parse(f['target'].join(""))
>
> This is a bug present in mainstream source : should I open a ticket
> in the github repo, or can you correct this directly in the source ?
the `target` attribute is expected to be a string, and your
configuration makes it an array. That .join("") would break all other
feed2imap users. :-)
I think this is an artifact of the migration to use Ruby 1.9. I
don't know why this worked at all with Ruby 1.8.
On one hand I think your configuration is not supported, and only worked
before by chance. On the other hand that is a clever trick to avoid
repeating the path to the maildir over and over ...
--
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20140205/0c3b3182/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list