From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83085 Path: news.gmane.org!not-for-mail From: Leonidas Tsampros Newsgroups: gmane.emacs.gnus.general Subject: gmail and X-GM-EXT1 extensions Date: Sat, 20 Apr 2013 12:35:01 +0300 Message-ID: <874nf1k0je.fsf@kepler.lan> Reply-To: ltsampros@upnet.gr NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366450606 2796 80.91.229.3 (20 Apr 2013 09:36:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2013 09:36:46 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31351@lists.math.uh.edu Sat Apr 20 11:36:51 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UTUDt-0001uI-G1 for ding-account@gmane.org; Sat, 20 Apr 2013 11:36:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1UTUBy-0001kd-A8; Sat, 20 Apr 2013 04:34:46 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1UTUBw-0001kS-Fb for ding@lists.math.uh.edu; Sat, 20 Apr 2013 04:34:44 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1UTUBu-0007sq-CL for ding@lists.math.uh.edu; Sat, 20 Apr 2013 04:34:44 -0500 Original-Received: from mail-we0-f177.google.com ([74.125.82.177]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UTUBs-0002jN-Ug for ding@gnus.org; Sat, 20 Apr 2013 11:34:41 +0200 Original-Received: by mail-we0-f177.google.com with SMTP id o7so4304482wea.36 for ; Sat, 20 Apr 2013 02:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:subject:reply-to:date:message-id :user-agent:mime-version:content-type; bh=uB++0DwhdAFulfYiK4P07hEWJ1SGtdVbsD4t8lim4I0=; b=ZZeYaBhmZkDMFTmAo9wuhYws44t7X86XsBXSV7VHQiK9mla+qt2NpfW1a25zlZXRgh Ypj4JwWPA7oS+eSL1mO3g0q4eCYwYdwW2fyNzRcTww6aySHloFm0g+uQ0bfg6C8SLnqd KBth3exzIWCDlPI1+aFLwzfSaxG1nzqwu4R+YIt15hJFbp7ceIz+0Z1Q1+4cqIGYgAI9 k0EH00AbGyaSjPG1LAZycPSVJkb/mEXB5jx91sVNGT+85y91zeftjS1khutNkvxzTfa6 0jzF6KSRA7J5IA0R5pTJY80IbTgUaKMwwsfF+VdvMLYqJwJ9+DJrcFlUjiiLo0c0DMhB j4xw== X-Received: by 10.180.105.195 with SMTP id go3mr14979247wib.2.1366450475468; Sat, 20 Apr 2013 02:34:35 -0700 (PDT) Original-Received: from kepler.lan (77.49.38.249.dsl.dyn.forthnet.gr. [77.49.38.249]) by mx.google.com with ESMTPS id i53sm28063178eeu.5.2013.04.20.02.34.30 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 20 Apr 2013 02:34:31 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83085 Archived-At: Hello, long time no see :) TLDR: My Gmail inbox is full even after splitting mail. Here is why. Due to some not so recent events, I eventually had to move 95% of my email setup to gmail. My current setup is that all email arrives at gmail in a specific folder and with the help of nnimap-inbox, I fancy-split all the mails that arrive there. The series of commands that I see in my *imap log* buffer is the following: 12206 LIST "" "*" 12207 SELECT "ltsampros@upnet.gr" 12208 UID FETCH 1:* FLAGS 12209 UID FETCH 30246:30254,30256:30259 (UID BODY.PEEK[HEADER]) 12210 UID COPY 30247,30250:30251,30253,30256,30258 "mail.gnu.emacs.devel" 12211 UID COPY 30246,30248:30249,30252,30254,30257,30259 "mail.gnu.emacs.orgmode" 12212 UID STORE 30246:30254,30256:30259 +FLAGS.SILENT (\Deleted) 12213 UID EXPUNGE 30246:30254,30256:30259 which is working. However, we all know that Gmail IMAP is a weird monster. My problem is that all these messages are appearing in the "Inbox" folder on Gmail's interface ,even after the COPY and EXPUNGE, which means now that my inbox is filled with very very very many emails and that *irritates* me. So, I started digging by selecting a random mailbox created by nnimap-split-incoming: UID SELECT mail.gnu.emacs.devel * FLAGS (\Answered \Flagged \Draft \Deleted \Seen gnus-save gnus-forward $has_cal) * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen gnus-save gnus-forward $has_cal \*)] Flags permitted. * OK [UIDVALIDITY 129] UIDs valid. * 3032 EXISTS * 0 RECENT * OK [UIDNEXT 11812] Predicted next UID. UID OK [READ-WRITE] mail.gnu.emacs.devel selected. (Success) I think this is pretty much normal. But let's fetch flags of the last email in this folder: UID FETCH 3032 FLAGS * 3032 FETCH (FLAGS ()) Again it does seem normal, however this mail in Gmail's web interface is STILL listed with the following labels "Inbox" and "mail.gnu.emacs.devel". After an enlightening moment of google-funess, I arrived at this URL: https://developers.google.com/google-apps/gmail/imap_extensions?hl=el#access_to_gmail_labels_x-gm-labels Which pretty much explains the situation: UID FETCH 3032 (FLAGS X-GM-LABELS) * 3032 FETCH (X-GM-LABELS ("\\Inbox") FLAGS ()) Again, gmail confuses me a bit since I would expect this email to have two labels ("\\inbox" and "mail.gnu.emacs.devel") since these two are displayed on the web interface but let's accept that the gmail interface interprets the folder created by nnimap-split-incomings COPY as a label. So, how do we remove this fraking \\Inbox X-GM-LABEL which messes up and clatters our web interface? Simple: UID STORE 3032 -X-GM-LABELS ("\\Inbox") * 3032 FETCH (X-GM-LABELS ()) UID OK Success And now the million dollar question: Is there an easy way to run this command before the expunge during nnimap-split-incoming? Best Regards, Leonidas Tsampros