[Mimedefang] Anomy 1.54 w/ MD 2.21

David F. Skoll dfs at roaringpenguin.com
Tue Sep 24 09:44:01 EDT 2002


On Mon, 23 Sep 2002, Aaron Paetznick wrote:

> ####<hack>####
>      while (<IN>) {
>          $t = $l . $_ if defined $l;
>          $l = $cleaner->clean(\$t);
>          print OUT $t;
>      }
> ####</hack>####

Does that work properly?  I'd have thought it should be:

    while (<IN>) {
	if (defined($l)) {
	    $t = $l . $_;
	} else {
	    $t = $_;
	}
	$l = $cleaner->clean(\$t);
	print OUT $t;
    }

Otherwise, we could discard input.

Regards,

David.




More information about the MIMEDefang mailing list