/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 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    Utils,
27
27
    )
28
28
 
29
 
from bzrlib import __version__ as _bzrlib_version
30
 
from bzrlib.osutils import safe_unicode
31
 
from bzrlib.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)' % _bzrlib_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.