[Tutor] error reporting disreputable

kirk Bailey idiot1@netzero.net
Tue, 22 Jan 2002 14:54:46 -0500


ok, I included code to report errors to the postmaster. Lookee:
 try:
                server.sendmail(from_addr, to_addr, msg)        # 400
send envlope and msg!
        except Exception, e:
                from_addr2="TLpost.py@"+domainname
                to_addr2="postmaster@"+domainname
                msg2="To: "+to_addr2+CRLF  
                msg2=msg2+"From: "+from_addr2+CRLF
                msg2=msg2+"Subject: ERROR REPORT for
list"+listname+CRLF+CRLF
                msg2=msg2+"There was an error when serving list
"+listname+"."+CRLF
                msg2=msg2+"The returned error was:"+CRLF
                msg2=msg2+e+CRLF
                print "POSSIBLE Bad address='"+to_addr+"' ?" # local
console display!
                server.sendmail(from_addr2, to_addr2, msg2)  # send
postmaster notice!

I do NOT get a letter at the postmaster address. I DO get this back to
the SENDER'S address, and it's NOT the message I coded!!! WTF?!?

The original message was received at Tue, 22 Jan 2002 14:51:30 -0500
(EST)
from www.howlermonkey.net [66.13.61.155]

   ----- The following addresses had permanent fatal errors -----
<bozon@noplace.foo>
    (reason: 550 Host unknown)

   ----- Transcript of session follows -----
550 5.1.2 <bozon@noplace.foo>... Host unknown (Name server:
noplace.foo: host not found)






-- 
 

 -Respectfully,
              -Kirk D Bailey 
               Consulting Loose Cannon

end



  www.howlermonkey.net                 highprimate@howlermonkey.net
  www.sacredelectron.org                         idiot1@netzero.net
  www.tinylist.org                              grumpy@tinylist.org
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97