<DKIM> offlineimap configuration file and variables

Jethro Tull heavytull at hotmail.com
Tue Mar 7 14:20:11 GMT 2017

> > 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.
> >
> >   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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20170307/8e05ac27/attachment-0002.html>

More information about the OfflineIMAP-project mailing list