[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: |
Mon, 28 Dec 2015 09:46:45 -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?