From 2e467092a2a61e585e890815fa16374c16fee765 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Sat, 29 Oct 2022 15:53:55 +0200 Subject: [PATCH] The newer dovecot sends data podop should ignore --- core/base/libs/podop/podop/dovecot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/base/libs/podop/podop/dovecot.py b/core/base/libs/podop/podop/dovecot.py index 68bfa172..b1319f51 100644 --- a/core/base/libs/podop/podop/dovecot.py +++ b/core/base/libs/podop/podop/dovecot.py @@ -75,10 +75,10 @@ class DictProtocol(asyncio.Protocol): logging.debug("Client {}.{} type {}, user {}, dict {}".format( self.major, self.minor, self.value_type, self.user, dict_name)) - async def process_lookup(self, key): + async def process_lookup(self, key, user=None): """ Process a dict lookup message """ - logging.debug("Looking up {}".format(key)) + logging.debug("Looking up {} for {}".format(key, user)) # Priv and shared keys are handled slighlty differently key_type, key = key.decode("utf8").split("/", 1) try: @@ -95,7 +95,7 @@ class DictProtocol(asyncio.Protocol): except KeyError: return self.reply(b"N") - def process_begin(self, transaction_id): + def process_begin(self, transaction_id, user=None): """ Process a dict begin message """ self.transactions[transaction_id] = {}