Closed danmilon closed 10 years ago
Sent from mobile phone. Please excuse brevity
You're right. Sorry bout that!
It is, but maybe a better error message would be useful? For example a second line saying
If you want literal % in your config file, replace it with %%
would directly tell the solution. It is not very easy to find this information if you don't know where to look.
Added to the FAQ.
If the config parser would catch exception ConfigParser.InterpolationError Base class for exceptions raised when problems occur performing string interpolation.
then it could print the user-friendly advice how to fix the config file entry by adding %
, and even print which line is the offending line.
https://github.com/OfflineIMAP/offlineimap/blob/master/offlineimap/mbnames.py#L176
An exception is raised when the configuration contains the "%" sign in values (e.g. password). Do you know any workaround for this, or a way to fix it?