Files
Rodolfo García Peñas (kix) 0290d94182 repository/IMAP: handle errors reading remotepassfile gracefully
Replace the bare open()/close() pattern with a context manager and
wrap I/O and encoding failures in OfflineImapError so the user gets
a clear, actionable message instead of a raw Python exception.

Before this change, a missing, unreadable, or non-UTF-8 password
file would surface as an unhandled FileNotFoundError, PermissionError
or UnicodeDecodeError with no indication of which repository was
affected.

The new error message includes the expanded file path and the
repository name:

  Unable to read remotepassfile '/path/to/pass' for repository 'Name': ...

Closes: #248
2026-05-18 01:16:28 +02:00
..
2020-11-01 12:54:59 +01:00
2020-11-01 09:29:31 +01:00