* SquirrelMail version number -- DO NOT CHANGE
*/
global $version;
-$version = '1.2.5';
+$version = '1.2.6 [cvs]';
/**
* If $haystack is a full mailbox name and $needle is the mailbox
* separator character, returns the last part of the mailbox name.
*/
function readShortMailboxName($haystack, $needle) {
+
if ($needle == '') {
- return $haystack;
- }
- $parts = explode($needle, $haystack);
- $elem = array_pop($parts);
- while ($elem == '' && count($parts)) {
- $elem = array_pop($parts);
+ $elem = $haystack;
+ } else {
+ $parts = explode($needle, $haystack);
+ $elem = array_pop($parts);
+ while ($elem == '' && count($parts)) {
+ $elem = array_pop($parts);
+ }
}
- return $elem;
+ return( $elem );
}
-/**
- * If $haystack is a full mailbox name, and $needle is the mailbox
- * separator character, returns the second last part of the full
- * mailbox name (i.e. the mailbox's parent mailbox)
- */
-function readMailboxParent($haystack, $needle) {
- if ($needle == '') return '';
- $parts = explode($needle, $haystack);
- $elem = array_pop($parts);
- while ($elem == '' && count($parts)) {
- $elem = array_pop($parts);
- }
- return join($needle, $parts);
-}
+
/**
* Returns the index of the first chunk of string $haystack that
function translateText(&$body, $wrap_at, $charset) {
global $where, $what; /* from searching */
global $color; /* color theme */
-
+
require_once('../functions/url_parser.php');
-
+
$body_ary = explode("\n", $body);
$PriorQuotes = 0;
for ($i=0; $i < count($body_ary); $i++) {
$Quotes = 0;
$pos = 0;
- $j = strlen( $line );
+ $j = strlen( $line );
while ( $pos < $j ) {
if ($line[$pos] == ' ') {
$PHP_SELF = php_self();
-?>
+?>
\ No newline at end of file