Re: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-17 Thread Tomasz Ostrowski
On Mon, 16 Jan 2006, [EMAIL PROTECTED] wrote:

 *** NOTE INCOMPATIBILITY *** filter_begin NOW TAKES ONE ARGUMENT,
  NOT ZERO.  IF YOUR FILTER HAS A
  PROTOTYPE FOR filter_begin, YOU SHOULD
  FIX OR REMOVE THE PROTOTYPE
 
  There'd be nice to have an example here. Not knowing perl very
  much I would not understand Fix or remove the prototype without
  an example from your previous post on this.

 That means that in mimedefang-filter you have a sub function that
 looks like this: sub filter_begin() then you should change that
 to sub filter_begin($) or sub filter_begin

I already know what this means. But it is only because I did read
previous David's message. I'm just saying that this INCOMPATIBILITY
note should be more verbose and give an example for those, who do not
know perl very well and will not understand this.

I'm not very good in english so I'm sorry if I said something wrong
and I was not understandable.

Regards
Tometzky
-- 
...although Eating Honey was a very good thing to do, there was a
moment just before you began to eat it which was better than when you
were...
  Winnie the Pooh
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-17 Thread Bill Maidment

Tomasz Ostrowski wrote:

On Mon, 16 Jan 2006, [EMAIL PROTECTED] wrote:






I already know what this means. But it is only because I did read
previous David's message. I'm just saying that this INCOMPATIBILITY
note should be more verbose and give an example for those, who do not
know perl very well and will not understand this.

I'm not very good in english so I'm sorry if I said something wrong
and I was not understandable.

Regards
Tometzky


I think you were quite clear in what you asked. It's just that some 
people don't know how to read :-)


I wish I could communicate in other languages as well as you.

Cheers
Bill

--
What's the difference between Linux and Windoze?
Linux   - Thousands of programmers are working *WITH*you.
Windoze - Thousands of programmers are working *AGAINST* you.

Web Site http://www.maidment.com.au

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-16 Thread ms

Quoting Tomasz Ostrowski [EMAIL PROTECTED]:


On Wed, 11 Jan 2006, David F. Skoll wrote:


*** NOTE INCOMPATIBILITY *** filter_begin NOW TAKES ONE ARGUMENT,
 NOT ZERO.  IF YOUR FILTER HAS A
 PROTOTYPE FOR filter_begin, YOU SHOULD
 FIX OR REMOVE THE PROTOTYPE


There'd be nice to have an example here. Not knowing perl very much I
would not understand Fix or remove the prototype without an example
from your previous post on this.
That means that in mimedefang-filter you have a sub function called 
filter begin

