Gnus development mailing list
 help / color / mirror / Atom feed
* Confusion wrt nnmail-split-fancy
@ 1999-04-16 17:03 Jack Twilley
  1999-04-16 17:18 ` Didier Verna
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jack Twilley @ 1999-04-16 17:03 UTC (permalink / raw)



I read the docs for fancy mail splitting.

I read the docs for replace-match.

I even see the example:

     (any "debian-\\b\\(\\w+\\)@lists.debian.org" "mail.debian.\\1")

But I don't know what it means.  If someone could say something after
the info file demonstrating the effect, that would be nice.

     In this example, messages sent to debian-foo@lists.debian.org
     will be filed in mail.debian.foo.

The reason I ask...

I play Diplomacy online.  I get email messages from a static address
with dynamic subject lines, on which I'd like to filter and file.

Here's a chunk of my summary buffer:

!  [  14: usef@devel.igo.org  ] Diplomacy notice: atom02
!  [  66: usef@devel.igo.org  ] Diplomacy results atom02 S1904M

So I'd want something like this in my nnmail-split-fancy variable:

    (from "usef@devel\\.igo\\.org"
          (| (subject "Diplomacy notice: \\(\\w+\\)")
             (subject "Diplomacy results \\(\\w+\\)")
             "mail.diplomacy.usef.\\1"))

Is that right?  Help? :-)
             
Jack.
-- 
Jack Twilley
jmt@nycap.rr.com
.



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

* Re: Confusion wrt nnmail-split-fancy
  1999-04-16 17:03 Confusion wrt nnmail-split-fancy Jack Twilley
@ 1999-04-16 17:18 ` Didier Verna
  1999-04-16 18:05 ` Michael Welsh Duggan
  1999-04-17  8:21 ` Lars Magne Ingebrigtsen
  2 siblings, 0 replies; 6+ messages in thread
From: Didier Verna @ 1999-04-16 17:18 UTC (permalink / raw)
  Cc: ding

Jack Twilley <jmt+usenet@nycap.rr.com> writes:

> I read the docs for fancy mail splitting.

        Don't use fancy mail splitting if you can avoid it. It's horrible and
you can do everything with the normal split method. I've gave up fancy
splitting affter being sick of the way it does matching. Unusable. Although it
can be a bit more convenient than the basic way, I'm not ready to use it again
until Lars moves back the matching stuff to the same method as for normal
splitting.


>      (any "debian-\\b\\(\\w+\\)@lists.debian.org" "mail.debian.\\1")
> 
> But I don't know what it means.

        "any" header matching the regexp will move the message to the group
"mail.debian.<what's in the 1st paren group in the regexp>"


> So I'd want something like this in my nnmail-split-fancy variable:
> 
>     (from "usef@devel\\.igo\\.org"
>           (| (subject "Diplomacy notice: \\(\\w+\\)")
>              (subject "Diplomacy results \\(\\w+\\)")
>              "mail.diplomacy.usef.\\1"))

        Your "subject" splits are invalid, they miss the group destination.
There's no point in looking into the subject field, if you want both cases to
go in the same folder, right ?

-- 
    /     /   _   _       Didier Verna        http://www.inf.enst.fr/~verna/
 - / / - / / /_/ /      E.N.S.T. INF C201.1      mailto:verna@inf.enst.fr
/_/ / /_/ / /__ /        46 rue Barrault        Tel.   (33) 01 45 81 73 46
                      75634 Paris  cedex 13     Fax.   (33) 01 45 81 31 19


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

* Re: Confusion wrt nnmail-split-fancy
  1999-04-16 17:03 Confusion wrt nnmail-split-fancy Jack Twilley
  1999-04-16 17:18 ` Didier Verna
@ 1999-04-16 18:05 ` Michael Welsh Duggan
  1999-04-16 21:20   ` Jack Twilley
  1999-04-17  8:21 ` Lars Magne Ingebrigtsen
  2 siblings, 1 reply; 6+ messages in thread
From: Michael Welsh Duggan @ 1999-04-16 18:05 UTC (permalink / raw)



Jack Twilley <jmt+usenet@nycap.rr.com> writes:

