From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68801 Path: news.gmane.org!not-for-mail From: =?utf-8?B?55m944GE54aK?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Using cache to read IMAP mail offline, with proper deletion of Spam Date: Wed, 22 Jul 2009 14:49:35 +0200 Message-ID: <87vdlkyja8.fsf@ubuntu.byty-RDD> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1248266997 12548 80.91.229.12 (22 Jul 2009 12:49:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jul 2009 12:49:57 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17219=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Jul 22 14:49:50 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MTbGY-0003Uv-Ev for ding-account@gmane.org; Wed, 22 Jul 2009 14:49:50 +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 1MTbGS-0006Sq-Pd for ding-account@gmane.org; Wed, 22 Jul 2009 07:49:44 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MTbGR-0006Sl-Rn for ding@lists.math.uh.edu; Wed, 22 Jul 2009 07:49:43 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MTbGQ-0005fc-N5 for ding@lists.math.uh.edu; Wed, 22 Jul 2009 07:49:43 -0500 Original-Received: from manon.vellum.cz ([89.250.243.243]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MTbGy-0006qQ-00 for ; Wed, 22 Jul 2009 14:50:16 +0200 Original-Received: from ubuntu.byty-RDD ([80.120.40.54]) (authenticated bits=0) by manon.vellum.cz (8.14.3/8.14.3) with ESMTP id n6MCnZqS008884 for ; Wed, 22 Jul 2009 14:49:36 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-Spam-Status: No, score=-1.0 required=4.1 tests=AWL,BAYES_00,FAKE_REPLY_C, RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on manon.vellum.cz X-Spam-Score: 0.9 (/) X-Spam-Report: SpamAssassin (3.2.5 2008-06-10) analysis follows Bayesian score: 0.0274 Ham tokens: 0.000-1039--4685h-0s--0d--H*UA:Emacs, 0.000-696--3136h-0s--0d--H*u:Emacs, 0.000-677--3053h-0s--0d--H*u:Gnus, 0.000-677--3053h-0s--0d--H*UA:Gnus, 0.000-484--2181h-0s--0d--H*u:linux Spam tokens: 0.984-5771--566h-42400s--0d--H*RT:sk:postmas, 0.984-5771--566h-42400s--0d--HX-Spam-Relays-Internal:sk:postmas, 0.982-5764--653h-42935s--0d--HX-Envelope-From:sk:postmas, 0.928-6495--4824h-75735s--0d--H*r:quimby.gnus.org, 0.922-6032--5288h-75741s--0d--H*r:3.36 Autolearn status: no -1.1 BAYES_05 BODY: Bayesian spam probability is 1 to 5% [score: 0.0274] 2.0 FAKE_REPLY_C FAKE_REPLY_C List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68801 Archived-At: "=E7=99=BD=E3=81=84=E7=86=8A" writes: > So, at least temporarily as a fix, before it's debugged, this means redef= ining the `E' key in gnus group summary mode> to first issue the operation = associated with E and then remove the item from the cache. I can do this, b= ut with intense=20 > >(defun gnus-imap-cache-delete () > (interactive) > (gnus-summary-mark-as-expirable -1) > (gnus-cache-remove-article) >) >(add-hook 'gnus-summary-mode-hook > (lambda () > (local-set-key (kbd "E") 'gnus-imap-cache-delete) > ) >) Better: (defun gnus-imap-cache-delete () (interactive) (save-excursion (gnus-summary-mark-as-expirable -1) ) (gnus-cache-remove-article) ) (add-hook 'gnus-summary-mode-hook (lambda () (local-set-key (kbd "E") 'gnus-imap-cache-delete) ) ) =E7=99=BD=E3=81=84=E7=86=8A