From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83471 Path: news.gmane.org!not-for-mail From: Trevor Murphy Newsgroups: gmane.emacs.gnus.general Subject: Re: Can I mark a mail as read and expired at the same time? Date: Wed, 03 Jul 2013 18:39:06 -0400 Message-ID: <8761wrxo8l.fsf@gmail.com> References: <87obalrb0c.fsf@gmail.com> <87zju52y2b.fsf@ucl.ac.uk> <874ncdxgxr.fsf@gmail.com> <87ppv0c8dy.fsf@ucl.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372891352 32589 80.91.229.3 (3 Jul 2013 22:42:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jul 2013 22:42:32 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M31731@lists.math.uh.edu Thu Jul 04 00:42:32 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 1UuVkt-0002vm-MR for ding-account@gmane.org; Thu, 04 Jul 2013 00:42:32 +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 1UuVhv-0000Cu-FW; Wed, 03 Jul 2013 17:39:27 -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 1UuVhs-0000Ce-Jq for ding@lists.math.uh.edu; Wed, 03 Jul 2013 17:39:24 -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 1UuVhq-0007tR-TP for ding@lists.math.uh.edu; Wed, 03 Jul 2013 17:39:23 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1UuVho-0001Fg-VI for ding@gnus.org; Thu, 04 Jul 2013 00:39:20 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UuVhm-00084g-Kh for ding@gnus.org; Thu, 04 Jul 2013 00:39:18 +0200 Original-Received: from z65-50-91-244.ips.direcpath.com ([65.50.91.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Jul 2013 00:39:18 +0200 Original-Received: from trevor.m.murphy by z65-50-91-244.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Jul 2013 00:39:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-91-244.ips.direcpath.com Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:RPfgtCtLVdzSlkSZiHBdCyjSpeY= X-Spam-Score: -1.0 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83471 Archived-At: Eric S Fraga writes: > 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 Thanks for the suggestion! Unfortunately in my testing it still doesn't do what I want. After doing some digging, I've found the following: 1. The command `gnus-summary-expire-articles' will call `gnus-summary-update-info' before expiring articles *if* total-expire is on. That sends the "read" mark from Gnus to Gmail before expiring the articles, which is why I was getting the desired behavior from total-expire. 2. Sounds like an interesting path would be a function like yours that marks as read, *then calls update-info*, then marks as expirable. But after this afternoon of reading source code I'm pooped and not up for making sure that my call to update-info doesn't accidentally mess with other articles. 3. Instead I "solved" the problem by changing my expectations. I just set expiry-wait to 0 and use auto-expiry. Any read articles I want to disappear will go away tomorrow. That's good enough for me. Thanks again for your interest and pointers. -- Trevor Murphy GnuPG Key: 0xCB06EAAF