Gnus development mailing list
 help / color / mirror / Atom feed
From: Greg Troxel <gdt@work.lexort.com>
To: Jake Colman <colman@ppllc.com>
Cc: ding@gnus.org
Subject: Re: Deleting Messages from an IMAP Folder
Date: Wed, 16 Apr 2008 19:22:47 -0400	[thread overview]
Message-ID: <smuskxlfkqg.fsf@linuxpal.mit.edu> (raw)
In-Reply-To: <76od8gwosh.fsf@dev-d01.ppllc.com> (Jake Colman's message of "Fri, 11 Apr 2008 08:37:18 -0400")

  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 "\v" '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.




  parent reply	other threads:[~2008-04-16 23:22 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 [this message]
2008-04-17 18:06   ` Jake Colman
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=smuskxlfkqg.fsf@linuxpal.mit.edu \
    --to=gdt@work.lexort.com \
    --cc=colman@ppllc.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).