From 25516432f55e0dd6fa1f1d800364b2bd91f5fc24 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 7 Feb 2025 12:24:57 +0200 Subject: [PATCH] fix strip --- imap_filter/imap_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap_filter/imap_filter.py b/imap_filter/imap_filter.py index eec26b2..892adc7 100644 --- a/imap_filter/imap_filter.py +++ b/imap_filter/imap_filter.py @@ -457,7 +457,7 @@ class ImapFilter: ) sys.exit(2) with open(imap_password_file, 'r', encoding='utf-8') as pass_file: - imap_password = pass_file.read().trim() + imap_password = pass_file.read().strip() try: self._log.debug('Authenticating as user %s...', imap_user) self.imap.login(imap_user, imap_password)