From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83469 Path: news.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.gnus.general Subject: Re: Can I mark a mail as read and expired at the same time? Date: Wed, 3 Jul 2013 10:14:49 +0100 Message-ID: <87ppv0c8dy.fsf@ucl.ac.uk> References: <87obalrb0c.fsf@gmail.com> <87zju52y2b.fsf@ucl.ac.uk> <874ncdxgxr.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372843076 4759 80.91.229.3 (3 Jul 2013 09:17:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jul 2013 09:17:56 +0000 (UTC) To: Original-X-From: ding-owner+M31729@lists.math.uh.edu Wed Jul 03 11:17:56 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 1UuJCF-0001m4-LK for ding-account@gmane.org; Wed, 03 Jul 2013 11:17:55 +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 1UuJ9g-0005LZ-Jy; Wed, 03 Jul 2013 04:15:16 -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 1UuJ9d-0005LM-FV for ding@lists.math.uh.edu; Wed, 03 Jul 2013 04:15:13 -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 1UuJ9a-0004RD-Ed for ding@lists.math.uh.edu; Wed, 03 Jul 2013 04:15:12 -0500 Original-Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13] helo=tx2outboundpool.messaging.microsoft.com) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UuJ9W-00064D-Ra for ding@gnus.org; Wed, 03 Jul 2013 11:15:07 +0200 Original-Received: from mail57-tx2-R.bigfish.com (10.9.14.249) by TX2EHSOBE009.bigfish.com (10.9.40.29) with Microsoft SMTP Server id 14.1.225.23; Wed, 3 Jul 2013 09:14:59 +0000 Original-Received: from mail57-tx2 (localhost [127.0.0.1]) by mail57-tx2-R.bigfish.com (Postfix) with ESMTP id 842B0160111 for ; Wed, 3 Jul 2013 09:14:59 +0000 (UTC) X-Forefront-Antispam-Report: CIP:157.56.254.117;KIP:(null);UIP:(null);IPV:NLI;H:DBXPRD0111HT003.eurprd01.prod.exchangelabs.com;RD:none;EFVD:NLI X-SpamScore: -1 X-BigFish: PS-1(zzbb2dIdd5eh1432Izz1f42h1ee6h1de0h1d18h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz8275bhz2dh2a8h668h839h8e2h8e3hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah13b6h1441h1504h1537h153bh162dh1631h16a6h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1d0ch1d2eh1d3ah1d3fh1de2h1dfeh1dffh1e1dhbe9i1155h) Original-Received: from mail57-tx2 (localhost.localdomain [127.0.0.1]) by mail57-tx2 (MessageSwitch) id 1372842897191342_17053; Wed, 3 Jul 2013 09:14:57 +0000 (UTC) Original-Received: from TX2EHSMHS019.bigfish.com (unknown [10.9.14.228]) by mail57-tx2.bigfish.com (Postfix) with ESMTP id 29DD72A0056 for ; Wed, 3 Jul 2013 09:14:57 +0000 (UTC) Original-Received: from DBXPRD0111HT003.eurprd01.prod.exchangelabs.com (157.56.254.117) by TX2EHSMHS019.bigfish.com (10.9.99.119) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 3 Jul 2013 09:14:57 +0000 Original-Received: from localhost (2.29.38.137) by pod51002.outlook.com (10.255.181.36) with Microsoft SMTP Server (TLS) id 14.16.324.0; Wed, 3 Jul 2013 09:14:51 +0000 Mail-Followup-To: ding@gnus.org X-Originating-IP: [2.29.38.137] X-UCLLIVE-SCLRULE: HASRUN X-OriginatorOrg: ucl.ac.uk X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83469 Archived-At: Trevor Murphy writes: [...] > When I mark the mail as expirable with 'E', it does indeed archive in > the webmail interface. A/k/a delete from my inbox in Gnus. > > However the mail still shows up on the web as unread. This is > noticeable in, trivially, the All Mail item. It's also noticeable, less > trivially, if I've used a Gmail filter to apply a label to the mail. > > In that second case, the Gmail label syncs to an IMAP folder, and Gnus > still sees the mail as unread in the corresponding folder. Which is > annoying and motivated my original question. > > Does that make sense? total-expire, because it lets me use an 'r' or > 'R' mark on the mail, seems to both mark as read and archive the message > when I check via webmail. It just also does too much for my use case. Yes, it does make sense. Maybe the solution is to create your own command that first marks the article as read and then marks it as expirable? Something along the lines of #+begin_src emacs-lisp (defun esf/mark-read-and-expirable () (interactive) (gnus-summary-mark-as-read) (gnus-summary-mark-as-expirable 1)) #+end_src You can then assign this to a key in one of the gnus-summary key maps. I've tested this briefly but not with gmail so I don't know if this does what you want. -- : Eric S Fraga, GnuPG: 0xFFFCF67D : in Emacs 24.3.50.1 + Ma Gnus v0.8 + evil 1.0.5 : BBDB version 3.02 ($Date: 2013/05/15 13:17:58 $)