info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple keybindings for Gmail/IMAP use


From: Rainer M Krug
Subject: Re: Simple keybindings for Gmail/IMAP use
Date: Mon, 05 Oct 2015 11:37:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Bob Newell <bobnewell@bobnewell.net> writes:

> ;; Here are a few keybindings to help with moving Gmail messages from
> ;; INBOX (typically) to wherever. Strangely enough I've not seen these
> ;; published online even though the concept is extremely simple and
> ;; requires no (or little) knowledge or skill to implement (which is why I
> ;; could do it).
>
> ;; An annoyance with GNUS/Gmail is that if you read something in GNUS,
> ;; it still appears in the INBOX if you go to the Web interface. Mail
> ;; needs to be moved, not just read, to get it out of INBOX. Archiving
> ;; moves it to "All Mail" (even though it's already there, which is
> ;; kind of silly but that's how it works). Moving to Spam or Trash
> ;; work as expected, as does moving something /to/ INBOX. 
>
> ;; Certainly, you can use 'Bm' and then select a folder to move to. But
> ;; I wanted something specific for Gmail that was a little faster.
>
> ;; To use these, just put the cursor on the mail you want to move (in
> ;; the group summary). Alternatively, process mark a selection of
> ;; mails (with '#') to have them all moved at once (to the same place,
> ;; of course).
>
> ;; Prefix v (reserved by gnus for user stuff?) then
> ;; a=archive (to 'all mail') s=spam t=trash i=inbox
>
> ;; Archive.
>   (define-key gnus-summary-mode-map "va" 
>      (lambda () (interactive)
>          (gnus-summary-move-article nil "nnimap+gmail:[Gmail]/All Mail" nil)))
> ;; Spam.
>   (define-key gnus-summary-mode-map "vs" 
>      (lambda () (interactive)
>          (gnus-summary-move-article nil "nnimap+gmail:[Gmail]/Spam" nil)))
> ;; Trash.
>   (define-key gnus-summary-mode-map "vt" 
>      (lambda () (interactive)
>          (gnus-summary-move-article nil "nnimap+gmail:[Gmail]/Trash" nil)))
> ;; Move to INBOX (such as for false positive spam).
>   (define-key gnus-summary-mode-map "vi" 
>      (lambda () (interactive)
>          (gnus-summary-move-article nil "nnimap+gmail:[Gmail]/INBOX" nil)))

Very nice - thaks.

Rainer

-- 
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]