/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/email_message.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    Utils,
27
27
    )
28
28
 
29
 
from brzlib import __version__ as _brzlib_version
30
 
from brzlib.osutils import safe_unicode
31
 
from brzlib.smtp_connection import SMTPConnection
 
29
from breezy import __version__ as _breezy_version
 
30
from breezy.osutils import safe_unicode
 
31
from breezy.smtp_connection import SMTPConnection
32
32
 
33
33
 
34
34
class EmailMessage(object):
71
71
        self._headers['To'] = ', '.join(to_addresses)
72
72
        self._headers['From'] = self.address_to_encoded_header(from_address)
73
73
        self._headers['Subject'] = Header.Header(safe_unicode(subject))
74
 
        self._headers['User-Agent'] = 'Bazaar (%s)' % _brzlib_version
 
74
        self._headers['User-Agent'] = 'Bazaar (%s)' % _breezy_version
75
75
 
76
76
    def add_inline_attachment(self, body, filename=None, mime_subtype='plain'):
77
77
        """Add an inline attachment to the message.