[Mailman-Users] Probable bug in Bouncers/DSN.py

Jim Popovitch jimpop at domainmail.org
Thu May 24 11:40:36 EDT 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello!

Given a bounce msg with a subpart of:


  message/delivery-status:
     Final-Recipient: rfc822;user at domain.tld
     Action: failed
     Status: 5.1.10
     Diagnostic-Code: smtp;550 5.1.10 RESOLVER.ADR.RecipientNotFound; 


and the code beginning at Bouncers/DSN.py:64

            params = []
            foundp = False
            for header
in ('original-recipient', 'final-recipient'):
                for k, v
in msgblock.get_params([], header):
                    if k.lower() ==
'rfc822':
                        foundp = True
                    else:
                        params.append(k)
                if foundp:
     
               # Note that params should already be unquoted.
          
          addrs.extend(params)
                    break


It appears that "params" is never populated and thus the bounce score
is never incremented for the user.   

I was intending to release a patch for this but my dev system is
showing an odd python issue where once "k.lower()" is evaluated the
variable v is no longer available. O.o

- -Jim 
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEPxwe8uYBnqxkbORSJxVetMRaJwUFAlsG3PUACgkQJxVetMRa
JwVnzA/+NJnsWa2bTEo689I7KsoIubwUlf6KPv1jIGU+98gKecOGFOlc9YAx6dU4
TiWPqkLG6oKYZti7Y/kjVxhmxKvj0Pb6xos8uJBqRikDKJQDbZjo+hVY1yR6zAL7
r1NIVc7BKsvTTQ+U4D4k4Y2D1WdOEGIYWdV0ds3SScc2eq6CM2nulI/YM7U32pdi
YB4FTxK51K+8OYK9tprJEtSDgTADPiYjOb/qUTM1Zxnsdx6NK+q6MCTzUFilrgl8
pWOoIrmdrMyytRMgNp40arK8LMbD406P9kmDpuSU9/kPkFE7T98uRuD1II24m7MZ
W8QtSPbmQDBWqKbu3/KmnC8OGiIO05KW9PHwt9fNWmqA/nSRbQ7tKZOkywRZIfQt
6RwJGqZnvRR5qk6ltIRNm/Cq3AQgGHD2m40m9ppSrGaeijtfNWfQnTnDCYB3P6d1
hnAxnDJ8UCxK3v4gQUeOf9xsfCaT5hss+vp6C1nZPfM7jupQWQxA4SjGH77Q47Wd
SkqZvOPZ0lVajBvFKoNlttdrvXjeDBRki1v5hFvuNSHSMBSJ+yySb0FMuC3aw+2y
KKZhKhwYJuoWMHMa6Lmhrtna/x1ywD1xvCg2m0J2mEM3biNFlwIHx7zewYbhn56j
wTtX9Ch8ozdKVGakmybxfo91xkbQvRpROpjwIslRWrbxAgbV6r8=
=z4V/
-----END PGP SIGNATURE-----


More information about the Mailman-Users mailing list