From 623f579b933523da61e07dcacaf979434ec61fc4 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 5 Feb 2025 11:45:25 +0200 Subject: [PATCH] back to regexp --- imap_filter/imap_filter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap_filter/imap_filter.py b/imap_filter/imap_filter.py index 85b0086..8016bf9 100644 --- a/imap_filter/imap_filter.py +++ b/imap_filter/imap_filter.py @@ -221,8 +221,8 @@ class ImapFilter: "Line '%s' found in current file", search ) - # new_content = re.sub(search, replacement, content) - new_content = content.replace(search, replacement) + new_content = re.sub(search, replacement, content) + # new_content = content.replace(search, replacement) if content != new_content: self._log.debug( "Line it's different, so replacing it with '%s'",