mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 03:50:13 +01:00
tackling a problem regarding the display/compose mode when opening a mailbox
This commit is contained in:
parent
e23838596c
commit
b209a64f56
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user