> Here's a chunk of my summary buffer:
> 
> !  [  14: usef@devel.igo.org  ] Diplomacy notice: atom02
> !  [  66: usef@devel.igo.org  ] Diplomacy results atom02 S1904M
> 
> So I'd want something like this in my nnmail-split-fancy variable:
> 
>     (from "usef@devel\\.igo\\.org"
>           (| (subject "Diplomacy notice: \\(\\w+\\)")
>              (subject "Diplomacy results \\(\\w+\\)")
>              "mail.diplomacy.usef.\\1"))

You're pretty close here, assuming I am guessing correctly as to what
you want.

(|
  (from "usef@devel\\.igo\\.org"
        ("subject" "Diplomacy \\(results\\|notice:\\) \\(\\w+\\)" 
         "mail.diplomacy.\\2))
  ...other splits...
  "default.split")

Use `B q' on articles after changing `nnmail-split-fancy' to see where
they are ending up.

-- 
Michael Duggan
(md5i@cs.cmu.edu)
.



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

* Re: Confusion wrt nnmail-split-fancy
  1999-04-16 18:05 ` Michael Welsh Duggan
@ 1999-04-16 21:20   ` Jack Twilley
  1999-04-16 22:11     ` Colin Rafferty
  0 siblings, 1 reply; 6+ messages in thread
From: Jack Twilley @ 1999-04-16 21:20 UTC (permalink / raw)



>>>>> "Michael" == Michael Welsh Duggan <md5i@cs.cmu.edu> writes:

    Michael> You're pretty close here, assuming I am guessing
    Michael> correctly as to what you want.

You were right.  But... :-)

    Michael> (|
    Michael>   (from "usef@devel\\.igo\\.org"
    Michael>         ("subject" "Diplomacy \\(results\\|notice:\\) \\(\\w+\\)" 
    Michael>          "mail.diplomacy.\\2))
    Michael>   ...other splits...
    Michael>   "default.split")

Excpeting the accidental typos, this did exactly what I asked.

Now if I wanted to put all email from usef@devel.igo.org that _didn't_
match that subject regexp in mail.diplomacy.usef, how would I do it?

    Michael> Use `B q' on articles after changing `nnmail-split-fancy'
    Michael> to see where they are ending up.

Very useful tip!

    Michael> -- Michael Duggan (md5i@cs.cmu.edu) .

Jack.
(Sorry for being a PITA.  Should have remembered this case before.)
-- 
Jack Twilley
jmt@nycap.rr.com
.



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

* Re: Confusion wrt nnmail-split-fancy
  1999-04-16 21:20   ` Jack Twilley
@ 1999-04-16 22:11     ` Colin Rafferty
  0 siblings, 0 replies; 6+ messages in thread
From: Colin Rafferty @ 1999-04-16 22:11 UTC (permalink / raw)


Jack Twilley writes:

> Now if I wanted to put all email from usef@devel.igo.org that _didn't_
> match that subject regexp in mail.diplomacy.usef, how would I do it?

(|
   (from "usef@devel\\.igo\\.org"
	 (| ("subject" "Diplomacy \\(results\\|notice:\\) \\(\\w+\\)" 
	     "mail.diplomacy.\\2")
	    "mail.diplomacy.usef"))
   ...other splits...
   "default.split")

-- 
Colin


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

* Re: Confusion wrt nnmail-split-fancy
  1999-04-16 17:03 Confusion wrt nnmail-split-fancy Jack Twilley
  1999-04-16 17:18 ` Didier Verna
  1999-04-16 18:05 ` Michael Welsh Duggan
@ 1999-04-17  8:21 ` Lars Magne Ingebrigtsen
  2 siblings, 0 replies; 6+ messages in thread
From: Lars Magne Ingebrigtsen @ 1999-04-17  8:21 UTC (permalink / raw)


Jack Twilley <jmt+usenet@nycap.rr.com> writes:

> But I don't know what it means.  If someone could say something after
> the info file demonstrating the effect, that would be nice.
> 
>      In this example, messages sent to debian-foo@lists.debian.org
>      will be filed in mail.debian.foo.


Thanks; I've now added this to the manual.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


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

end of thread, other threads:[~1999-04-17  8:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-16 17:03 Confusion wrt nnmail-split-fancy Jack Twilley
1999-04-16 17:18 ` Didier Verna
1999-04-16 18:05 ` Michael Welsh Duggan
1999-04-16 21:20   ` Jack Twilley
1999-04-16 22:11     ` Colin Rafferty
1999-04-17  8:21 ` Lars Magne Ingebrigtsen

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