From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66833 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.emacs.gnus.general Subject: Re: Deleting Messages from an IMAP Folder Date: Wed, 16 Apr 2008 19:22:47 -0400 Message-ID: References: <76od8gwosh.fsf@dev-d01.ppllc.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208388241 6352 80.91.229.12 (16 Apr 2008 23:24:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 23:24:01 +0000 (UTC) Cc: ding@gnus.org To: Jake Colman Original-X-From: ding-owner+M15315@lists.math.uh.edu Thu Apr 17 01:24:35 2008 connect(): Connection refused 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 1JmGzP-0006ga-Cf for ding-account@gmane.org; Thu, 17 Apr 2008 01:24:31 +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 1JmGxt-0003GH-BR; Wed, 16 Apr 2008 18:22:57 -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 1JmGxr-0003G2-HZ for ding@lists.math.uh.edu; Wed, 16 Apr 2008 18:22:55 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JmGxl-0001f5-If for ding@lists.math.uh.edu; Wed, 16 Apr 2008 18:22:55 -0500 Original-Received: from linuxpal.mit.edu ([18.62.1.14]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JmGxw-0004ai-00 for ; Thu, 17 Apr 2008 01:23:00 +0200 Original-Received: by linuxpal.mit.edu (Postfix, from userid 9545) id 3E63C16E3D; Wed, 16 Apr 2008 19:22:47 -0400 (EDT) X-Hashcash: 1:20:080416:colman@ppllc.com::5L35+8JAZdL5Nm6q:01/sG X-Hashcash: 1:20:080416:ding@gnus.org::+wj3aOfcYSEJV4f5:00001lh/ In-Reply-To: <76od8gwosh.fsf@dev-d01.ppllc.com> (Jake Colman's message of "Fri, 11 Apr 2008 08:37:18 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (berkeley-unix) X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66833 Archived-At: How do I delete a read message from an IMAP folder? if I press the DEL key, the 'R' becomes an 'r' but the message does not actually get deleted when I exit the folder. I read mail in IMAP, and want to use for my inbox the explicit delete approach, as opposed to the auto-expirable approach. And, I want things to go away immediately, not be marked expirable, since the point of deleting is to stop seeing them. I also use thunderbird against the same server. So I have the following in my .emacs, more or less (plus scoring functions that you or someone might find useful, but aren't relevant to your question): (setq gdt-trash-newsgroup "nnimap+my.server.name:Trash") (defun gdt-gnus-move-to-trash () (interactive) (gnus-summary-move-article nil gdt-trash-newsgroup)) (defalias 'score-subject-fuzzy-lower-next (read-kbd-macro "Lsft RET n")) (defalias 'score-subject-fuzzy-lower-nextscore (read-kbd-macro "Lsft RET ,")) (add-hook 'gnus-summary-mode-hook (lambda () (local-set-key "k" 'score-subject-fuzzy-lower-next) (local-set-key " " 'score-subject-fuzzy-lower-nextscore) (local-set-key "d" 'gdt-gnus-move-to-trash))) Now, gnus behaves like a normal mailreader, and pushing 'd' moves the message to my Trash folder. If I were more together, I'd pass optional arguments so I could use the process mark or arguments with d, but I haven't gotten a round tuit.