mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-10-07 00:00:45 +00:00
Merge pull request #68 from travier/main-keep-stop-discard
sieve: Do not skip 'stop' when last action is 'discard'
This commit is contained in:
@@ -152,7 +152,7 @@ export function generateScript(rules: FilterRule[]): string {
|
||||
|
||||
if (rule.stopProcessing) {
|
||||
const lastAction = rule.actions[rule.actions.length - 1];
|
||||
if (!lastAction || !['stop', 'discard', 'reject'].includes(lastAction.type)) {
|
||||
if (!lastAction || !['stop', 'reject'].includes(lastAction.type)) {
|
||||
actionLines.push('stop;');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user