Gnus development mailing list
 help / color / mirror / Atom feed
From: 白い熊 <ding_gnus.org@sumou.com>
To: ding@gnus.org
Subject: Re: Using cache to read IMAP mail offline, with proper deletion of Spam
Date: Wed, 22 Jul 2009 14:49:35 +0200	[thread overview]
Message-ID: <87vdlkyja8.fsf@ubuntu.byty-RDD> (raw)

"白い熊" <ding_gnus.org@sumou.com> writes:
> So, at least temporarily as a fix, before it's debugged, this means redefining 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, but with intense 
>
>(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)
	  )
)

白い熊



             reply	other threads:[~2009-07-22 12:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-22 12:49 白い熊 [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-07-14  6:14 白い熊
2009-07-15 16:18 ` Ted Zlatanov
2009-07-16  8:20   ` 白い熊
2009-07-17  9:32     ` 白い熊
2009-06-23  9:17 ding_gnus.org
2009-07-08 19:01 ` Ted Zlatanov
2009-07-09  8:58   ` Unknown
2009-07-09 16:09     ` Ted Zlatanov
2009-07-11 20:07       ` 白い熊
2009-07-13 19:22         ` Ted Zlatanov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vdlkyja8.fsf@ubuntu.byty-RDD \
    --to=ding_gnus.org@sumou.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).