return $data;
}
+ // Searches for the next position in a string minus white space
+ function next_pos_minus_white ($haystack, $pos) {
+ while (substr($haystack, $pos, 1) == " " ||
+ substr($haystack, $pos, 1) == "\t" ||
+ substr($haystack, $pos, 1) == "\n" ||
+ substr($haystack, $pos, 1) == "\r") {
+ if ($pos >= strlen($haystack))
+ return -1;
+ $pos++;
+ }
+ return $pos;
+ }
+
// Wraps text at $wrap characters
function wordWrap($passed, $wrap) {
$passed = str_replace(">", ">", $passed);
$text = str_replace(" ", "", $text);
$text = str_replace(",", ";", $text);
$array = explode(";", $text);
+ for ($i = 0; $i < count ($array); $i++) {
+ $array[$i] = eregi_replace ("^.*\<", "", $array[$i]);
+ $array[$i] = eregi_replace ("\>.*$", "", $array[$i]);
+ }
return $array;
}
function translateText($body, $wrap_at, $charset) {
include ("../functions/url_parser.php");
/** Add any parsing you want to in here */
- $body = trim($body);
$body_ary = explode("\n", $body);
for ($i = 0; $i < count($body_ary); $i++) {
}
/* SquirrelMail version number -- DO NOT CHANGE */
- $version = "0.4pre1";
+ $version = "0.5pre1";
function find_mailbox_name ($mailbox) {