Re: [Evolution] possible bug in mail filtering



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 
"tipsinposta ziobudda net" but don't work. the filteris take Mailinglist
that contain tipsinposta ziobudda net, this is the full header of an
email not properly filtered



Return-Path: <tipsinposta-admin lists ziobudda net>
Received: from smtp4.libero.it (193.70.192.54) by ims7a.libero.it
(6.5.025)
        id 3D18A886003F1719 for alkex inwind it; 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 alkex inwind it; 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: ziobudda net-tipsinposta ziobudda net
Received: (qmail 22354 invoked by uid 0); 6 Jul 2002 22:05:01 -0000
Message-ID: <20020706220501 22353 qmail main ziobudda net>
To: tipsinposta ziobudda net
From: Tips In Posta <tipsinposta ziobudda net>
Subject: [Tipsinposta] Tips del giorno 07/07/2002
Sender: tipsinposta-admin lists ziobudda net
Errors-To: tipsinposta-admin lists ziobudda net
X-BeenThere: tipsinposta lists ziobudda net
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:tipsinposta-request lists ziobudda net?subject=help>
List-Post: <mailto:tipsinposta lists ziobudda net>
List-Subscribe:
<http://lists.ziobudda.net/mailman/listinfo/tipsinposta>,
        <mailto:tipsinposta-request lists ziobudda net?subject=subscribe>
List-Id: <tipsinposta.lists.ziobudda.net>
List-Unsubscribe:
<http://lists.ziobudda.net/mailman/listinfo/tipsinposta>,
        <mailto:tipsinposta-request lists ziobudda net?subject=unsubscribe>
List-Archive: <http://lists.ziobudda.net/pipermail/tipsinposta/>
Date: 6 Jul 2002 22:05:01 -0000
X-Evolution-Source: pop://alkex popmail inwind it/inbox
Mime-Version: 1.0


best regards

Alessio


_______________________________________________
evolution maillist  -  evolution ximian com
http://lists.ximian.com/mailman/listinfo/evolution
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com


_______________________________________________
evolution maillist  -  evolution ximian com
http://lists.ximian.com/mailman/listinfo/evolution





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]