aboutsummaryrefslogtreecommitdiffstats
path: root/cloud_mdir_sync/gmail.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloud_mdir_sync/gmail.py')
-rw-r--r--cloud_mdir_sync/gmail.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloud_mdir_sync/gmail.py b/cloud_mdir_sync/gmail.py
index d17e536..b621577 100644
--- a/cloud_mdir_sync/gmail.py
+++ b/cloud_mdir_sync/gmail.py
@@ -327,6 +327,9 @@ class GMailMailbox(mailbox.Mailbox):
self.gmail_messages = {}
self.max_fetches = asyncio.Semaphore(10)
+ def __repr__(self):
+ return f"<GMailMailbox at {id(self):x} for {self.gmail.domain_id} {self.label_name}>"
+
async def setup_mbox(self):
"""Setup access to the authenticated API domain for this endpoint"""
self.name = f"{self.gmail.user}:{self.label_name}"