From e4ed192cce8fd6b30f96c27f4f5af3ff4ba16639 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Mon, 13 Sep 2021 19:50:15 +0200 Subject: [PATCH] rename --- app/email_utils.py | 2 +- email_handler.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/email_utils.py b/app/email_utils.py index 97aa3555..6c387840 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -591,7 +591,7 @@ def get_orig_message_from_bounce(msg: Message) -> Message: return part -def get_orig_message_from_outlook_complaint(msg: Message) -> Message: +def get_orig_message_from_hotmail_complaint(msg: Message) -> Message: i = 0 for part in msg.walk(): i += 1 diff --git a/email_handler.py b/email_handler.py index d0f6a74c..342f39e0 100644 --- a/email_handler.py +++ b/email_handler.py @@ -117,7 +117,7 @@ from app.email_utils import ( sanitize_header, get_queue_id, should_ignore_bounce, - get_orig_message_from_outlook_complaint, + get_orig_message_from_hotmail_complaint, parse_full_address, get_orig_message_from_yahoo_complaint, ) @@ -1306,7 +1306,7 @@ def handle_hotmail_complaint(msg: Message) -> bool: Handle hotmail complaint sent to postmaster Return True if the complaint can be handled, False otherwise """ - orig_msg = get_orig_message_from_outlook_complaint(msg) + orig_msg = get_orig_message_from_hotmail_complaint(msg) to_header = orig_msg["To"] if not to_header: LOG.e("cannot find the alias")