Gnus development mailing list
 help / color / mirror / Atom feed
* Re: mail splitting.
       [not found] <87siq4bz40.fsf@talktalk.net>
@ 2014-03-28  8:24 ` Eric S Fraga
  2014-04-01 15:01   ` Sharon Kimble
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2014-03-28  8:24 UTC (permalink / raw)
  To: ding

Sharon Kimble <boudiccas@talktalk.net> writes:

> Now that I have a working gnus setup, I'm looking at sorting incoming emails
> into separate folders. So I've been looking at 'nnmail-split' and 'fancy
> splitting'. The code that I have been using below.

I specify "(nnimap-split-methods nnmail-split-fancy)" in the secondary
select method for the host I want to split, as in:

#+begin_src emacs-lisp
  (setq gnus-secondary-select-methods 
        '((nnml "")
          ;; (nntp "localhost")
          (nnimap "work"
                  (nnimap-address "outlook.office365.com")
                  (nnimap-inbox "INBOX")
                  (nnimap-split-methods nnmail-split-fancy)
                  (nnimap-stream ssl))))
#+end_src

and then specify nnmail-split-fancy much as you have done except that my
last entry is simply "general", i.e. has no matching specification.

-- 
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.4.50.2 + Ma Gnus v0.10 + evil 1.0-dev
: BBDB version 3.1.1 (2014-03-11 17:17:00 -0500)



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

* Re: mail splitting.
  2014-03-28  8:24 ` mail splitting Eric S Fraga
@ 2014-04-01 15:01   ` Sharon Kimble
  2014-04-01 18:45     ` Eric S Fraga
  0 siblings, 1 reply; 3+ messages in thread
From: Sharon Kimble @ 2014-04-01 15:01 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 2272 bytes --]

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Sharon Kimble <boudiccas@talktalk.net> writes:
>
>> Now that I have a working gnus setup, I'm looking at sorting incoming emails
>> into separate folders. So I've been looking at 'nnmail-split' and 'fancy
>> splitting'. The code that I have been using below.
>
> I specify "(nnimap-split-methods nnmail-split-fancy)" in the secondary
> select method for the host I want to split, as in:
>
> #+begin_src emacs-lisp
>   (setq gnus-secondary-select-methods 
>         '((nnml "")
>           ;; (nntp "localhost")
>           (nnimap "work"
>                   (nnimap-address "outlook.office365.com")
>                   (nnimap-inbox "INBOX")
>                   (nnimap-split-methods nnmail-split-fancy)
>                   (nnimap-stream ssl))))
> #+end_src
>
> and then specify nnmail-split-fancy much as you have done except that my
> last entry is simply "general", i.e. has no matching specification.

Thanks for this reply, I've been unable to do anything about it until now.

This is what I currently have -
--8<---------------cut here---------------start------------->8---
; Email splitting rules:
 (setq nnmail-split-fancy
 '(|
  (: nnmail-split-fancy-with-parent) 
(any "help-bash@gnu.org" "help-bash")
(any "help-gnu-emacs@gnu.org" "help-gnu-emacs")
(any "emacs-orgmode@gnu.org" "org-mode")
(from "Inconsolation <comment-reply@wordpress.com>" "general")
(any "root@london" "system")
 (from "mailer" "mail.errors")
        ("X-Spam-Status" "Yes" "spam")
(any "" "general")))
--8<---------------cut here---------------end--------------->8---
It is all working except I have not had any mail in to test the spam,
mail.errors, nor the mail listed in 'from'.

But I'm unsure of the very last rule (any "" "general") as I'm taking it from
your last email but am unsure of the syntax for it. 

Is it possible to change from "nnml:mail.misc" to just "mail.misc" or even
just "misc"?

How can I sort through mail already received using the 'split-fancy' rulesets
please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.1

[-- Attachment #2: Type: application/pgp-signature, Size: 818 bytes --]

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

* Re: mail splitting.
  2014-04-01 15:01   ` Sharon Kimble
@ 2014-04-01 18:45     ` Eric S Fraga
  0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2014-04-01 18:45 UTC (permalink / raw)
  To: ding

Sharon Kimble <boudiccas@talktalk.net> writes:

[...]

> Thanks for this reply, I've been unable to do anything about it until now.
>
> This is what I currently have -
> ; Email splitting rules:
>  (setq nnmail-split-fancy
>  '(|
>   (: nnmail-split-fancy-with-parent) 
> (any "help-bash@gnu.org" "help-bash")
> (any "help-gnu-emacs@gnu.org" "help-gnu-emacs")
> (any "emacs-orgmode@gnu.org" "org-mode")
> (from "Inconsolation <comment-reply@wordpress.com>" "general")
> (any "root@london" "system")
>  (from "mailer" "mail.errors")
>         ("X-Spam-Status" "Yes" "spam")
> (any "" "general")))
> It is all working except I have not had any mail in to test the spam,
> mail.errors, nor the mail listed in 'from'.
>
> But I'm unsure of the very last rule (any "" "general") as I'm taking it from
> your last email but am unsure of the syntax for it. 

My split rule looks like this:

'(|
 ...
 (any "help-gnu-emacs@gnu.org" "help-gnu-emacs")
 ...
 "general"
)

i.e. the last one isn't a () form and doesn't have a regex etc.

> Is it possible to change from "nnml:mail.misc" to just "mail.misc" or even
> just "misc"?

No idea.

> How can I sort through mail already received using the 'split-fancy' rulesets
> please?

Maybe "B r" (gnus-summary-respool-article)?

-- 
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.4.50.2 + Ma Gnus v0.10 + evil 1.0-dev
: BBDB version 3.1.1 (2014-03-11 17:17:00 -0500)



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

end of thread, other threads:[~2014-04-01 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87siq4bz40.fsf@talktalk.net>
2014-03-28  8:24 ` mail splitting Eric S Fraga
2014-04-01 15:01   ` Sharon Kimble
2014-04-01 18:45     ` Eric S Fraga

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