that looks like this:
sub filter_begin () {

then you should change that to sub filter_begin ($) {
or
sub filter_begin {

AM i right, David ??



Regards
Tometzky
--
...although Eating Honey was a very good thing to do, there was a
moment just before you began to eat it which was better than when you
were...
 Winnie the Pooh
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


RE: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-16 Thread Gary Funck

This is really an academic question, but would it be possible to
scan/compile the mimedefang filter before including and adjust the
prototype declaration and use accordingly?  (This more a Perl question
than a suggestion.)  - Gary


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-16 Thread David F. Skoll
Gary Funck wrote:

 This is really an academic question, but would it be possible to
 scan/compile the mimedefang filter before including and adjust the
 prototype declaration and use accordingly?

It is possible with Perl source filters.

It is not a good idea, though.  Silently hiding bugs by modifying code
at run-time should give you the heebie-jeebies...

Regards,

David.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


RE: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-16 Thread Matthew.van.Eerde
David F. Skoll wrote:
 That's correct.  Damian Conway in Perl Best Practices says Don't
 use Prototypes, so we're gradually moving to the prototypeless
 version. 

I suppose an equivalent method would be to prototype everything with (@)

Too bad, I like the idea of strong prototyping :(

-- 
Matthew.van.Eerde (at) hbinc.com   805.964.4554 x902
Hispanic Business Inc./HireDiversity.com   Software Engineer

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-16 Thread Jan Pieter Cornet
On Mon, Jan 16, 2006 at 04:33:59PM -0500, David F. Skoll wrote:
 Gary Funck wrote:
 
  This is really an academic question, but would it be possible to
  scan/compile the mimedefang filter before including and adjust the
  prototype declaration and use accordingly?
 
 It is possible with Perl source filters.

Nah, you don't need source filters. You can inspect a function's
prototype using the prototype function, after the function is
defined... something like this will probably work (UNTESTED, though)

  my $filter_begin_can_handle_arg;

  require $Filter;
  if ( exists filter_begin and defined(prototype(\filter_begin))
   and prototype(\filter_begin) eq '' )
  {
  $filter_begin_can_handle_arg = 0;
  } else {
  $filter_begin_can_handle_arg = 1;
  }

  # ...

  # call filter_begin:
  $filter_begin_can_handle_arg ? filter_begin($entity) : filter_begin();

 It is not a good idea, though.  Silently hiding bugs by modifying code
 at run-time should give you the heebie-jeebies...

Likewise. I'd suggest you do NOT include the above workaround :) and instead
make people adapt their own source. An example HOWTO would be nice,
though, for the ilperlliterate among us...

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm [EMAIL PROTECTED]
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}-(map{/p|f/i+/f/i}split//,$)+97):qw(m p f)[map{((ord$)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$;$f.eig;# Jan-Pieter Cornet
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] MIMEDefang 2.55-BETA-2 is available

2006-01-11 Thread David F. Skoll
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

MIMEDefang 2.55-BETA-2 is available at
http://www.mimedefang.org/node.php?id=1

Changes since 2.54 are appended.

Regards,

David.


2006-01-11  David F. Skoll  [EMAIL PROTECTED]

* VERSION 2.55-BETA-2 RELEASED

*  mimedefang.pl.in: The filter_begin function is now passed
a single argument ($entity) representing the parsed message.

*** NOTE INCOMPATIBILITY *** filter_begin NOW TAKES ONE ARGUMENT,
 NOT ZERO.  IF YOUR FILTER HAS A
 PROTOTYPE FOR filter_begin, YOU SHOULD
 FIX OR REMOVE THE PROTOTYPE

* mimedefang.c, mimedefang.pl.in: Added new action_insert_header
to prepend headers (rather than appending them).  Only works
properly with Sendmail 8.13; on older versions of Sendmail, falls
back to action_add_header.  Based on patch from Matthew van Eerde.

* mimedefang.pl.in: Added new function md_get_bogus_mx_hosts.
Allows to test for sender domains with bogus MX hosts (such as
hosts that resolve to the loopback or private IP addresses.)

* mimedefang.pl.in: Invoke the fsav virus scanner with the --mime
option.

* mimedefang.pl.in: Correctly interpret kavscanner return code 9
(password-protected ZIP.)

2005-11-17  David F. Skoll  [EMAIL PROTECTED]

* VERSION 2.55-BETA-1 RELEASED

* examples/init-script.in: Fix typo that resulted in the shell
complaining of a syntax error (pointed out by Jason Englander).

* Clean up man pages by removing some obsolete material.

* mimedefang.c: Do NOT strip bare CR characters from e-mails by
default.  The new -c command-line option enables the older behavior.

*** NOTE INCOMPATIBILITY ***  WE NO LONGER STRIP BARE CR's FROM
  MESSAGES BY DEFAULT.  TEST YOUR FILTERS
  CAREFULLY TO MAKE SURE THEY CAN COPE
  WITH THIS, OR USE THE -c FLAG.

* mimedefang.c(rcptto): If you returned ACCEPT_AND_NO_MORE_FILTERING
from filter_recipient, the spool files wouldn't get cleaned up,
eventually clogging the spool directory.  This has been fixed.

* mimedefang.pl.in(interpret_hbedv_code): Fix interpretation of
H+BEDV return codes (pointed out by Henning Schmiedehausen).

2005-11-04  David F. Skoll  [EMAIL PROTECTED]

* VERSION 2.54 RELEASED



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDxX0ewYQuKhJvQuARAlDJAJ4iKTOkic9/qA94bMAt/4wZwxdz6ACdHmjj
KBfmKNRp48y1LGPjdiiT2tg=
=y12A
-END PGP SIGNATURE-
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang