Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* customised move mail functions with multiple accounts / auto-detect group?
@ 2015-12-28 16:46 Benjamin Slade
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Slade @ 2015-12-28 16:46 UTC (permalink / raw)
  To: info-gnus-english

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?


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

* Re: customised move mail functions with multiple accounts / auto-detect group?
  2015-12-28 20:03 ` Bob Newell
@ 2015-12-29  4:16   ` Benjamin Slade
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Slade @ 2015-12-29  4:16 UTC (permalink / raw)
  To: Bob Newell; +Cc: info-gnus-english

Bob Newell <bobnewell@bobnewell.net> writes:

> On Sunday, December 27, 2015 at 7:35:57 PM UTC-10, Benjamin Slade wrote:
>> Based on this posting: https://lists.gnu.org/archive/html/info-gnus-english/2015-10/msg00008.html
>
> I have an updated version here:
>
> http://www.bobnewell.net/filez/gnus-gmail-archive.el
>
> which adds functions for emptying spam/trash, and an equivalent of Gmail's "send
> and archive" option. But I haven't added the selectable archiving that you ask
> for.
>
> It shouldn't be hard to code, though. Make the target of gnus-summary-move-article something based on whatever header you wish. 
>
> But I'm not saying I'm going to code it, though :)

Thanks for this.

Where can I find out what variables Gnus makes visible for targeting ?


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

* Re: customised move mail functions with multiple accounts / auto-detect group?
       [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
  0 siblings, 1 reply; 4+ messages in thread
From: Bob Newell @ 2015-12-28 20:03 UTC (permalink / raw)
  To: info-gnus-english

On Sunday, December 27, 2015 at 7:35:57 PM UTC-10, Benjamin Slade wrote:
> Based on this posting: https://lists.gnu.org/archive/html/info-gnus-english/2015-10/msg00008.html

I have an updated version here:

http://www.bobnewell.net/filez/gnus-gmail-archive.el

which adds functions for emptying spam/trash, and an equivalent of Gmail's "send and archive" option. But I haven't added the selectable archiving that you ask for.

It shouldn't be hard to code, though. Make the target of gnus-summary-move-article something based on whatever header you wish. 

But I'm not saying I'm going to code it, though :)

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

* customised move mail functions with multiple accounts / auto-detect group?
@ 2015-12-28  5:35 Benjamin Slade
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Slade @ 2015-12-28  5:35 UTC (permalink / raw)
  To: info-gnus-english

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

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

end of thread, other threads:[~2015-12-29  4:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-28 16:46 customised move mail functions with multiple accounts / auto-detect group? 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
  -- strict thread matches above, loose matches on Subject: below --
2015-12-28  5:35 Benjamin Slade

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