unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Consequent Matches in `NNMAIL-SPLIT-METHOD'
@ 2009-06-22 13:09 Volkan YAZICI
  2009-06-22 15:02 ` Thien-Thi Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Volkan YAZICI @ 2009-06-22 13:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

[I've asked same question in gnu.emacs.gnus, but still no replies
after 2 months.]

How can I make message splitting through `NNMAIL-SPLIT-METHOD' to stop
after the first found match, instead of processing the rest.


Regards.


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

* Re: Consequent Matches in `NNMAIL-SPLIT-METHOD'
  2009-06-22 13:09 Consequent Matches in `NNMAIL-SPLIT-METHOD' Volkan YAZICI
@ 2009-06-22 15:02 ` Thien-Thi Nguyen
  2009-06-23  8:38   ` Volkan YAZICI
  0 siblings, 1 reply; 4+ messages in thread
From: Thien-Thi Nguyen @ 2009-06-22 15:02 UTC (permalink / raw)
  To: Volkan YAZICI; +Cc: help-gnu-emacs

() Volkan YAZICI <volkan.yazici@gmail.com>
() Mon, 22 Jun 2009 06:09:11 -0700 (PDT)

   How can I make message splitting through `NNMAIL-SPLIT-METHOD' to stop
   after the first found match, instead of processing the rest.

I have this in ~/.gnus:

(setq nnmail-split-methods 'nnmail-split-fancy)
(setq nnmail-split-fancy
      '(| (from ttn-other-hackers "ttn.software")
          (from "cron daemon" "mail.sysadmin")
          ;; more stuff here
          ))

This seems to do what i think you are looking for.

thi




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

* Re: Consequent Matches in `NNMAIL-SPLIT-METHOD'
  2009-06-22 15:02 ` Thien-Thi Nguyen
@ 2009-06-23  8:38   ` Volkan YAZICI
  2009-06-23  8:46     ` Thien-Thi Nguyen
  0 siblings, 1 reply; 4+ messages in thread
From: Volkan YAZICI @ 2009-06-23  8:38 UTC (permalink / raw)
  To: Thien-Thi Nguyen; +Cc: help-gnu-emacs

On Mon, 22 Jun 2009, Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> I have this in ~/.gnus:
>
> (setq nnmail-split-methods 'nnmail-split-fancy)
> (setq nnmail-split-fancy
>       '(| (from ttn-other-hackers "ttn.software")
>           (from "cron daemon" "mail.sysadmin")
>           ;; more stuff here
>           ))
>
> This seems to do what i think you are looking for.

I transfered my whole `NNMAIL-SPLIT-METHODS' to `NNMAIL-SPLIT-FANCY', but it
doesn't work as expected for every group. For instance, despite my
`NNMAIL-SPLIT-FANCY' is formatted like below

  (|
   ("X-Mailing-List" "pgsql-patches" "pgsql-patches")
   ...
   ("From" "Slashdot" "slashdot")
   ("From" "\"OSNews" "osnews")
   ...
   "misc")

below message gets filtered into "misc" group.

  X-From-Line: vy@alamut.alborz.net Tue Jun 23 11:15:04 2009
  Return-Path: <vy>
  Received: by alamut.alborz.net
  	via sendmail from stdin
  	id <m1MJ19k-000NT4C@alamut.alborz.net> (Debian Smail3.2.0.115)
  	Tue, 23 Jun 2009 11:15:04 +0300 (EEST) 
  X-Gnus-Mail-Source: file:/var/mail/vy
  Message-Id: <m1MJ19k-000NT4C@alamut.alborz.net>
  MIME-Version: 1.0
  Content-Type: text/plain; charset="us-ascii"
  Content-Transfer-Encoding: 7bit
  To: vy@alamut.alborz.net
  Subject: Mozilla use Video for Everybdody, publish non-JS example
  Date: Tue, 23 Jun 2009 08:15:04 -0000
  User-Agent: rss2email
  From: "OSNews: Kroc Camen" <donotreply@osnews.com>
  Lines: 4
  Xref: alamut.alborz.net osnews:2332

Any ideas about what I might have missed?


Regards.




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

* Re: Consequent Matches in `NNMAIL-SPLIT-METHOD'
  2009-06-23  8:38   ` Volkan YAZICI
@ 2009-06-23  8:46     ` Thien-Thi Nguyen
  0 siblings, 0 replies; 4+ messages in thread
From: Thien-Thi Nguyen @ 2009-06-23  8:46 UTC (permalink / raw)
  To: help-gnu-emacs

() Volkan YAZICI <volkan.yazici@gmail.com>
() Tue, 23 Jun 2009 11:38:05 +0300

      ("From" "\"OSNews" "osnews")

In (info "(gnus) Fancy Mail Splitting")
i see:

|   Normally, VALUE in these splits must match a complete _word_
|according to the fundamental mode syntax table.  In other words, all
|VALUE's will be implicitly surrounded by `\<...\>' markers, which are
|word delimiters.  Therefore, if you use the following split, for
|example,

and note that 
(let ((s "From: \"OSNews: Kroc Camen\" <donotreply@osnews.com>")
      (value "\"OSNews"))
  (string-match (concat "\\<" value "\\>") s))
=> nil

You can probably find other interesting info in the documentation,
hint hint.

thi




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

end of thread, other threads:[~2009-06-23  8:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-22 13:09 Consequent Matches in `NNMAIL-SPLIT-METHOD' Volkan YAZICI
2009-06-22 15:02 ` Thien-Thi Nguyen
2009-06-23  8:38   ` Volkan YAZICI
2009-06-23  8:46     ` Thien-Thi Nguyen

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 read-only IMAP folder(s) and NNTP newsgroup(s).