/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/email_message.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

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 . import __version__ as _breezy_version
 
30
from .osutils import safe_unicode
 
31
from .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.