/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/smtp_connection.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:
23
23
import smtplib
24
24
import socket
25
25
 
26
 
from bzrlib import (
 
26
from breezy import (
27
27
    config,
28
28
    osutils,
29
29
    )
30
 
from bzrlib.errors import (
 
30
from breezy.errors import (
31
31
    NoDestinationAddress,
32
32
    SMTPError,
33
33
    DefaultSMTPConnectionRefused,
52
52
class SMTPConnection(object):
53
53
    """Connect to an SMTP server and send an email.
54
54
 
55
 
    This is a gateway between bzrlib.config.Config and smtplib.SMTP. It
 
55
    This is a gateway between breezy.config.Config and smtplib.SMTP. It
56
56
    understands the basic bzr SMTP configuration information: smtp_server,
57
57
    smtp_username, and smtp_password.
58
58
    """
147
147
        """Get the origin and destination addresses of a message.
148
148
 
149
149
        :param message: A message object supporting get() to access its
150
 
            headers, like email.Message or bzrlib.email_message.EmailMessage.
 
150
            headers, like email.Message or breezy.email_message.EmailMessage.
151
151
        :return: A pair (from_email, to_emails), where from_email is the email
152
152
            address in the From header, and to_emails a list of all the
153
153
            addresses in the To, Cc, and Bcc headers.