From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/17675 Path: news.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.user Subject: Simple keybindings for Gmail/IMAP use Date: Sun, 4 Oct 2015 15:36:44 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1444036950 24519 80.91.229.3 (5 Oct 2015 09:22:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 09:22:30 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Oct 05 11:22:29 2015 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zj1yT-0000KE-J4 for gegu-info-gnus-english@m.gmane.org; Mon, 05 Oct 2015 11:22:25 +0200 Original-Received: from localhost ([::1]:44962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj1yS-0001OE-T1 for gegu-info-gnus-english@m.gmane.org; Mon, 05 Oct 2015 05:22:24 -0400 X-Received: by 10.13.221.143 with SMTP id g137mr6048296ywe.48.1443998204536; Sun, 04 Oct 2015 15:36:44 -0700 (PDT) X-Received: by 10.182.24.226 with SMTP id x2mr137764obf.8.1443998204492; Sun, 04 Oct 2015 15:36:44 -0700 (PDT) Original-Path: usenet.stanford.edu!v79no7589139qge.0!news-out.google.com!n2ni20679igy.0!nntp.google.com!kq10no16738261igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=141.239.249.23; posting-account=6qgLogoAAAByScQO6BAFPwEMwOvTg8gr Original-NNTP-Posting-Host: 141.239.249.23 User-Agent: G2/1.0 Injection-Date: Sun, 04 Oct 2015 22:36:44 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.gnus:88805 X-Mailman-Approved-At: Mon, 05 Oct 2015 05:22:04 -0400 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:17675 Archived-At: ;; 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)))