[ckan-changes] [okfn/ckan] 794d61: [#1635] Improve CKAN's SMTP support

GitHub noreply at github.com
Tue Dec 4 15:48:22 UTC 2012


  Branch: refs/heads/1635-feature-email-notifications-for-activity-streams
  Home:   https://github.com/okfn/ckan
  Commit: 794d61bf2159ed07b7075faf126fac3348325c39
      https://github.com/okfn/ckan/commit/794d61bf2159ed07b7075faf126fac3348325c39
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-04 (Tue, 04 Dec 2012)

  Changed paths:
    M ckan/lib/mailer.py

  Log Message:
  -----------
  [#1635] Improve CKAN's SMTP support

Rename config option smtp_server -> smtp.server, add options smtp.starttls,
smtp.user and smtp.password, refactor the email-sending code in
mailer.py to (optionally) support STARTTLS and user and password
authentication. This means CKAN can now send emails using gmail's SMTP
server with a gmail username and password, for example. Sending mail
using a local sendmail process with no STARTTLS, username, or password
should still work as before.


  Commit: 44abd17417429aca106993f78702d601e87c799b
      https://github.com/okfn/ckan/commit/44abd17417429aca106993f78702d601e87c799b
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-04 (Tue, 04 Dec 2012)

  Changed paths:
    M ckan/lib/mailer.py
    M ckan/tests/lib/test_mailer.py
    M test-core.ini

  Log Message:
  -----------
  [#1635] Rename config option ckan.mail_from -> smtp.mail_from

This makes it consistent with the other smtp options it is used with.


  Commit: bb86b7ba5a054a9c87a837f86040d53bc22ef459
      https://github.com/okfn/ckan/commit/bb86b7ba5a054a9c87a837f86040d53bc22ef459
  Author: Sean Hammond <seanhammond at lavabit.com>
  Date:   2012-12-04 (Tue, 04 Dec 2012)

  Changed paths:
    M ckan/lib/mailer.py
    M ckan/tests/functional/test_user.py
    M ckan/tests/lib/test_mailer.py
    M ckan/tests/misc/test_mock_mail_server.py
    M ckan/tests/mock_mail_server.py
    M test-core.ini

  Log Message:
  -----------
  [#1635] Rename test_smtp_server -> smtp.test_server

Rename config setting test_smtp_server -> smtp.test_server, making it
consistent with the other smtp options it is used with.


Compare: https://github.com/okfn/ckan/compare/7f9c2358bb1e...bb86b7ba5a05


More information about the ckan-changes mailing list