Hi Ilias,

Thanks for your reply.

Indeed the %% works, I tried it before, but I don't know why I didn't see it was working ! Sorry for the noise
I used another UI, and all work except Blinkenlight

Have a nice day

Raphael

Le 2016-01-07 16:26, Ilias Tsitsimpis a écrit :
Hi Raphael,

On Wed, Dec 30, 2015 at 10:19PM, raph...@encr.es wrote:
The conf file begins with :
[general]
ui = Blinkenlights

commenting the ui line out prevents the segfault, else it crashes with :

Traceback (most recent call last):
  File "/usr/bin/offlineimap", line 23, in <module>
    oi.run()
  File "/usr/share/offlineimap/offlineimap/init.py", line 47, in run
    options, args = self.__parse_cmd_options()
  File "/usr/share/offlineimap/offlineimap/init.py", line 202, in
__parse_cmd_options
    self.ui.setlogfile(options.logfile)
  File "/usr/share/offlineimap/offlineimap/ui/UIBase.py", line 119, in
setlogfile
    self.logger.info(msg)
  File "/usr/lib/python2.7/logging/__init__.py", line 1159, in info
    self._log(INFO, msg, args, **kwargs)
  File "/usr/lib/python2.7/logging/__init__.py", line 1278, in _log
    self.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 1288, in handle
    self.callHandlers(record)
File "/usr/lib/python2.7/logging/__init__.py", line 1328, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python2.7/logging/__init__.py", line 751, in handle
    self.emit(record)
File "/usr/share/offlineimap/offlineimap/ui/Curses.py", line 305, in emit
    color = self.ui.gettf().curses_color
AttributeError: 'CursesLogHandler' object has no attribute 'ui'

I managed to reproduce the above bug, and I have reported it
upstream[1]. In a nutshell, the bug appears when using the Blinkenlights
UI alongside the '-l' option. Since the Blinkenlights UI seems to be
broken for now[2], I would advice switching to another UI.

As for the password problem, with the password without quotes, as before, I
get :

Establishing connection to imap.xxx.xx:143
 ERROR: While attempting to sync account 'user'
  '%' must be followed by '%' or '(', found:"%password'"

(the %password is an obfuscation for my password, i get the part of my
password after the % between double quotes)

Else when trying to add quotes, or at the end a double %, I logically get a
[Errno 111] Connection refused

I cannot reproduce this. Just to be clear, for a password like
"123%lala" (without the quotes), you have to enter:

remotepass = 123%%lala

Is this not working for you?

Cheers,
Ilias


[1] https://github.com/OfflineIMAP/offlineimap/issues/293
[2] https://bugs.debian.org/809676

Reply via email to