From: Benjamin Slade <slade@jnanam.net>
To: info-gnus-english <info-gnus-english@gnu.org>
Subject: customised move mail functions with multiple accounts / auto-detect group?
Date: Sun, 27 Dec 2015 22:35:47 -0700 [thread overview]
Message-ID: <87a8ovnnik.fsf@jnanam.net> (raw)
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)
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
next reply other threads:[~2015-12-28 5:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-28 5:35 Benjamin Slade [this message]
2015-12-28 16:46 Benjamin Slade
[not found] <mailman.1124.1451280956.843.info-gnus-english@gnu.org>
2015-12-28 20:03 ` Bob Newell
2015-12-29 4:16 ` Benjamin Slade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8ovnnik.fsf@jnanam.net \
--to=slade@jnanam.net \
--cc=info-gnus-english@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).