You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert Schetterer <rs...@sys4.de> on 2016/02/26 08:59:27 UTC

PDFInfo.pm line 418

Hi ,does anyone know something about this ?


Use of uninitialized value in lc at
/usr/share/perl5/Mail/SpamAssassin/Plugin/PDFInfo.pm line 418


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Re: PDFInfo.pm line 418

Posted by Robert Schetterer <rs...@sys4.de>.
Am 26.02.2016 um 09:24 schrieb Benning, Markus:
> On 2016-02-26 08:59, Robert Schetterer wrote:
>> Hi ,does anyone know something about this ?
>>
>> Use of uninitialized value in lc at
>> /usr/share/perl5/Mail/SpamAssassin/Plugin/PDFInfo.pm line 418
> 
> Thats a warning of the perl interpreter because an undefined value is
> passed to lc().
> 
> In this case:
> 
>  my $cte = lc $p->get_header('content-transfer-encoding') || '';
> 
> The attachment may not have a header with that name.
> 
> Its a bug. It must be written like this:
> 
>  my $cte = lc( $p->get_header('content-transfer-encoding') || '' );
> 
> You may fill in a bug report.
> 
> Good luck.
> I filled a bug yesterday and there are over 700 other bugs rotting
> around there.
> 
> Markus
> 

thx

opened a bug

https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7303

and will try


Best Regards
MfG Robert Schetterer

-- 
[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Marc Schiffbauer
Aufsichtsratsvorsitzender: Florian Kirstein

Re: PDFInfo.pm line 418

Posted by "Benning, Markus" <ic...@markusbenning.de>.
On 2016-02-26 08:59, Robert Schetterer wrote:
> Hi ,does anyone know something about this ?
> 
> Use of uninitialized value in lc at
> /usr/share/perl5/Mail/SpamAssassin/Plugin/PDFInfo.pm line 418

Thats a warning of the perl interpreter because an undefined value is 
passed to lc().

In this case:

  my $cte = lc $p->get_header('content-transfer-encoding') || '';

The attachment may not have a header with that name.

Its a bug. It must be written like this:

  my $cte = lc( $p->get_header('content-transfer-encoding') || '' );

You may fill in a bug report.

Good luck.
I filled a bug yesterday and there are over 700 other bugs rotting 
around there.

Markus

-- 
https://markusbenning.de/