# HG changeset patch
# User Alex Popov <
apopov@jibc.ca>
# Date 1210719336 25200
# Node ID 589df51973a463109afaf131aa424a573a2577a9
# Parent 7695f01a730a76df0eade5e535beb3db190299d2
Applied changes to workaround quoted-printable bug in Outlook (RT>406). To activate apply the patch and add to your conf/local.php: $conf['outlook_workaround'] = 1;
diff -r 7695f01a730a -r 589df51973a4 inc/mail.php
--- a/inc/mail.php Tue May 13 15:25:46 2008 -0700
+++ b/inc/mail.php Tue May 13 15:55:36 2008 -0700
@@ -243,9 +243,17 @@ function mail_quotedprintable_encode($sT
// at the very first character of the line
// and after soft linebreaks, as well,
// but this wouldn't be caught by such an easy RegExp
- if($maxlen){
- preg_match_all( '/.{1,'.($maxlen - 2).'}([^=]{0,2})?/', $sLine, $aMatch );
- $sLine = implode( '=' . MAILHEADER_EOL, $aMatch[0] ); // add soft crlf's
+
+ // Outlook quoted-printable encoding workaround
+ // add to conf/local.php
+ // $conf['outlook_workaround'] = 1;
+
+ global $conf; // needed to access $conf['variables']
+ //msg(htmlspecialchars("Debug:[" . $conf['outlook_workaround'] . "]"),1);
+
+ if($maxlen && !$conf['outlook_workaround']){
+ preg_match_all( '/.{1,'.($maxlen - 2).'}([^=]{0,2})?/', $sLine, $aMatch );
+ $sLine = implode( '=' . MAILHEADER_EOL, $aMatch[0] ); // add soft crlf's
}
}