|
@@ -663,6 +663,11 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
|
|
|
|
|
|
$identity = '';
|
|
$identity = '';
|
|
$from_o = $orig_header->from;
|
|
$from_o = $orig_header->from;
|
|
|
|
+ if (is_array($from_o)) {
|
|
|
|
+ if (isset($from_o[0])) {
|
|
|
|
+ $from_o = $from_o[0];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
if (is_object($from_o)) {
|
|
if (is_object($from_o)) {
|
|
$orig_from = $from_o->getAddress();
|
|
$orig_from = $from_o->getAddress();
|
|
} else {
|
|
} else {
|
|
@@ -684,8 +689,6 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
|
|
if ($identity_match) {
|
|
if ($identity_match) {
|
|
$identity = $identity_match;
|
|
$identity = $identity_match;
|
|
}
|
|
}
|
|
- // we need identiy here fore draft case #845290
|
|
|
|
- // echo $identity."leer";
|
|
|
|
}
|
|
}
|
|
|
|
|
|
switch ($action) {
|
|
switch ($action) {
|