From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Fri, 10 Mar 2023 15:44:32 +0000 (-0800) Subject: When tagging an email using Gmail label extensions, append the label instead of replacing X-Git-Tag: v1.14.0-beta.rc1~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4383550d9821dd89f7abec951123703563b2cc57;p=thirdparty%2Fpaperless-ngx.git When tagging an email using Gmail label extensions, append the label instead of replacing --- diff --git a/src/paperless_mail/mail.py b/src/paperless_mail/mail.py index e90ad46eb0..eb5e856f6f 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: