On 14-10-2014, at 14h 18'11", Ionel Mugurel Ciobîcă wrote about "[rlug] perl, 
fetchmail, gmail"
> Ridic e-mailul de la google cu fetchmail. Cind este e-mail am erorile
> astea:
> 
> =============== cut here ===================
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 668.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 671.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 674.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 677.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 680.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 683.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 686.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 689.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 692.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in numeric 
> eq (==) at /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 695.
> oct 14 14:05:03.171 [14198] warn: Use of uninitialized value $type in 
> concatenation (.) or string at 
> /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 699.
> oct 14 14:05:03.171 [14198] warn: config: unknown conf type ! at 
> /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm line 699.  
> =============== cut here ===================
> 
> Nu am modificat /usr/share/perl5/Mail/SpamAssassin/Conf/Parser.pm (nu
> stiu/inteleg perl), iata liniile de care se plinge fetchmail:
> 
> 668 |  if ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_STRING) {
> 671 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_BOOL) {
> 674 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_NUMERIC) {
> 677 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_HASH_KEY_VALUE) {
> 680 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST) {
> 683 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_TEMPLATE) {
> 686 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_NOARGS) {
> 689 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_STRINGLIST) {
> 692 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_IPADDRLIST) {
> 695 |  elsif ($type == $Mail::SpamAssassin::Conf::CONF_TYPE_DURATION) {
> 
> 
> Ce vrea de fapt? E-mailul se descarca bine mersi, dar nu inteleg de ce
> atita amar de erori/avertismente... Trebuie/Pot sa fac ceva sa scap de
> ele (reparind ce este defect)?
> 

In fisierul $HOME/.spamassassin/user_prefs a trebuit sa inlocuiesc
required_hits cu required_score. Undeva intre versiuni au modificat
cuvintul cheie... Curios este ca imi dadea eroare altundeva...

Multumesc tuturor.

Mugurel


P.S. In
https://spamassassin.apache.org/full/3.2.x/doc/Mail_SpamAssassin_Conf.html
scrie ca:

required_score n.nn (default: 5)
  [...]. This option was previously known as required_hits and that
name is still accepted, but is deprecated. 

Banuiesc ca intre timp nu mai este acceptat vechiul cuvint cheie.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui