mailpost whoes about undefined $_

Julien ÉLIE julien at trigofacile.com
Mon Dec 7 18:30:03 UTC 2009


Hi Harald,

> Use of uninitialized value $_ in pattern match (m//)
> at /usr/lib/news/bin/mailpost line 204, <STDIN> line 2.
>
>      last if defined($_) && /^$/ ;
> -    next if /^$/ ; # Only on first header will this happen.
> +    next unless defined($_) ; # Only on first header will this happen.

Thanks for your patch.  It is indeed better to use the first condition
of the first line.
Just committed.

-- 
Julien ÉLIE

« E Roma nemo te diuidet omen amore. » 




More information about the inn-workers mailing list