still some issues regarding signatures->fixed them (hopefully)

This commit is contained in:
Klaus Leithoff 2014-01-20 10:59:39 +00:00
parent 32f75929af
commit 238391ee63
2 changed files with 12 additions and 9 deletions

View File

@ -811,15 +811,18 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
} // end forward
// add signature!! -----------------------------------------------------------------
$bosignatures = CreateObject('felamimail.felamimail_bosignatures');
if ($this->debugLevel>2) debugLog(__METHOD__.__LINE__.' ActiveMailProfile:'.array2string($activeMailProfile));
$defaultSig = $bosignatures->getDefaultSignature();
if ($defaultSig === false) $defaultSig = -1;
$presetSig = (!empty($activeMailProfile->signature) ? $activeMailProfile->signature : $defaultSig); // thats the default
$disableRuler = false;
$_signature = $bosignatures->getSignature($presetSig);
$signature = $_signature->fm_signature;
try
{
$acc = emailadmin_account::read($this->mail->icServer->ImapServerId);
//error_log(__METHOD__.__LINE__.array2string($acc));
$_signature = emailadmin_account::read_identity($acc['ident_id'],true);
}
catch (Exception $e)
{
$_signature=array();
}
$signature = $_signature['ident_signature'];
if ((isset($preferencesArray['disableRulerForSignatureSeparation']) &&
$preferencesArray['disableRulerForSignatureSeparation']) ||
empty($signature) || trim(translation::convertHTMLToText($signature)) =='')

View File

@ -2035,7 +2035,7 @@ class mail_compose
}
$disableRuler = false;
#if ($realCharset != $this->displayCharset) error_log("Error: bocompose::createMessage found Charset ($realCharset) differs from DisplayCharset (".$this->displayCharset.")");
$signature = $_signature[ident_signature];
$signature = $_signature['ident_signature'];
if ((isset($this->preferencesArray['insertSignatureAtTopOfMessage']) && $this->preferencesArray['insertSignatureAtTopOfMessage']))
{