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)