[CalendarServer-changes] [7886] CalendarServer/branches/users/glyph/imip-and-admin-html/ twistedcaldav/mail.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 11 21:37:30 PDT 2011


Revision: 7886
          http://trac.macosforge.org/projects/calendarserver/changeset/7886
Author:   glyph at apple.com
Date:     2011-08-11 21:37:30 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
move header generation out of localization block

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/imip-and-admin-html/twistedcaldav/mail.py

Modified: CalendarServer/branches/users/glyph/imip-and-admin-html/twistedcaldav/mail.py
===================================================================
--- CalendarServer/branches/users/glyph/imip-and-admin-html/twistedcaldav/mail.py	2011-08-12 04:37:19 UTC (rev 7885)
+++ CalendarServer/branches/users/glyph/imip-and-admin-html/twistedcaldav/mail.py	2011-08-12 04:37:30 UTC (rev 7886)
@@ -1193,15 +1193,15 @@
         canceled = (calendar.propertyValue("METHOD") == "CANCEL")
         iconPath = self.getIconPath(details, canceled, language=language)
 
+        msg = MIMEMultipart()
+        msg["From"] = fromAddress
+        msg["Reply-To"] = replyToAddress
+        msg["To"] = toAddress
+        msg["Date"] = rfc822date()
+        msgId = messageid()
+        msg["Message-ID"] = msgId
+
         with translationTo(language):
-            msg = MIMEMultipart()
-            msg["From"] = fromAddress
-            msg["Reply-To"] = replyToAddress
-            msg["To"] = toAddress
-            msg["Date"] = rfc822date()
-            msgId = messageid()
-            msg["Message-ID"] = msgId
-
             if canceled:
                 formatString = _("Event canceled: %(summary)s")
             elif inviteState == "new":
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110811/4ad43f0d/attachment-0001.html>


More information about the calendarserver-changes mailing list