[PATCH] fix: when called with -a, mbnames must not erase entries of other accounts

Łukasz Żarnowiecki dolohow at outlook.com
Sat Jun 25 09:48:17 UTC 2016


On Thu, Jun 23, 2016 at 01:00:03AM +0200, Nicolas Sebrecht wrote:
> +def add(accountname, folder_root, foldername):
> +    if _mbnames is None:
> +        return

Could it happen that add is called before init?

> +    def writeIntermediateFile(self, accountname):
> +        try:
> +            self._intermediates[accountname].write()
> +        except (OSError, IOError) as e:
> +            self.ui.error(
> +                e,
> +                exc_info()[2],
> +                "intermediate mbnames file %s not properly written"% self._path
> +            )

What about intermediate files of accounts that have been removed after
some time?



More information about the OfflineIMAP-project mailing list