From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/66838 Path: news.gmane.org!not-for-mail From: Jake Colman Newsgroups: gmane.emacs.gnus.general Subject: Re: Deleting Messages from an IMAP Folder Date: Thu, 17 Apr 2008 14:06:34 -0400 Message-ID: <76mynsqrth.fsf@dev-d01.ppllc.com> 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 1208457587 25939 80.91.229.12 (17 Apr 2008 18:39:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2008 18:39:47 +0000 (UTC) Cc: "ding\@gnus.org" To: Greg Troxel Original-X-From: ding-owner+M15320@lists.math.uh.edu Thu Apr 17 20:40:03 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 1JmYWc-0000Y2-Vb for ding-account@gmane.org; Thu, 17 Apr 2008 20:07:59 +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 1JmYVw-0000Zu-EC; Thu, 17 Apr 2008 13:07:16 -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 1JmYVv-0000Zc-0Y for ding@lists.math.uh.edu; Thu, 17 Apr 2008 13:07:15 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1JmYVo-0003DK-Mc for ding@lists.math.uh.edu; Thu, 17 Apr 2008 13:07:14 -0500 Original-Received: from [69.7.239.34] (helo=dev-d01.ppllc.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1JmYVz-0006fn-00 for ; Thu, 17 Apr 2008 20:07:19 +0200 Original-Received: from dev-d01.ppllc.com (localhost [127.0.0.1]) by dev-d01.ppllc.com (8.13.8+Sun/8.13.8) with ESMTP id m3HI6adk018703; Thu, 17 Apr 2008 14:06:36 -0400 (EDT) Original-Received: (from colman@localhost) by dev-d01.ppllc.com (8.13.8+Sun/8.13.8/Submit) id m3HI6aeV018702; Thu, 17 Apr 2008 14:06:36 -0400 (EDT) X-Authentication-Warning: dev-d01.ppllc.com: colman set sender to colman@ppllc.com using -f X-Attribution: Jake X-URL: http://www.principiapartners.com In-Reply-To: (Greg Troxel's message of "Wed, 16 Apr 2008 19:22:47 -0400") User-Agent: Gnus/5.110007 (No Gnus v0.7) XEmacs/21.4.17 (usg-unix-v, no MULE) X-Spam-Score: -2.3 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:66838 Archived-At: >>>>> "GT" == Greg Troxel writes: GT> How do I delete a read message from an IMAP folder? if I press GT> the DEL key, the 'R' becomes an 'r' but the message does not GT> actually get deleted when I exit the folder. GT> I read mail in IMAP, and want to use for my inbox the explicit GT> delete approach, as opposed to the auto-expirable approach. And, GT> I want things to go away immediately, not be marked expirable, GT> since the point of deleting is to stop seeing them. I also use GT> thunderbird against the same server. GT> So I have the following in my .emacs, more or less (plus scoring GT> functions that you or someone might find useful, but aren't GT> relevant to your question): GT> (setq gdt-trash-newsgroup "nnimap+my.server.name:Trash") GT> (defun gdt-gnus-move-to-trash () GT> (interactive) GT> (gnus-summary-move-article nil gdt-trash-newsgroup)) GT> (defalias 'score-subject-fuzzy-lower-next GT> (read-kbd-macro "Lsft RET n")) GT> (defalias 'score-subject-fuzzy-lower-nextscore GT> (read-kbd-macro "Lsft RET ,")) GT> (add-hook GT> 'gnus-summary-mode-hook GT> (lambda () GT> (local-set-key "k" 'score-subject-fuzzy-lower-next) GT> (local-set-key " " 'score-subject-fuzzy-lower-nextscore) GT> (local-set-key "d" 'gdt-gnus-move-to-trash))) GT> Now, gnus behaves like a normal mailreader, and pushing 'd' moves GT> the message to my Trash folder. If I were more together, I'd GT> pass optional arguments so I could use the process mark or GT> arguments with d, but I haven't gotten a round tuit. Beautiful! This is exactly what I was looking for. Thanks! ...Jake -- Jake Colman Director of Software Development Principia Partners LLC 101 West Elm Street Suite 620 Conshohocken, PA 19428 +1 (610) 755-9786 www.principiapartners.com