mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 06:47:05 +08: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();
|
||||
}
|
||||
|
||||
if (!isset($aList[self::SIEVE_FILE_NAME])) {
|
||||
$aScripts[$name] = array(
|
||||
'@Object' => 'Object/SieveScript',
|
||||
'name' => self::SIEVE_FILE_NAME,
|
||||
'active' => false,
|
||||
'body' => '',
|
||||
'filters' => []
|
||||
);
|
||||
}
|
||||
if (!isset($aList[self::SIEVE_FILE_NAME])) {
|
||||
$aScripts[self::SIEVE_FILE_NAME] = array(
|
||||
'@Object' => 'Object/SieveScript',
|
||||
'name' => self::SIEVE_FILE_NAME,
|
||||
'active' => false,
|
||||
'body' => '',
|
||||
'filters' => []
|
||||
);
|
||||
}
|
||||
|
||||
if ($bAllowRaw && !isset($aList[self::SIEVE_FILE_NAME_RAW])) {
|
||||
$aScripts[$name] = array(
|
||||
'@Object' => 'Object/SieveScript',
|
||||
'name' => self::SIEVE_FILE_NAME_RAW,
|
||||
'active' => false,
|
||||
'body' => ''
|
||||
);
|
||||
if ($bAllowRaw && !isset($aList[self::SIEVE_FILE_NAME_RAW])) {
|
||||
$aScripts[self::SIEVE_FILE_NAME_RAW] = array(
|
||||
'@Object' => 'Object/SieveScript',
|
||||
'name' => self::SIEVE_FILE_NAME_RAW,
|
||||
'active' => false,
|
||||
'body' => ''
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
\ksort($aScripts);
|
||||
|
|
Loading…
Reference in a new issue