Commit Graph

18 Commits

Author SHA1 Message Date
Julien Enselme
6973128eac Correct auth without password or username.
If no username is set, returns an empty string. So the test `username is
not None` is always True. Idem for password. This can lead to
authentication problems. This commit fixes the test to `if username and
password` as it was in the previous version.
2015-03-07 16:00:28 +01:00
Martin Zimmermann
630e76f66c Merge branch 'legacy/0.9'
Conflicts:
	CHANGES.rst
	isso/ext/notifications.py
	isso/utils/http.py
	setup.py
2015-03-04 22:13:03 +01:00
Martin Zimmermann
f5566c1325 encode username/password in SMTP auth only for Python 2, fix #146 2015-03-04 21:44:39 +01:00
Martin Zimmermann
aa64b27684 Python 2.7.9 didn't get the context=ssl... backport unfortunately 2015-02-24 20:56:20 +01:00
Martin Zimmermann
f47df75422 use system's CA certificates for Python 2.7.9 or higher to verify TLS connection 2014-12-25 22:49:28 +01:00
Martin Zimmermann
9c2a48b388 Merge branch 'legacy/0.9'
Conflicts:
	CHANGES.rst
	setup.py
2014-09-25 13:39:47 +02:00
Martin Zimmermann
6a3a9ea114 SMTP authentication uses bytes, not unicode, fixes #126
Encode configuration variables as ascii, ignoring non-ascii characters
(Python's smtplib is not yet able to support the UTF8SMTP).
2014-09-25 13:35:39 +02:00
Martin Zimmermann
f489ae63d6 Python3.4 now uses system's CA to connect to SMTP via TLS 2014-06-16 19:34:59 +02:00
Martin Zimmermann
e6fdfb03eb do not limit From: field to email address-only, closes #87
You may now set a full From header, e.g.:

    [smtp]
    from = Foo Bar <spam@local>

If not, the old name "Ich schrei sonst!" is used.
2014-05-15 10:59:39 +02:00
Martin Zimmermann
5c91a84951 fix uWSGI spooling for Python3 2014-05-15 10:41:33 +02:00
Martin Zimmermann
3b248b293f set SMTP timeout to 10 seconds and make it configurable, ref 9a735e8 2014-03-04 09:47:54 +01:00
Martin Zimmermann
9a735e8eac initial SMTP connection now timeouts after 5 seconds, closes #70 2014-03-03 23:42:35 +01:00
Chimo
658e065f23 Adds STARTTLS support to SMTP notifications 2013-12-19 23:36:06 -05:00
Martin Zimmermann
fc984bb656 add Date header, close #42 2013-12-07 13:17:56 +01:00
Martin Zimmermann
ce950259b4 show traceback when smtp connection failed 2013-11-25 17:02:04 +01:00
Martin Zimmermann
63a7df1099 translate deletion and activation links 2013-11-21 10:17:29 +01:00
Martin Zimmermann
17aa3e6fc5 use english text for mail notifications 2013-11-17 15:44:40 +01:00
Martin Zimmermann
6e85c54a2e refactor views and introduce an API for notifications
Keep Isso modular, not monolithic. Make it easy to integrate a
web interface or add XMPP notifications.

This refactorization includes minor bugfixes and changes:

* CORS middleware did not work properly due to wrong unit tests
* more type checks on JSON input
* new detection for origin and public url, closes #28
* new activation and delete url (no redirect for old urls, but you can
  convert the old urls: copy hash after `/activate/` (or delete) and
  open `/id/<id of comment>/activate/<hash>`
* move crypto.py to utils/

With this commit, SMTP is no longer automatically configured: add
`notify = smtp` to the `[general]` section to use SMTP.
2013-11-11 12:09:19 +01:00