$use_signature, $composesession, $data_dir, $username,
$username, $key, $imapServerAddress, $imapPort, $compose_messages,
$composeMessage;
- global $languages, $squirrelmail_language;
+ global $languages, $squirrelmail_language;
$send_to = $send_to_cc = $send_to_bcc = $subject = $identity = '';
$mailprio = 3;
$send_to_bcc = decodeHeader($orig_header->getAddr_s('bcc'),false,true);
$subject = decodeHeader($orig_header->subject,false,true);
// /* remember the references and in-reply-to headers in case of an reply */
-// $composeMessage->rfc822_header->more_headers['References'] = $orig_header->references;
-// $composeMessage->rfc822_header->more_headers['In-Reply-To'] = $orig_header->in_reply_to;
+ $composeMessage->rfc822_header->more_headers['References'] = $orig_header->references;
+ $composeMessage->rfc822_header->more_headers['In-Reply-To'] = $orig_header->in_reply_to;
$body_ary = explode("\n", $body);
$cnt = count($body_ary) ;
$body = '';
case ('forward'):
$send_to = '';
$subject = decodeHeader($orig_header->subject,false,true);
- if ((substr(strtolower($subject), 0, 4) != 'fwd:') &&
+ if ((substr(strtolower($subject), 0, 4) != 'fwd:') &&
(substr(strtolower($subject), 0, 5) != '[fwd:') &&
(substr(strtolower($subject), 0, 6) != '[ fwd:')) {
$subject = '[Fwd: ' . $subject . ']';
echo htmlspecialchars($em) . "\n";
}
}
+ echo '</option>';
for ($i = 1; $i < $idents; $i ++) {
$fn = getPref($data_dir, $username, 'full_name' . $i);
$em = getPref($data_dir, $username, 'email_address' . $i);
$domain, $action, $default_move_to_sent, $move_to_sent;
global $imapServerAddress, $imapPort, $sent_folder, $key;
+ /* some browsers replace <space> by nonbreaking spaces
+ by replacing them back to spaces addressparsing works */
+ /* FIXME: How to handle in case of other charsets where "\240"
+ is not a non breaking space ??? */
+
+ $send_to = str_replace("\240",' ',$send_to);
+ $send_to_cc = str_replace("\240",' ',$send_to_cc);
+ $send_to_bcc = str_replace("\240",' ',$send_to_bcc);
+
$rfc822_header = $composeMessage->rfc822_header;
$abook = addressbook_init(false, true);
} else {
$rfc822_header->encoding = '8bit';
}
- }
- if ($default_charset) {
- $content_type->properties['charset']=$default_charset;
- }
-
+ if ($default_charset) {
+ $content_type->properties['charset']=$default_charset;
+ }
+ }
$rfc822_header->content_type = $content_type;
$composeMessage->rfc822_header = $rfc822_header;