mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Update to latest sources
This commit is contained in:
parent
5834e58c44
commit
c15e98083b
1 changed files with 2 additions and 2 deletions
|
@ -2550,14 +2550,14 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
|
|||
private function setFromHeaderValue(&$headers) {
|
||||
$from = getDefaultFromValue($this->username, $this->domain);
|
||||
|
||||
if (isset($headers["from"])) {
|
||||
if (isset($headers["from"]) && strlen($headers["from"]) > 0) {
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFromHeaderValue(): from defined: %s", $headers["from"]));
|
||||
if (strlen(IMAP_DEFAULTFROM) > 0) {
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFromHeaderValue(): Overwriting From: %s", $from));
|
||||
$headers["from"] = $from;
|
||||
}
|
||||
}
|
||||
elseif (isset($headers["From"])) {
|
||||
elseif (isset($headers["From"]) && strlen($headers["From"]) > 0) {
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFromHeaderValue(): From defined: %s", $headers["From"]));
|
||||
if (strlen(IMAP_DEFAULTFROM) > 0) {
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFromHeaderValue(): Overwriting From: %s", $from));
|
||||
|
|
Loading…
Add table
Reference in a new issue