mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-12 01:38:02 +08:00
This commit is contained in:
parent
99bd895090
commit
39e9ecd4f2
6 changed files with 66 additions and 8 deletions
|
@ -320,11 +320,17 @@ class SieveStorage implements \RainLoop\Providers\Filters\FiltersInterface
|
|||
switch ($oFilter->ActionType())
|
||||
{
|
||||
case \RainLoop\Providers\Filters\Enumerations\ActionType::NONE:
|
||||
$aResult[] = $sTab.'stop;';
|
||||
if ($oFilter->Stop())
|
||||
{
|
||||
$aResult[] = $sTab.'stop;';
|
||||
}
|
||||
break;
|
||||
case \RainLoop\Providers\Filters\Enumerations\ActionType::DISCARD:
|
||||
$aResult[] = $sTab.'discard;';
|
||||
$aResult[] = $sTab.'stop;';
|
||||
if ($oFilter->Stop())
|
||||
{
|
||||
$aResult[] = $sTab.'stop;';
|
||||
}
|
||||
break;
|
||||
case \RainLoop\Providers\Filters\Enumerations\ActionType::VACATION:
|
||||
$sValue = \trim($oFilter->ActionValue());
|
||||
|
@ -383,7 +389,10 @@ class SieveStorage implements \RainLoop\Providers\Filters\FiltersInterface
|
|||
$aCapa['reject'] = true;
|
||||
|
||||
$aResult[] = $sTab.'reject "'.$this->quote($sValue).'";';
|
||||
$aResult[] = $sTab.'stop;';
|
||||
if ($oFilter->Stop())
|
||||
{
|
||||
$aResult[] = $sTab.'stop;';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -401,7 +410,10 @@ class SieveStorage implements \RainLoop\Providers\Filters\FiltersInterface
|
|||
}
|
||||
|
||||
$aResult[] = $sTab.'redirect "'.$this->quote($sValue).'";';
|
||||
$aResult[] = $sTab.'stop;';
|
||||
if ($oFilter->Stop())
|
||||
{
|
||||
$aResult[] = $sTab.'stop;';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -422,7 +434,10 @@ class SieveStorage implements \RainLoop\Providers\Filters\FiltersInterface
|
|||
|
||||
$aCapa['fileinto'] = true;
|
||||
$aResult[] = $sTab.'fileinto "'.$this->quote($sFolderName).'";';
|
||||
$aResult[] = $sTab.'stop;';
|
||||
if ($oFilter->Stop())
|
||||
{
|
||||
$aResult[] = $sTab.'stop;';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<div class="control-group" data-bind="css: {'error': actionValue.error}" style="margin-bottom: 0">
|
||||
<div class="controls">
|
||||
<div data-bind="component: {
|
||||
name: 'Checkbox',
|
||||
params: {
|
||||
label: 'POPUPS_FILTER/STOP_LABEL',
|
||||
value: actionNoStop
|
||||
}
|
||||
}"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -20,5 +20,12 @@
|
|||
value: actionMarkAsRead
|
||||
}
|
||||
}"></div>
|
||||
<div data-bind="component: {
|
||||
name: 'Checkbox',
|
||||
params: {
|
||||
label: 'POPUPS_FILTER/STOP_LABEL',
|
||||
value: actionNoStop
|
||||
}
|
||||
}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -13,5 +13,12 @@
|
|||
value: actionMarkAsRead
|
||||
}
|
||||
}"></div>
|
||||
<div data-bind="component: {
|
||||
name: 'Checkbox',
|
||||
params: {
|
||||
label: 'POPUPS_FILTER/STOP_LABEL',
|
||||
value: actionNoStop
|
||||
}
|
||||
}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<div class="control-group" data-bind="css: {'error': actionValue.error}" style="margin-bottom: 0">
|
||||
<div class="controls">
|
||||
<div data-bind="component: {
|
||||
name: 'Checkbox',
|
||||
params: {
|
||||
label: 'POPUPS_FILTER/STOP_LABEL',
|
||||
value: actionNoStop
|
||||
}
|
||||
}"></div>
|
||||
</div>
|
||||
</div>
|
|
@ -2,5 +2,12 @@
|
|||
<div class="controls">
|
||||
<textarea class="span5 i18n" data-bind="value: actionValue" style="height: 100px;"
|
||||
data-i18n="[placeholder]POPUPS_FILTER/REJECT_MESSAGE_LABEL"></textarea>
|
||||
<div data-bind="component: {
|
||||
name: 'Checkbox',
|
||||
params: {
|
||||
label: 'POPUPS_FILTER/STOP_LABEL',
|
||||
value: actionNoStop
|
||||
}
|
||||
}"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue