if (!saveMessageAsDraft($send_to, $send_to_cc, $send_to_bcc, $subject, $body, $reply_id)) {
showInputForm();
exit();
- }
- else {
+ } else {
$draft_message = _("Draft Email Saved");
/* If this is a resumed draft, then delete the original */
if(isset($delete_draft)) {
Header("Location: delete_message.php?mailbox=$draft_folder".
"&message=$delete_draft&sort=$sort&startMessage=1");
exit();
- }
- else {
+ } else {
Header("Location: right_main.php?mailbox=$draft_folder&sort=$sort".
"&startMessage=1¬e=$draft_message");
exit();
}
if (strlen($line) <= $editor_size + 1) {
$newBody .= $line . "\n";
- }
- else {
+ } else {
sqWordWrap($line, $editor_size) . "\n";
$newBody .= $line;
}
if (! isset($mailprio)) {
$Result = sendMessage($send_to, $send_to_cc, $send_to_bcc,
$subject, $body, $reply_id);
- }
- else {
+ } else {
$Result = sendMessage($send_to, $send_to_cc, $send_to_bcc,
$subject, $body, $reply_id, $mailprio);
}
Header("Location: right_main.php?mailbox=$urlMailbox&sort=$sort".
"&startMessage=1");
- }
- else {
+ } else {
/*
*$imapConnection = sqimap_login($username, $key, $imapServerAddress,
* $imapPort, 0);
}
showInputForm();
-}
-else {
+} else {
/*
* This handles the default case as well as the error case
* (they had the same code) --> if (isset($smtpErrors))
mime_fetch_body($imapConnection, $id, 1),
$message->header->encoding);
}
- }
- else {
+ } else {
$body = '';
}
if ($reply_id) {
if (ereg('^[ >]+', $body_ary[$i])) {
$body_ary[$i] = '>' . $body_ary[$i];
- }
- else {
+ } else {
$body_ary[$i] = '> ' . $body_ary[$i];
}
}
if (isset($draft_id)) {
$id = $draft_id;
- }
- else {
+ } else {
$id = $forward_id;
}
$attachments[] = $newAttachment;
}
- }
- else {
+ } else {
for ($i = 0; $i < count($message->entities); $i++) {
getAttachments($message->entities[$i]);
}
}
echo ' <INPUT TYPE=text NAME=subject SIZE=60 VALUE="' .
htmlspecialchars($forward_subj) . '">';
- }
- else {
+ } else {
echo ' <INPUT TYPE=text NAME=subject SIZE=60 VALUE="' .
htmlspecialchars($subject) . '">';
}
echo " <input type=submit name=\"html_addr_search\" value=\"".
_("Addresses")."\">";
echo " </NOSCRIPT>\n";
- }
- else {
+ } else {
echo " <input type=submit name=\"html_addr_search\" value=\"".
_("Addresses")."\">";
}
$orig_from = trim(substr($orig_from, 0, strpos($orig_from, '<')));
$orig_from = str_replace('"', '', $orig_from);
$orig_from = str_replace("'", '', $orig_from);
- }
- else {
+ } else {
$end_parpos = strrpos($orig_from, ')');
$end_parpos -= ($end_parpos === false ? $end_parpos : $parpos + 1);
$orig_from = trim(substr($orig_from, $parpos + 1, $end_parpos));