Hi,
I also have this problem, and when starting MailScanner in debug mode, it return this error:
In debug mode the error is : Bad RFC822 field name '' at /usr/lib/perl5/site_perl/5.8.0/Mail/Internet.pm line 130
But, the header "-:" (by reading the rfc822) seems to be compliant. This is the Mail::Header lib which are disagree with that.
I tested parsing a email with the perl lib with the "-:" header and it return the same rfc822 error. I find the origin a the error but I am unable to correct it.
In the Header.pm of the Mailtools libs, the function :
sub _tag_case
{
my $tag = shift;
$tag =~ s/\:$//;join('-',
map { /^[b-df-hj-np-tv-z]+$|^(?:MIME|SWE|SOAP|LDAP)$/i
? uc($_) : ucfirst(lc($_)) }
split('-', $tag));
}When parsing, "-:" headers, it return "", and after when a check is done by : croak( "Bad RFC822 field name '$tag'\n") unless(defined $ctag && $ctag =~ /\A($FIELD_NAME|From )/oi);
the error appear because nothing is not rfc compliant.
About a tips: just comment the 210 & 211 ligne of the Header.pm : croak( "Bad RFC822 field name '$tag'\n") unless(defined $ctag && $ctag =~ /\A($FIELD_NAME|From )/oi);
It is not so really bad, because, if Qmail receive a buggy headers mail, it refuses it so we don't have to really check the rfc. I test it by injecting all my buggy mail, and everything is working fine.
Have a nice day
-- Brian PASSANTE, Tomao groupe KPF
------------------------------------------------------- This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504 _______________________________________________ Opencomputing-openprotect mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opencomputing-openprotect
