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 <[email protected]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers

Reply via email to