]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
When tagging an email using Gmail label extensions, append the label instead of replacing
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Fri, 10 Mar 2023 15:44:32 +0000 (07:44 -0800)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Fri, 10 Mar 2023 17:19:58 +0000 (09:19 -0800)
src/paperless_mail/mail.py

index e90ad46eb0cb5fd9ff4017c0c5508c43ad8da2a3..eb5e856f6feccefcc120807802492547a238d0d1 100644 (file)
@@ -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: