|
|
@ -448,6 +448,7 @@ class rcube_sieve_script
|
|
|
|
|
|
|
|
|
|
|
|
// action(s)
|
|
|
|
// action(s)
|
|
|
|
foreach ($rule['actions'] as $action)
|
|
|
|
foreach ($rule['actions'] as $action)
|
|
|
|
|
|
|
|
{
|
|
|
|
switch ($action['type'])
|
|
|
|
switch ($action['type'])
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case 'fileinto':
|
|
|
|
case 'fileinto':
|
|
|
@ -492,13 +493,14 @@ class rcube_sieve_script
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$script .= "}\n";
|
|
|
|
|
|
|
|
$idx++;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($extension && !isset($exts[$extension]))
|
|
|
|
if ($extension && !isset($exts[$extension]))
|
|
|
|
$exts[$extension] = $extension;
|
|
|
|
$exts[$extension] = $extension;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$script .= "}\n";
|
|
|
|
|
|
|
|
$idx++;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// requires
|
|
|
|
// requires
|
|
|
|
if (sizeof($exts))
|
|
|
|
if (sizeof($exts))
|
|
|
|
$script = 'require ["' . implode('","', $exts) . "\"];\n" . $script;
|
|
|
|
$script = 'require ["' . implode('","', $exts) . "\"];\n" . $script;
|
|
|
|