[CalendarServer-changes] [15324] CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/ smtpsender.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 16 13:03:24 PST 2015


Revision: 15324
          http://trac.calendarserver.org//changeset/15324
Author:   sagen at apple.com
Date:     2015-11-16 13:03:24 -0800 (Mon, 16 Nov 2015)
Log Message:
-----------
Post an alert when smtp cert is untrusted

Modified Paths:
--------------
    CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/smtpsender.py

Modified: CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/smtpsender.py
===================================================================
--- CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/smtpsender.py	2015-11-16 20:14:08 UTC (rev 15323)
+++ CalendarServer/trunk/txdav/caldav/datastore/scheduling/imip/smtpsender.py	2015-11-16 21:03:24 UTC (rev 15324)
@@ -59,6 +59,10 @@
                 to=toAddr,
                 err=failure.getErrorMessage(),
             )
+            from OpenSSL.SSL import Error as TLSError
+            if failure.type is TLSError:
+                from calendarserver.tap.util import postAlert
+                postAlert("MailCertificateAlert", 7 * 24 * 60 * 60, [])
             return False
 
         deferred = defer.Deferred()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20151116/249b2bbd/attachment.html>


More information about the calendarserver-changes mailing list