diff --git a/kibicara/kibicara_mda.py b/kibicara/kibicara_mda.py index 9b7095f..c9828a1 100644 --- a/kibicara/kibicara_mda.py +++ b/kibicara/kibicara_mda.py @@ -33,7 +33,7 @@ async def main(): logger.error('No suitable message body') exit(1) # extract hood name from the envelope recipient address - hood_name = mail.get("Envelope-to").split('@')[0] + hood_name = mail.get("Envelope-to").split('@')[0].lower() hood = await Hood.objects.get(name=hood_name) email_row = await Email.objects.get(hood=hood) body = {