Changeset 2642

Show
Ignore:
Timestamp:
02/03/06 14:32:40 (18 years ago)
Author:
jerome
Message:

Fixed encoding for subject header

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2636 r2642  
    3939import smtplib 
    4040from email.MIMEText import MIMEText 
     41from email.Header import Header 
    4142 
    4243from pykota.tool import PyKotaTool, PyKotaToolError, crashed 
     
    828829                    try : 
    829830                        msg = MIMEText(fullmessage, _charset=self.charset) 
    830                         msg["Subject"] = _("Print Quota") # TODO : use correct encoding for Subject header 
     831                        msg["Subject"] = str(Header(_("Print Quota"), charset=self.charset)) 
    831832                        msg["From"] = adminmail 
    832833                        msg["To"] = usermail