| version 1.1, 2005/06/05 12:14:30 |
version 1.2, 2005/11/07 20:37:49 |
|
|
| <?php
|
<?php
|
| // +-----------------------------------------------------------------------+
|
// +-----------------------------------------------------------------------+
|
| // | Copyright (c) 2002 Richard Heyes |
|
// | Copyright (c) 2002-2003 Richard Heyes |
|
| // | All rights reserved. |
|
// | All rights reserved. |
|
| // | |
|
// | |
|
| // | Redistribution and use in source and binary forms, with or without |
|
// | Redistribution and use in source and binary forms, with or without |
|
| Line 219 class Mail_mimePart { |
|
| Line 219 class Mail_mimePart { |
|
|
|
|
| if (!empty($this->_subparts)) {
|
if (!empty($this->_subparts)) {
|
| srand((double)microtime()*1000000);
|
srand((double)microtime()*1000000);
|
| $boundary = '=_' . md5(uniqid(rand()) . microtime());
|
$boundary = '=_' . md5(rand() . microtime());
|
| $this->_headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF . "\t" . 'boundary="' . $boundary . '"';
|
$this->_headers['Content-Type'] .= ';' . MAIL_MIMEPART_CRLF . "\t" . 'boundary="' . $boundary . '"';
|
|
|
|
| // Add body parts to $subparts
|
// Add body parts to $subparts
|
| Line 328 class Mail_mimePart { |
|
| Line 328 class Mail_mimePart { |
|
| if (($dec == 32) AND ($i == ($linlen - 1))){ // convert space at eol only
|
if (($dec == 32) AND ($i == ($linlen - 1))){ // convert space at eol only
|
| $char = '=20';
|
$char = '=20';
|
|
|
|
| |
} elseif(($dec == 9) AND ($i == ($linlen - 1))) { // convert tab at eol only
|
| |
$char = '=09';
|
| } elseif($dec == 9) {
|
} elseif($dec == 9) {
|
| ; // Do nothing if a tab.
|
; // Do nothing if a tab.
|
| } elseif(($dec == 61) OR ($dec < 32 ) OR ($dec > 126)) {
|
} elseif(($dec == 61) OR ($dec < 32 ) OR ($dec > 126)) {
|