[PATCH] New account setting "maildir-windows-compatible" - That makes OfflineIMAP to use exclamation mark (!) instead of colon for storing messages. Such files can be written to windows partitions. But you will probably loose compatibility with other programs trying to read the same Maildir.

Vladimir Marek Vladimir.Marek at Oracle.COM
Tue Jul 12 08:38:35 BST 2011


> ---
>  docs/MANUAL.rst               |   21 +++++++++++++++++++++
>  offlineimap.conf              |   10 ++++++++++
>  offlineimap/folder/Maildir.py |   21 ++++++++++++++++-----
>  3 files changed, 47 insertions(+), 5 deletions(-)

Hmm, I guess that the mail should thread with previous one, but it does
not :( Also "git format-patch HEAD^" overwrote the patch revision 0001
(instead of creating 0002), but I guess that does not matter on the
list? I'm still very green concerning git ...

Anyway the difference to previous patch is that I'm not parsing the
boolean value myself, but rather using the function already provided.

> +        self.wincompatible = self.config.getdefaultboolean(
> +            "Account "+self.accountname, "maildir-windows-compatible", False)
> +
> +        if self.wincompatible == False:
> +            self.infosep = ':'
> +        else:
> +            self.infosep = '!'

Cheers
-- 
	Vlad




More information about the OfflineIMAP-project mailing list