Gnus development mailing list
 help / color / mirror / Atom feed
* nnmail-split-methods confusion
@ 2001-02-21 17:00 Doug Alcorn
  2001-02-21 17:13 ` ShengHuo ZHU
  2001-02-21 17:14 ` Laura Conrad
  0 siblings, 2 replies; 3+ messages in thread
From: Doug Alcorn @ 2001-02-21 17:00 UTC (permalink / raw)


I'm trying to prevent any html formatted mail message from ending up
in my various folders.  The common denominator in all the offending
messages is the content-type.  I thought I could just add a filter in
the split methods for this.  Here's what I have:

(setq nnmail-split-methods
					'(("html-junk" "^Content-Type: multipart/alternative")
					  ("yahoo" "^X-Gnus-Mail-Source.*yahoo\\.com")
					  ("inbox" "")))

Unfortunately, this causes the offending messages to end up in _both_
"html-junk" and either "yahoo" or "inbox".  I thought that
nnmail-split-methods worked kindof like procmail: once a rule is
matched it quits appling rules.
-- 
 (__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
 oo / PGP 02B3 1E26 BCF2 9AAF 93F1  61D7 450C B264 3E63 D543
 |_/  If you're a capitalist and you have the best goods and they're
      free, you don't have to proselytize, you just have to wait. 





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

* Re: nnmail-split-methods confusion
  2001-02-21 17:00 nnmail-split-methods confusion Doug Alcorn
@ 2001-02-21 17:13 ` ShengHuo ZHU
  2001-02-21 17:14 ` Laura Conrad
  1 sibling, 0 replies; 3+ messages in thread
From: ShengHuo ZHU @ 2001-02-21 17:13 UTC (permalink / raw)


Doug Alcorn <doug@lathi.net> writes:

> I'm trying to prevent any html formatted mail message from ending up
> in my various folders.  The common denominator in all the offending
> messages is the content-type.  I thought I could just add a filter in
> the split methods for this.  Here's what I have:
> 
> (setq nnmail-split-methods
> 					'(("html-junk" "^Content-Type: multipart/alternative")
> 					  ("yahoo" "^X-Gnus-Mail-Source.*yahoo\\.com")
> 					  ("inbox" "")))
> 
> Unfortunately, this causes the offending messages to end up in _both_
> "html-junk" and either "yahoo" or "inbox".  I thought that
> nnmail-split-methods worked kindof like procmail: once a rule is
> matched it quits appling rules.

(setq nnmail-crosspost nil) is what you are looking for.

ShengHuo



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

* Re: nnmail-split-methods confusion
  2001-02-21 17:00 nnmail-split-methods confusion Doug Alcorn
  2001-02-21 17:13 ` ShengHuo ZHU
@ 2001-02-21 17:14 ` Laura Conrad
  1 sibling, 0 replies; 3+ messages in thread
From: Laura Conrad @ 2001-02-21 17:14 UTC (permalink / raw)


>>>>> "Doug" == Doug Alcorn <doug@lathi.net> writes:


    Doug> I thought that nnmail-split-methods worked kindof like
    Doug> procmail: once a rule is matched it quits appling rules.

No, by default it puts it everywhere it matches the rule. For the
behavior you want, you should say:

(setq nnmail-crosspost nil)

You have to be careful about doing this -- it suddenly means that the
order you have the rules in matters a lot, and mail can end up in an
unexpected place.

-- 
Laura (mailto:lconrad@laymusic.org)
http://www.laymusic.org : Putting live music back in the living room.






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

end of thread, other threads:[~2001-02-21 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-21 17:00 nnmail-split-methods confusion Doug Alcorn
2001-02-21 17:13 ` ShengHuo ZHU
2001-02-21 17:14 ` Laura Conrad

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