From fa3d8deb9577a8491e6aedbf18661ac60972bb4b Mon Sep 17 00:00:00 2001 From: maike Date: Mon, 13 Jul 2020 14:37:35 +0200 Subject: [PATCH] [email] Prefix for email recipient address --- kibicara/kibicara_mda.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kibicara/kibicara_mda.py b/kibicara/kibicara_mda.py index 002a947..9b586cd 100644 --- a/kibicara/kibicara_mda.py +++ b/kibicara/kibicara_mda.py @@ -27,6 +27,10 @@ async def async_main(mail=None, hood_name=None): args = parser.parse_args() # extract hood name from the envelope recipient address hood_name = args.recipient_address.split('@')[0].lower() + if hood_name.startswith('kibicara.'): + hood_name = hood_name[9:] + else: + logger.error("Recipient address didn't start with 'kibicara.'") if mail is None: # read mail from STDIN