> > Ok. I get what you want, now. I think I've read your mail too fast.

> >
> > You might have better luck by defining the variables in the
> > [DEFAULT] section.  Never tried, though.
> >
> > [DEFAULT]
> >   my_list = ['a', 'b']
> >
> > [<offlineimap_section>]
> >   offlineimap_option_eval = python_function( %(my_list)s )

This is actually working, I don't remember whether I missed this line in your
reply. The %()s syntax directly made me think this is only for strings, thus
when I saw this in the python docs I did not even try it.


> > --
> > Nicolas Sebrecht

> I tried as you suggested defining my list in the [DEFAULT] section, the result
> is same as previously, it does not work. I'm trying to put my list in the
> offlineimap config file because I want to configure everything at only one
> place. I will investigate the possibility of setting all the configuration 
> from
> a pythonfile, this might be the only solution. This might even be more 
> powerful
> as this will be a pure python script.
_______________________________________________
OfflineIMAP-project mailing list: [email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/offlineimap-project

OfflineIMAP homepages:
- https://github.com/OfflineIMAP
- http://offlineimap.org

Reply via email to