~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/mail/doc/sending-mail.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-29 05:29:36 UTC
  • mto: This revision was merged to the branch mainline in revision 14606.
  • Revision ID: curtis.hovey@canonical.com-20111229052936-c261pibg1p6ze6m4
Moved canonical.config to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
sendmail automatically adds Return-Path and Errors-To headers to
273
273
provide better bounce handling.
274
274
 
275
 
    >>> from canonical.config import config
 
275
    >>> from lp.services.config import config
276
276
    >>> from_addr, to_add, raw_message = stub.test_emails.pop()
277
277
    >>> sent_msg = email.message_from_string(raw_message)
278
278
    >>> sent_msg['Return-Path'] == config.canonical.bounce_address