Changeset 3300 for pykota

Show
Ignore:
Timestamp:
01/27/08 00:16:50 (16 years ago)
Author:
jerome
Message:

Ensures email headers will be ok.

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3299 r3300  
    946946                    try : 
    947947                        msg = MIMEText(fullmessage, _charset=self.charset) 
    948                         msg["Subject"] = Header(_("Print Quota"), charset=self.charset) 
     948                        msg["Subject"] = Header(_("Print Quota"), charset=self.charset, errors="replace") 
    949949                        msg["From"] = adminmail 
    950950                        if mailto in ("BOTH", "USER") : 
  • pykota/trunk/pykota/tool.py

    r3298 r3300  
    247247                msg = MIMEText(fullmessage, _charset=self.charset) 
    248248                msg["Subject"] = Header("PyKota v%s crash traceback !" \ 
    249                                         % __version__, charset=self.charset) 
     249                                        % __version__, charset=self.charset, errors="replace") 
    250250                msg["From"] = admin 
    251251                msg["To"] = crashrecipient