equal
deleted
inserted
replaced
389 |
389 |
390 # store sender and subject |
390 # store sender and subject |
391 sender = msg[r'From'] |
391 sender = msg[r'From'] |
392 subject = msg[r'Subject'] |
392 subject = msg[r'Subject'] |
393 if sender is not None: |
393 if sender is not None: |
394 sender = encoding.strtolocal(sender) |
394 sender = mail.headdecode(sender) |
395 if subject is not None: |
395 if subject is not None: |
396 subject = encoding.strtolocal(subject) |
396 subject = mail.headdecode(subject) |
397 del msg[r'From'], msg[r'Subject'] |
397 del msg[r'From'], msg[r'Subject'] |
398 |
398 |
399 if not msg.is_multipart(): |
399 if not msg.is_multipart(): |
400 # create fresh mime message from scratch |
400 # create fresh mime message from scratch |
401 # (multipart templates must take care of this themselves) |
401 # (multipart templates must take care of this themselves) |