Update src/paperless_mail/mail.py

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
clemensrieder 2023-01-11 23:51:38 +01:00 committed by Trenton H
parent 6716e52c0a
commit 9c9873e8d2

View File

@ -91,7 +91,7 @@ class TagMailAction(BaseMailAction):
def __init__(self, parameter):
# The custom tag should look like "apple:<color>"
if "apple" in parameter.lower():
if "apple:" in parameter.lower():
try:
_, self.color = parameter.split(":")
self.color = self.color.strip()