[imp] Filtering capabilities for IMP ...

Rémi Cohen-Scali Remi.Cohen-Scali@France.Sun.COM
Fri, 21 Dec 2001 13:17:53 +0100


Jan Schneider wrote:

 >Zitat von Rémi Cohen-Scali <Remi@Cohen-Scali.com>:
 >
 >>Hello
 >>
 >>A few days ago I post on IMP about filtering capabilities, requesting a
 >>
 >>feature for importing filter files. This feature was dependant on the
 >>ability for IMP to manage higher filter semantic (in particular the way
 >>
 >>to handle a AND operation between rules).
 >>I made some changes to the way IMP support filtering. The actual support
 >>
 >>I have is close to the mozilla semantic but it could be still enhanced
 >>(ex.: support a src mailbox to be able to support Outlook filters
 >>importation).
 >>I post today to let you know about it and to have feedback from you. The
 >>
 >>import/export feature is not yet implemented (only a skeleton exists)
 >>and before going further I need your opinions about UI and design.
 >>Could a few of you have a look at it ?
 >>For now I can provide you with tarballs of some hacked horde & imp. The
 >>
 >>final post will be a patch against CVS head, but for now, it is a work
 >>in progress... Some bug perhaps still remains ... needs some cleanup ...
 >>
 >>but the basics should work and should give you an outline of what I
 >>propose.
 >>
 >>Thanks for your help.
 >>
 >>tarballs:
 >>http://www.rcsnet.net/pub/Horde/horde-new_filters.tar.gz
 >>http://www.rcsnet.net/pub/Horde/imp-new_filters.tar.gz
 >>or ftp
 >>ftp://ftp.rcsnet.net/pub/Horde/horde-new_filters.tar.gz
 >>ftp://ftp.rcsnet.net/pub/Horde/imp-new_filters.tar.gz
 >>
 >>(they were based on a last week cvs head, and I use php 4.2.0 --
 >>php4-200112071800 -- as an apache module)
 >>
 >
 >It would be easier for us if you could provide patches.
 >
 >Max, did you already have a chance to take a look at it?
 >
Yes, I know. Sorry for it
I'am in the process of providing a patch and actually I already have one.

     http://www.rcsnet.net/pub/Horde/imp-filters.patch
(the patch is too big to be posted to the list)

Some work still need to be done. The import/export design is a first
shot and need to be rewritten when I'll have a look at outlook filter
file layout.
The filtering classes still need tests against Courier-Imap/wu-imap
servers (make heavy use of search capabilities).
These classes only have delete/move actions, but I planned to also add
some flagging capabilities.
I will write a little paper (a mail :-) on the design I implement, as
soon as I'll have time for it.
Nevertheless the patch will give you an overview of what I'am trying to do.


 >
 >
 >Jan.
 >
 >::::::::::::::::::::::::::::::::::::::::
 >AMMMa AG - discover your knowledge
 >:::::::::::::::::::::::::::
 >Detmolder Str. 25-33 :: D-33604 Bielefeld
 >fon +49.521.96878-0 :: fax  +49.521.96878-20
 >http://www.ammma.de
 >::::::::::::::::::::::::::::::::::::::::::::::
 >


-- 
                                      Remi Cohen-Scali
    _/_/_/   _/    _/  _/      /      Development engineer
    _/      _/    _/  _/_/   _/       International Center for Network Computing
   _/_/_/  _/    _/  _/  _/ _/        Network Service Provider Division
      _/  _/    _/  _/   _/_/         Phone:     +33-139-447-509  x44509
_/_/_/   _/_/_/   _/     _/          E-mails: Remi.Cohen-Scali@Sun.COM
M  I  C  R  O  S  Y  S  T  E  M  S            Remi@Cohen-Scali.COM
                                      WAPmail: Remi.CohenScali@Orange.FR






>From accdias@sst.com.br Date: 21 Dec 2001 10:24:04 -0200
Return-Path: <accdias@sst.com.br>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 80408 invoked from network); 21 Dec 2001 12:27:19 -0000
Received: from a.mx.sst.com.br (qmailr@200.223.199.3)
  by clark.horde.org with SMTP; 21 Dec 2001 12:27:19 -0000
Received: (qmail 10701 invoked from network); 21 Dec 2001 12:27:00 -0000
Received: from storm.sst.com.br (none@200.223.199.5)
  by a.mx.sst.com.br with SMTP; 21 Dec 2001 12:27:00 -0000
From: Antonio Dias <accdias@sst.com.br>
To: imp@lists.horde.org
In-Reply-To: <1008934053.3c231ca546914@jan.dip.ammma.net>
References: <1008876141.6415.4.camel@storm>
	<1008880514.3c224b8239475@linux.wg.de> <1008904893.6758.5.camel@storm> 
	<1008934053.3c231ca546914@jan.dip.ammma.net>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Evolution/1.0 (Preview Release)
Date: 21 Dec 2001 10:24:04 -0200
Message-Id: <1008937448.7250.2.camel@storm>
Mime-Version: 1.0
Subject: Re: [imp] Language selection from browser setting

On Fri, 2001-12-21 at 09:27, Jan Schneider wrote:
> I changed the _map() method to return the translated locale instead what 
> the browser sent if it can't find a valid mapping, e.g. pt_BR instead of pt-
> BR. Try if it works now.

Thanks. That fix the problem and now it is working like a charm. 

Another way to achieve the correct result (for pt-BR at least) is add an
entry for pt-BR in the aliases lists in horde/conf/lang.php. I did 

	$nls['aliases']['pt'] = 'pt_BR';

And _map() returned the correct value.

--
Antonio Dias