mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Bugfix: auto-add missing sieve scripts
This commit is contained in:
parent
e3125ebfff
commit
1a07109d80
1 changed files with 17 additions and 17 deletions
|
|
@ -87,25 +87,25 @@ class SieveStorage implements FiltersInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
$oSieveClient->LogoutAndDisconnect();
|
$oSieveClient->LogoutAndDisconnect();
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($aList[self::SIEVE_FILE_NAME])) {
|
if (!isset($aList[self::SIEVE_FILE_NAME])) {
|
||||||
$aScripts[$name] = array(
|
$aScripts[self::SIEVE_FILE_NAME] = array(
|
||||||
'@Object' => 'Object/SieveScript',
|
'@Object' => 'Object/SieveScript',
|
||||||
'name' => self::SIEVE_FILE_NAME,
|
'name' => self::SIEVE_FILE_NAME,
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'body' => '',
|
'body' => '',
|
||||||
'filters' => []
|
'filters' => []
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($bAllowRaw && !isset($aList[self::SIEVE_FILE_NAME_RAW])) {
|
if ($bAllowRaw && !isset($aList[self::SIEVE_FILE_NAME_RAW])) {
|
||||||
$aScripts[$name] = array(
|
$aScripts[self::SIEVE_FILE_NAME_RAW] = array(
|
||||||
'@Object' => 'Object/SieveScript',
|
'@Object' => 'Object/SieveScript',
|
||||||
'name' => self::SIEVE_FILE_NAME_RAW,
|
'name' => self::SIEVE_FILE_NAME_RAW,
|
||||||
'active' => false,
|
'active' => false,
|
||||||
'body' => ''
|
'body' => ''
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
\ksort($aScripts);
|
\ksort($aScripts);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue