Make WordPress Core

Ticket #4318: wp-mail.diff

File wp-mail.diff, 1.5 KB (added by rob1n, 19 years ago)
Line 
126a27
2> $content_transfer_encoding = '';
329,30c30
4< $dmonths = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
5< 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
6---
7> $dmonths = array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
842a43,48
9> if (preg_match('/Content-Transfer-Encoding: /i', $line)) {
10> $content_transfer_encoding = trim($line);
11> $content_transfer_encoding = substr($content_transfer_encoding, 27, strlen($content_transfer_encoding)-14);
12> $content_transfer_encoding = explode(';', $content_transfer_encoding);
13> $content_transfer_encoding = $content_transfer_encoding[0];
14> }
1559c65
16< if (preg_match('/From: /', $line) | preg_match('Reply-To: /', $line)) {
17---
18> if (preg_match('/From: /', $line) | preg_match('/Reply-To: /', $line)) {
19113a120,124
20>
21> if (stripos($content_transfer_encoding, "quoted-printable") !== false) {
22> $content = quoted_printable_decode($content);
23> }
24>
25118c129
26< echo "<p><b>Content-type:</b> $content_type, <b>boundary:</b> $boundary</p>\n";
27---
28> echo "<p><b>Content-type:</b> $content_type, <b>Content-Transfer-Encoding:</b> $content_transfer_encoding, <b>boundary:</b> $boundary</p>\n";
29164c175
30< ?>
31\ No newline at end of file
32---
33> ?>