Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

When tagging an email using Gmail label extensions, append the label instead of replacing

Trenton H4383550d9821
diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py
index e90ad46eb..eb5e856f6 100644
--- a/src/paperless_mail/mail.py
+++ b/src/paperless_mail/mail.py
@@ -165,7 +165,7 @@ class TagMailAction(BaseMailAction):
def post_consume(self, M: MailBox, message_uid: str, parameter: str):
if re.search(r"gmail\.com$|googlemail\.com$", M._host):
- M.client.uid("STORE", message_uid, "X-GM-LABELS", self.keyword)
+ M.client.uid("STORE", message_uid, "+X-GM-LABELS", self.keyword)
# AppleMail
elif self.color: