On Mon, 2002-07-08 at 04:33, Jeffrey Stedfast wrote:
> The mailing-list filters are not meant to match on the email address of
> the list, they are meant to match on certain sub-strings of the header
> value as obtained from a regex.

Yeah - to explain.

Every mailing list does its own 'thing' to headers to explain where the
message came from.  Some dont even do explicit things, so we have to
guess it from some conventions used in various places in the headers.

There is no guaranteed reliable way to determine the real mailing list
address from any of the headers.

So instead, we generate a token, namely namepart@hostpart which *should*
generate to the same token for different messages sent to the same list
(it isn't 100% reliable, because it depends on the headers generated by
mailing list and mailing software, but its generally pretty reliable). 
We have a bunch of rules (see below) which are run against the headers
of the message, and as soon as we get a match, that is the token used to
represent that mailing list.

The upshot of this is that if you specify the mailing list address
manually, it isn't very likely to work (it might for some lists), so you
need to base it on an existing message from the list.

The other problem is if we change the order of the mailing list matching
expressions, we change everyones vfolders (since this information is
cached), so its not trivial to make changes to this list (although
adding to it is generally ok).

> Take a look at camel/camel-mime-parser.c for more details.

Its actually camel-mime-utils.c, mail_list_magic[] array.


> Jeff
> 
> On Sun, 2002-07-07 at 10:43, Alessio Dessi wrote:
> > I've created a filter that should take mailing list 
> > "[EMAIL PROTECTED]" but don't work. the filteris take Mailinglist
> > that contain [EMAIL PROTECTED], this is the full header of an
> > email not properly filtered
> > 
> > 
> > 
> > Return-Path: <[EMAIL PROTECTED]>
> > Received: from smtp4.libero.it (193.70.192.54) by ims7a.libero.it
> > (6.5.025)
> >         id 3D18A886003F1719 for [EMAIL PROTECTED]; Sun, 7 Jul 2002
> > 00:08:08 +0200
> > Received: from main.ziobudda.net (62.101.87.4) by smtp4.libero.it
> > (6.5.021)
> >         id 3D00B76A04FA6F25 for [EMAIL PROTECTED]; Sun, 7 Jul 2002
> > 00:07:35 +0200
> > Received: (qmail 23050 invoked from network); 6 Jul 2002 22:06:03 -0000
> > Received: from localhost (HELO main.ziobudda.net) (127.0.0.1) by 0 with
> >         SMTP; 6 Jul 2002 22:06:03 -0000
> > Delivered-To: [EMAIL PROTECTED]
> > Received: (qmail 22354 invoked by uid 0); 6 Jul 2002 22:05:01 -0000
> > Message-ID: <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > From: Tips In Posta <[EMAIL PROTECTED]>
> > Subject: [Tipsinposta] Tips del giorno 07/07/2002
> > Sender: [EMAIL PROTECTED]
> > Errors-To: [EMAIL PROTECTED]
> > X-BeenThere: [EMAIL PROTECTED]
> > X-Mailman-Version: 2.0.11
> > Precedence: bulk
> > List-Help: <mailto:[EMAIL PROTECTED]?subject=help>
> > List-Post: <mailto:[EMAIL PROTECTED]>
> > List-Subscribe:
> > <http://lists.ziobudda.net/mailman/listinfo/tipsinposta>,
> >         <mailto:[EMAIL PROTECTED]?subject=subscribe>
> > List-Id: <tipsinposta.lists.ziobudda.net>
> > List-Unsubscribe:
> > <http://lists.ziobudda.net/mailman/listinfo/tipsinposta>,
> >         <mailto:[EMAIL PROTECTED]?subject=unsubscribe>
> > List-Archive: <http://lists.ziobudda.net/pipermail/tipsinposta/>
> > Date: 6 Jul 2002 22:05:01 -0000
> > X-Evolution-Source: pop:[EMAIL PROTECTED]/inbox
> > Mime-Version: 1.0
> > 
> > 
> > best regards
> > 
> > Alessio
> > 
> > 
> > _______________________________________________
> > evolution maillist  -  [EMAIL PROTECTED]
> > http://lists.ximian.com/mailman/listinfo/evolution
> -- 
> Jeffrey Stedfast
> Evolution Hacker - Ximian, Inc.
> [EMAIL PROTECTED]  - www.ximian.com
> 
> 
> _______________________________________________
> evolution maillist  -  [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/evolution


_______________________________________________
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to