| 1 | 26a27 |
|---|
| 2 | > $content_transfer_encoding = ''; |
|---|
| 3 | 29,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'); |
|---|
| 8 | 42a43,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 | > } |
|---|
| 15 | 59c65 |
|---|
| 16 | < if (preg_match('/From: /', $line) | preg_match('Reply-To: /', $line)) { |
|---|
| 17 | --- |
|---|
| 18 | > if (preg_match('/From: /', $line) | preg_match('/Reply-To: /', $line)) { |
|---|
| 19 | 113a120,124 |
|---|
| 20 | > |
|---|
| 21 | > if (stripos($content_transfer_encoding, "quoted-printable") !== false) { |
|---|
| 22 | > $content = quoted_printable_decode($content); |
|---|
| 23 | > } |
|---|
| 24 | > |
|---|
| 25 | 118c129 |
|---|
| 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"; |
|---|
| 29 | 164c175 |
|---|
| 30 | < ?> |
|---|
| 31 | \ No newline at end of file |
|---|
| 32 | --- |
|---|
| 33 | > ?> |
|---|