Article View: news.software.readers
Article #114088Re: [Dialog] Filtering on remailer
From: RickM
Date: Sat, 09 Nov 2002 13:26
Date: Sat, 09 Nov 2002 13:26
47 lines
3878 bytes
3878 bytes
On Fri, 8 Nov 2002 17:14:46 -0500, Bob Frank wrote:
> On Fri, 08 Nov 2002 00:15:51 GMT, Tarkus wrote:
>
>> On Thu, 7 Nov 2002 19:01:31 -0500, Bob Frank wrote:
>>
>>> Yes the seme sender will usually have consistent headers. But, I have a
>>> case where I'm receiving mail from a mailing list. The "To:" header is the
>>> same as the address that the participants use to send messages to the list.
>>> It seems that the discussion list software just forwards the message
>>> without modifying the headers. So, while each senders "To:" header is
>>> consistent, the various senders "To:" headers frequently have a different
>>> number of spaces between the "To:" and the email address. In addition,
>>> some of them add "< >" around the email address and some don't.
>>
>> What exactly are you trying to filter with this mailing list?
>
> I'm subscribed to a mailing list. Just for this example, to post to the
> list the poster sill send a message to list@fake.com. When I receive the
> message from the mailing list the header will show "To: list@fake.com" not
> my address.
>
> I like to put all the mailing list replies into a separate folder just for
> the mailing list. Agent allows me to filter and move to a separate folder
> using the "To:" header. In this particular case I would like to be able to
> filter on the "To:" field.
>
> In getting Dialog to filter/move messages the same way I have to account
> for the fact that different mailers will put a different number of spaces
> between "To:" and "list@fake.com". Some of them will make the header "To:
> <list@fake.com>".
You could either use a filter like
!move(List Folder) Header {^to: {1,2}list@fake.com}
which would account for 1 or 2 spaces, or a more general filter such
as
!move(List Folder) Header {^to: [^\n]*list@fake.com}
which would hit "list@fake.com" anywhere after "To: " but still be
contained to the To: header by not allowing a new line before
"list@fake.com" is matched. If a new line *were* to be allowed then
the main string that you're filtering on ("list@fake.com") could be
matched in any of the following headers that Dialog's "Header" variable
holds.
--
Rick
Technical Details
Message-ID:
<p3twuofc416i$.mv226hqfxzy9$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.theplanet.net!not-for-mailReferences:
<aq6ojm$j99$1@bob.news.rcn.net> <1x3erda0iaepw.is6oiwfsaieb.dlg@40tude.net> <19fc58coybbts.dlg@tarkus.karnevil9.com> <aqbi3i.1mo.1@quant.anchedo.net> <15c4x22qiu44p.dlg@tarkus.karnevil9.com> <1i77gy2lx7qot.dlg@nhoffmann.dialin.t-online.de> <1hmczxahzggvj.gask946ldqj8.dlg@40tude.net> <1cyq9gpwt567m$.dlg@40tude.com> <py4vtvmxcvcp$.1rdb6tscdkuo8$.dlg@40tude.net> <l2gqgp8q04o.dlg@nhoffmann.dialin.t-online.de> <zguynowcsvk9.1i0u8ii1u865s.dlg@40tude.net> <1em8c2ofvrzz0$.dlg@tarkus.karnevil9.com> <1hr2wchu6xbl3.19727ot9l03ea.dlg@40tude.net> <1cket892sxvju$.dlg@tarkus.karnevil9.com> <zest2o1omo1.1qndcxhtwvzoy.dlg@40tude.net>Show Full Headers
Complete Article Headers
Message-ID: <p3twuofc416i$.mv226hqfxzy9$.dlg@40tude.net> Subject: Re: [Dialog] Filtering on remailer Date: Sat, 9 Nov 2002 13:26:32 +0000 From: RickM <msuser1@mail.com> References: <aq6ojm$j99$1@bob.news.rcn.net> <1x3erda0iaepw.is6oiwfsaieb.dlg@40tude.net> <19fc58coybbts.dlg@tarkus.karnevil9.com> <aqbi3i.1mo.1@quant.anchedo.net> <15c4x22qiu44p.dlg@tarkus.karnevil9.com> <1i77gy2lx7qot.dlg@nhoffmann.dialin.t-online.de> <1hmczxahzggvj.gask946ldqj8.dlg@40tude.net> <1cyq9gpwt567m$.dlg@40tude.com> <py4vtvmxcvcp$.1rdb6tscdkuo8$.dlg@40tude.net> <l2gqgp8q04o.dlg@nhoffmann.dialin.t-online.de> <zguynowcsvk9.1i0u8ii1u865s.dlg@40tude.net> <1em8c2ofvrzz0$.dlg@tarkus.karnevil9.com> <1hr2wchu6xbl3.19727ot9l03ea.dlg@40tude.net> <1cket892sxvju$.dlg@tarkus.karnevil9.com> <zest2o1omo1.1qndcxhtwvzoy.dlg@40tude.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.theplanet.net!not-for-mail Newsgroups: news.software.readers Lines: 46 NNTP-Posting-Host: 62.25.173.19 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: news5.svr.pol.co.uk 1036848462 31193 62.25.173.19 (9 Nov 2002 13:27:42 GMT) NNTP-Posting-Date: 9 Nov 2002 13:27:42 GMT X-Complaints-To: abuse@theplanet.net User-Agent: 40tude_Dialog/2.0.2.1