Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Simple keybindings for Gmail/IMAP use
@ 2015-10-04 22:36 Bob Newell
  2015-10-05  9:37 ` Rainer M Krug
  2015-10-06  9:40 ` Julien Cubizolles
  0 siblings, 2 replies; 4+ messages in thread
From: Bob Newell @ 2015-10-04 22:36 UTC (permalink / raw)
  To: info-gnus-english

;; 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)))

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Simple keybindings for Gmail/IMAP use
  2015-10-04 22:36 Simple keybindings for Gmail/IMAP use Bob Newell
@ 2015-10-05  9:37 ` Rainer M Krug
  2015-10-06  9:40 ` Julien Cubizolles
  1 sibling, 0 replies; 4+ messages in thread
From: Rainer M Krug @ 2015-10-05  9:37 UTC (permalink / raw)
  To: Bob Newell; +Cc: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 2120 bytes --]

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 #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Simple keybindings for Gmail/IMAP use
  2015-10-04 22:36 Simple keybindings for Gmail/IMAP use Bob Newell
  2015-10-05  9:37 ` Rainer M Krug
@ 2015-10-06  9:40 ` Julien Cubizolles
  2015-10-06  9:55   ` Rainer M Krug
  1 sibling, 1 reply; 4+ messages in thread
From: Julien Cubizolles @ 2015-10-06  9:40 UTC (permalink / raw)
  To: info-gnus-english

Bob Newell <bobnewell@bobnewell.net> writes:


> ;; 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)))


When you move something to Spam or Trash, it doesn't remove the copy
from All Mail, does it ?

 Julien.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Simple keybindings for Gmail/IMAP use
  2015-10-06  9:40 ` Julien Cubizolles
@ 2015-10-06  9:55   ` Rainer M Krug
  0 siblings, 0 replies; 4+ messages in thread
From: Rainer M Krug @ 2015-10-06  9:55 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1673 bytes --]

Julien Cubizolles <j.cubizolles@free.fr> writes:

> Bob Newell <bobnewell@bobnewell.net> writes:
>
>
>> ;; 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)))
>
>
> When you move something to Spam or Trash, it doesn't remove the copy
> from All Mail, does it ?

Unless I am not completely mistaken (and the workflow I am using for the
last years does not work...), it is done, if you sync your Trash and
Spam back to gmail - than Gmail is doing it's magic based on the content
of the Spam and Trash folder.
The next time you sync your All Mail folder, it will be gone.

Cheers,

Rainer

>
>  Julien.
>
>
> _______________________________________________
> info-gnus-english mailing list
> info-gnus-english@gnu.org
> https://lists.gnu.org/mailman/listinfo/info-gnus-english

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

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-06  9:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-04 22:36 Simple keybindings for Gmail/IMAP use Bob Newell
2015-10-05  9:37 ` Rainer M Krug
2015-10-06  9:40 ` Julien Cubizolles
2015-10-06  9:55   ` Rainer M Krug

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).