> Subject: [courier-users] Perlfilter working just for 1 message
> Date: Wed, 18 Jun 2003 12:44:58 -0300
> From: Rodrigo Severo <[EMAIL PROTECTED]>
> To: Courier-Users <[EMAIL PROTECTED]>
> 
> Hi,
> 
> I am trying to do a perl filter but it is working just for the first
> message it gets after the filterctl stop/start.
> ...
> See how filterdata() is called for the first message and not for the
> second one? How can it be?
> 
> I am testing it on a Conectiva 9 Linux Workstation with gcc (GCC) 3.2.2,
> Courier 0.42.2 and perl 5.8.0.
> 
> Any help greatly appreciated,
> 
> Rodrigo Severo
  > 
  Hi Rodrigo,
I got the same results creating my first perlfilter.
I found avoiding GLOBAL VARS and cleanup vars will do the trick.
Try to use: 'use var qw(varname);' instead of 'my varname;' for global
vars.
I could not explain why, but try it.
Reread man courier_perlfilter last para.

Wolfgang Kaess


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to