Revision: 1818
http://mrbs.svn.sourceforge.net/mrbs/?rev=1818&view=rev
Author: cimorrison
Date: 2011-04-20 14:33:58 +0000 (Wed, 20 Apr 2011)
Log Message:
-----------
Changed the encoding of the text calendar to base64 so that Postfix will
preserve CRLF sequences (which are mandatory terminators according to RFC
5545). Thanks to Thomas Bleher for the patch.
Modified Paths:
--------------
mrbs/trunk/web/functions_mail.inc
Modified: mrbs/trunk/web/functions_mail.inc
===================================================================
--- mrbs/trunk/web/functions_mail.inc 2011-04-15 17:55:40 UTC (rev 1817)
+++ mrbs/trunk/web/functions_mail.inc 2011-04-20 14:33:58 UTC (rev 1818)
@@ -1087,6 +1087,9 @@
{
// Otherwise we need to carry on and add the text version of the iCalendar
$mime_params['content_type'] = "text/calendar; method=" .
$attachment['method'];
+ // The encoding needs to be base64, because Postfix will otherwise not
preserve
+ // CRLF sequences and these are mandatory terminators in the iCalendar file
+ $mime_params['encoding'] = "base64";
$mime_inner->addSubPart($attachment['content'], $mime_params);
// and then enclose the inner section in a multipart/mixed outer section.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits