/**
* mime.php
*
- * Copyright (c) 1999-2001 The SquirrelMail Development Team
+ * Copyright (c) 1999-2002 The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This contains the functions necessary to detect and decode MIME
} else {
$body = formatAttachments ($message, -1, $message->header->mailbox, $id);
}
- return( $body );
+ return ($body);
}
// A recursive function that returns a list of attachments with links
// Encode only if the string contains 8-bit characters or =?
$j = strlen( $string );
- $l = FALSE; // Must be encoded ?
+ $l = strstr($string, '=?'); // Must be encoded ?
$ret = '';
for( $i=0; $i < $j; ++$i) {
switch( $string{$i} ) {
$ret .= '=3D';
break;
case '?':
- $l = TRUE;
$ret .= '=3F';
break;
case '_':