Ignore:
Timestamp:
19 Dec 2013, 09:43:34 (11 years ago)
Author:
Henrik Bettermann
Message:

Send cc of all mails to sender.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/smtp.py

    r9306 r10854  
    159159        body_to += '%s, ' % encode_address(email, rcpt_name)
    160160    body = encode_body(body)
    161     body["From"] = encode_address(from_addr, from_name)
     161    body["From"] = body["Cc"] = encode_address(from_addr, from_name)
    162162    body["To"] = body_to.strip(', ')
    163163    body["Subject"] = encode_header_item(subject)
  • main/waeup.kofa/trunk/src/waeup/kofa/tests/test_smtp.py

    r9306 r10854  
    239239             u'msg: Content-Transfer-Encoding: 7bit',
    240240             u'msg: From: A sender <sender@example.com>',
     241             u'msg: Cc: A sender <sender@example.com>',
    241242             u'msg: To: A recipient <recpt@example.com>',
    242243             u'msg: Subject: A subject',
     
    262263             u'msg: Content-Transfer-Encoding: quoted-printable',
    263264             u'msg: From: A sender <sender@example.com>',
     265             u'msg: Cc: A sender <sender@example.com>',
    264266             u'msg: To: A recipient <recpt@example.com>',
    265267             u'msg: Subject: A subject',
     
    285287             u'msg: Content-Transfer-Encoding: quoted-printable',
    286288             u'msg: From: A sender <sender@example.com>',
     289             u'msg: Cc: A sender <sender@example.com>',
    287290             u'msg: To: A recipient <recpt@example.com>',
    288291             u'msg: Subject: A subject',
Note: See TracChangeset for help on using the changeset viewer.