tackling a problem regarding the display/compose mode when opening a mailbox

This commit is contained in:
Klaus Leithoff 2009-05-14 13:32:13 +00:00
parent e23838596c
commit b209a64f56

View File

@ -771,13 +771,16 @@
$msg_icon_sm = $GLOBALS['egw']->common->image('felamimail','msg_icon_sm');
// determine how to display the current folder: as sent folder (to address visible) or normal (from address visible)
$sentFolderFlag =$this->bofelamimail->isSentFolder($this->mailbox);
if(false !== in_array($this->mailbox,explode(',',$GLOBALS['egw_info']['user']['preferences']['felamimail']['messages_showassent_0']))) {
if($sentFolderFlag ||
false !== in_array($this->mailbox,explode(',',$GLOBALS['egw_info']['user']['preferences']['felamimail']['messages_showassent_0'])))
{
$folderType = 1;
$sentFolderFlag=1;
#_debug_array($GLOBALS['egw_info']['user']['preferences']['felamimail']);
} elseif($this->bofelamimail->isDraftFolder($this->mailbox)) {
$folderType = 2;
} elseif($this->bofelamimail->isTemplateFolder($this->mailbox)) {
$folderType = 3;
}
$folderType = ($sentFolderFlag
|| $this->bofelamimail->isDraftFolder( $this->mailbox)
|| $this->bofelamimail->isTemplateFolder($this->mailbox));
$this->t->set_var('header_rows',
$uiwidgets->messageTable(
$headers,