Gnus development mailing list
 help / color / mirror / Atom feed
* Mail from multiple lists...
@ 2000-11-06 21:51 Norman Walsh
  2000-11-07 11:21 ` Toby Speight
  0 siblings, 1 reply; 2+ messages in thread
From: Norman Walsh @ 2000-11-06 21:51 UTC (permalink / raw)


I find that I'm on several (private) lists that don't appear to
advertise themselves in any obvious way. Typically the headers look
like this:

X-From-Line: some.user@example.com Mon Nov 06 16:09:06 2000
Received: from eastmail1.example.com (eastmail1 [129.148.1.240])
	by purol.example.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id QAA27322;
	Mon, 6 Nov 2000 16:02:28 -0500 (EST)
Received: from mail1.example.com (mail1 [129.145.1.2])
	by eastmail1.example.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id QAA27823;
	Mon, 6 Nov 2000 16:02:26 -0500 (EST)
Received: from eastmail1.example.com (eastmail1.example.com [129.148.1.240])
	by mail1.example.com (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6.1-mail1) with ESMTP id NAA19369
	for <list1@example.com>; Mon, 6 Nov 2000 13:02:24 -0800 (PST)
Received: from volcano.example.com (volcano.example.com [129.148.173.163])
	by eastmail1.example.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id QAA27792;
	Mon, 6 Nov 2000 16:02:23 -0500 (EST)
Received: from east.example.com (hobo17.Japan.example.com [129.158.86.117])
	by volcano.example.com (8.8.8+Sun/8.8.8) with ESMTP id QAA20065;
	Mon, 6 Nov 2000 16:02:18 -0500 (EST)
Message-ID: <3A071CB3.201B2E98@example.com>
Date: Mon, 06 Nov 2000 16:03:47 -0500
From: Some User <some.user@example.com>
X-Mailer: Mozilla 4.76 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Some User2 <some.user2@machine.example.com>
CC: list1@example.com, list2@example.com
Subject: Some subject
References: <5.0.0.25.2.20001106124924.009ffeb0@abnaki.east.example.com> <3A06F3B9.99CFE5B1@canada.example.com>
Content-Type: multipart/mixed;
 boundary="------------D523D08001C85D923B502044"
X-Content-Length: 1685
Lines: 53

Unfortunately, my 

(setq nnmail-split-fancy
   ...
	     (any "list1@.*example\.com" "example.list1")
	     (any "list2@.*example\.com" "example.list2")
   ...)

puts two copies of this message in nnml:example.list1 instead of
putting one copy in example.list1 and another in example.list2.

Is there some obvious technique that I'm overlooking?

On close inspection, I do see that one of the received headers offers
a clue:

  Received: from eastmail1.example.com (eastmail1.example.com [129.148.1.240])
  	by mail1.example.com (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6.1-mail1) with ESMTP id NAA19369
	for <list1@example.com>; Mon, 6 Nov 2000 13:02:24 -0800 (PST)

I suppose I could filter on that, though I feel a little uncomfortable
filtering on received: headers. Is my discomfort unfounded?

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Criticism talks a good deal of
http://nwalsh.com/            | nonsense, but even its nonsense is a
                              | useful force. It keeps the question of
                              | art before the world, insists upon its
                              | importance, and makes it always in
                              | order.--Henry James



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

* Re: Mail from multiple lists...
  2000-11-06 21:51 Mail from multiple lists Norman Walsh
@ 2000-11-07 11:21 ` Toby Speight
  0 siblings, 0 replies; 2+ messages in thread
From: Toby Speight @ 2000-11-07 11:21 UTC (permalink / raw)


0> In article <87g0l4kbus.fsf@nwalsh.com>,
0> Norman D. Walsh <URL:mailto:ndw@nwalsh.com> ("Norman") wrote:

Norman> Unfortunately, my
Norman>
Norman> (setq nnmail-split-fancy
Norman>    ...
Norman> 	     (any "list1@.*example\.com" "example.list1")
Norman> 	     (any "list2@.*example\.com" "example.list2")
Norman>    ...)
Norman>
Norman> puts two copies of this message in nnml:example.list1 instead of
Norman> putting one copy in example.list1 and another in
Norman> example.list2.

I assume you have (| ) around those two rules; maybe (& ) is what
you're looking for.  Split to all matches, not just the first.  That
does mean that both copies will be split to both groups - that's not
a problem for me, as I use duplicate suppression, but you may have
different circumstances.


Norman> On close inspection, I do see that one of the received headers
Norman> offers a clue:
Norman>
Norman>   Received: from eastmail1.example.com (eastmail1.example.com [129.148.1.240])
Norman>   	by mail1.example.com (8.9.1b+Sun/8.9.1/ENSMAIL,v1.6.1-mail1) with ESMTP id NAA19369
Norman> 	for <list1@example.com>; Mon, 6 Nov 2000 13:02:24 -0800 (PST)
Norman>
Norman> I suppose I could filter on that, though I feel a little
Norman> uncomfortable filtering on received: headers.  Is my
Norman> discomfort unfounded?

I feel a bit uncomfortable, too, if I do that, because you don't know
when the site will change mailer (or reconfigure their mailer) and
lose the vital bit.

But you could use it, with fallback to considering explicit recipients:

(|
  (|
     (received "for\\s-+list1@.*example\\.com" "example.list1")
     (received "for\\s-+list2@.*example\\.com" "example.list2"))
  (&
     (to "\\<list1@.*example\\.com" "example.list1")
     (to "\\<list2@.*example\\.com" "example.list2")))


Or even

(|
  (received "for\\s-+\\(list[12]\\)@.*\\<example\\.com" "example.\\1")
  (&
     (to "\\<list1@.*example\\.com" "example.list1")
     (to "\\<list2@.*example\\.com" "example.list2")))


I agree that lists should set the envelope from address, and also the
Sender header...



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

end of thread, other threads:[~2000-11-07 11:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-06 21:51 Mail from multiple lists Norman Walsh
2000-11-07 11:21 ` Toby Speight

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