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

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

customised move mail functions with multiple accounts / auto-detect grou


From: Benjamin Slade
Subject: customised move mail functions with multiple accounts / auto-detect group?
Date: Sun, 27 Dec 2015 22:35:47 -0700
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (gnu/linux)

Based on this posting: 
https://lists.gnu.org/archive/html/info-gnus-english/2015-10/msg00008.html

some useful bound move functions could be defined, e.g.

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

But what would be the best way of doing something like this which would
move messages to the appropriate location (assuming a multi-email
account situation), either based on group or something else like the
"To" field?


-- 
( Dr Benjamin Slade . b.slade@utah.edu . http://www.jnanam.net/slade )
 ( Linguistics . University of Utah )
   (pgp_fingerprint: (21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19))
         '(sent by 真/MA Gnus on Emacs running under GNU/Linux)



reply via email to

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