mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
formatting
This commit is contained in:
parent
090f676483
commit
bd6d7aac97
@ -16,7 +16,7 @@
|
|||||||
class msg_base
|
class msg_base
|
||||||
{
|
{
|
||||||
var $msg_struct;
|
var $msg_struct;
|
||||||
var $err = array("code","msg","desc");
|
var $err = array('code','msg','desc');
|
||||||
var $msg_info = Array(Array());
|
var $msg_info = Array(Array());
|
||||||
|
|
||||||
var $tempfile;
|
var $tempfile;
|
||||||
@ -32,9 +32,9 @@
|
|||||||
|
|
||||||
function msg_base()
|
function msg_base()
|
||||||
{
|
{
|
||||||
$this->err["code"] = " ";
|
$this->err['code'] = ' ';
|
||||||
$this->err["msg"] = " ";
|
$this->err['msg'] = ' ';
|
||||||
$this->err["desc"] = " ";
|
$this->err['desc'] = ' ';
|
||||||
$this->tempfile = $GLOBALS['phpgw_info']['server']['temp_dir'].SEP.$GLOBALS['phpgw_info']['user']['sessionid'].'.mhd';
|
$this->tempfile = $GLOBALS['phpgw_info']['server']['temp_dir'].SEP.$GLOBALS['phpgw_info']['user']['sessionid'].'.mhd';
|
||||||
$this->force_check = false;
|
$this->force_check = false;
|
||||||
$this->got_structure = false;
|
$this->got_structure = false;
|
||||||
@ -133,13 +133,13 @@
|
|||||||
$name['translated'] = '';
|
$name['translated'] = '';
|
||||||
|
|
||||||
// folder name at this stage is {SERVER_NAME:PORT}FOLDERNAME
|
// folder name at this stage is {SERVER_NAME:PORT}FOLDERNAME
|
||||||
// get everything to the right of the bracket "}", INCLUDES the bracket itself
|
// get everything to the right of the bracket '}', INCLUDES the bracket itself
|
||||||
$name['folder_before'] = strstr($data_str,'}');
|
$name['folder_before'] = strstr($data_str,'}');
|
||||||
// get rid of that 'needle' "}"
|
// get rid of that 'needle' '}'
|
||||||
$name['folder_before'] = substr($name['folder_before'], 1);
|
$name['folder_before'] = substr($name['folder_before'], 1);
|
||||||
// translate
|
// translate
|
||||||
$name['folder_after'] = imap_utf7_decode($name['folder_before']);
|
$name['folder_after'] = imap_utf7_decode($name['folder_before']);
|
||||||
// "imap_utf7_decode" returns False if no translation occured
|
// 'imap_utf7_decode' returns False if no translation occured
|
||||||
if ($name['folder_after'] == False)
|
if ($name['folder_after'] == False)
|
||||||
{
|
{
|
||||||
// no translation occured
|
// no translation occured
|
||||||
@ -159,7 +159,7 @@
|
|||||||
$flag = strtolower($flag);
|
$flag = strtolower($flag);
|
||||||
for ($i=0;$i<count($header);$i++)
|
for ($i=0;$i<count($header);$i++)
|
||||||
{
|
{
|
||||||
$pos = strpos($header[$i],":");
|
$pos = strpos($header[$i],':');
|
||||||
if (is_int($pos) && $pos)
|
if (is_int($pos) && $pos)
|
||||||
{
|
{
|
||||||
$keyword = trim(substr($header[$i],0,$pos));
|
$keyword = trim(substr($header[$i],0,$pos));
|
||||||
@ -172,6 +172,5 @@
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end of class mail
|
} // end of class mail
|
||||||
?>
|
?>
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
|
/* $Id$ */
|
||||||
|
|
||||||
define('SA_MESSAGES',1);
|
define('SA_MESSAGES',1);
|
||||||
define('SA_RECENT',2);
|
define('SA_RECENT',2);
|
||||||
define('SA_UNSEEN',4);
|
define('SA_UNSEEN',4);
|
||||||
|
Loading…
Reference in New Issue
Block a user