From: Jake Colman <colman@ppllc.com>
To: Greg Troxel <gdt@work.lexort.com>
Cc: "ding\@gnus.org" <ding@gnus.org>
Subject: Re: Deleting Messages from an IMAP Folder
Date: Thu, 17 Apr 2008 14:06:34 -0400 [thread overview]
Message-ID: <76mynsqrth.fsf@dev-d01.ppllc.com> (raw)
In-Reply-To: <smuskxlfkqg.fsf@linuxpal.mit.edu> (Greg Troxel's message of "Wed, 16 Apr 2008 19:22:47 -0400")
>>>>> "GT" == Greg Troxel <gdt@work.lexort.com> 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
next prev parent reply other threads:[~2008-04-17 18:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 12:37 Jake Colman
2008-04-11 12:50 ` Elias Oltmanns
2008-04-16 19:12 ` Ted Zlatanov
2008-04-16 23:22 ` Greg Troxel
2008-04-17 18:06 ` Jake Colman [this message]
2008-04-17 19:25 ` Zlatko Calusic
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=76mynsqrth.fsf@dev-d01.ppllc.com \
--to=colman@ppllc.com \
--cc=ding@gnus.org \
--cc=gdt@work.lexort.com \
/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).