<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
> > Ok. I get what you want, now. I think I've read your mail too fast.<br>
<p><font size="2"><span style="font-size:10pt;"></p>
<div>> > <br>
> > You might have better luck by defining the variables in the<br>
> > [DEFAULT] section.  Never tried, though.<br>
> > <br>
> > [DEFAULT]<br>
> >   my_list = ['a', 'b']<br>
> > <br>
> > [<offlineimap_section>]<br>
> >   offlineimap_option_eval = python_function( %(my_list)s )<br>
<br>
This is actually working, I don't remember whether I missed this line in your<br>
reply. The %()s syntax directly made me think this is only for strings, thus<br>
when I saw this in the python docs I did not even try it.<br>
<br>
<br>
> > -- <br>
> > Nicolas Sebrecht<br>
<br>
> I tried as you suggested defining my list in the [DEFAULT] section, the result<br>
> is same as previously, it does not work. I'm trying to put my list in the<br>
> offlineimap config file because I want to configure everything at only one<br>
> place. I will investigate the possibility of setting all the configuration from<br>
> a pythonfile, this might be the only solution. This might even be more powerful<br>
> as this will be a pure python script.<br>
</div>
</span></font>
<p></p>
</div>
</body>
</html>