From 08b97778d12af2af2bcd9cbc79f7013fe6193687 Mon Sep 17 00:00:00 2001 From: "v.kaukin" Date: Mon, 5 Aug 2024 09:04:03 +0500 Subject: [PATCH] fix MailBoxFolderManager.list double quotes bug --- README.rst | 2 +- docs/release_notes.rst | 6 +++++- imap_tools/__init__.py | 2 +- imap_tools/folder.py | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index ae33699..296e951 100644 --- a/README.rst +++ b/README.rst @@ -418,7 +418,7 @@ Big thanks to people who helped develop this library: `meetttttt `_, `sapristi `_, `thomwiggers `_, -`histogal `_, +`histogal `_ Help the project ---------------- diff --git a/docs/release_notes.rst b/docs/release_notes.rst index b55a51c..2e1f725 100644 --- a/docs/release_notes.rst +++ b/docs/release_notes.rst @@ -1,6 +1,10 @@ +1.7.2 +===== +* Fixed: MailBoxFolderManager.list double quotes bug + 1.7.1 ===== -* Fixed: MailBoxFolderManager.list parse bug +* Fixed: MailBoxFolderManager.list folder_item_re bug 1.7.0 ===== diff --git a/imap_tools/__init__.py b/imap_tools/__init__.py index 5cbde8e..3829576 100644 --- a/imap_tools/__init__.py +++ b/imap_tools/__init__.py @@ -11,4 +11,4 @@ from .utils import EmailAddress from .errors import * -__version__ = '1.7.1' +__version__ = '1.7.2' diff --git a/imap_tools/folder.py b/imap_tools/folder.py index 1c05883..937c458 100644 --- a/imap_tools/folder.py +++ b/imap_tools/folder.py @@ -142,7 +142,7 @@ def list(self, folder: AnyStr = '', search_args: str = '*', subscribed_only: boo else: continue result.append(FolderInfo( - name=name, + name=name.replace('\\"', '"'), delim=folder_dict['delim'].replace('"', ''), flags=tuple(folder_dict['flags'].split()) # noqa, ))