Prepare some Sieve restructuring for GUI

This commit is contained in:
the-djmaze 2022-03-17 09:03:02 +01:00
parent 37bb9a9a97
commit ff9a89380c
15 changed files with 259 additions and 194 deletions

View file

@ -5,10 +5,10 @@
import {
GrammarString,
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
export class BodyTest extends GrammarTest
export class BodyTest extends TestCommand
{
constructor()
{

View file

@ -5,10 +5,10 @@
import {
GrammarQuotedString,
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
export class EnvironmentTest extends GrammarTest
export class EnvironmentTest extends TestCommand
{
constructor()
{

View file

@ -6,7 +6,7 @@ import {
GrammarCommand,
GrammarQuotedString,
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
export class SetCommand extends GrammarCommand
@ -45,7 +45,7 @@ export class SetCommand extends GrammarCommand
}
}
export class StringTest extends GrammarTest
export class StringTest extends TestCommand
{
constructor()
{

View file

@ -7,7 +7,7 @@ import {
GrammarQuotedString,
GrammarString,
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
class FlagCommand extends GrammarCommand
@ -63,7 +63,7 @@ export class RemoveFlagCommand extends FlagCommand
{
}
export class HasFlagTest extends GrammarTest
export class HasFlagTest extends TestCommand
{
constructor()
{

View file

@ -5,10 +5,10 @@
import {
GrammarQuotedString,
GrammarString,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
export class SpamTestTest extends GrammarTest
export class SpamTestTest extends TestCommand
{
constructor()
{
@ -41,7 +41,7 @@ export class SpamTestTest extends GrammarTest
}
}
export class VirusTestTest extends GrammarTest
export class VirusTestTest extends TestCommand
{
constructor()
{

View file

@ -6,10 +6,10 @@ import {
GrammarNumber,
GrammarQuotedString,
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
export class DateTest extends GrammarTest
export class DateTest extends TestCommand
{
constructor()
{
@ -58,7 +58,7 @@ export class DateTest extends GrammarTest
}
}
export class CurrentDateTest extends GrammarTest
export class CurrentDateTest extends TestCommand
{
constructor()
{

View file

@ -7,7 +7,7 @@ import {
GrammarNumber,
GrammarQuotedString,
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
/**
@ -72,7 +72,7 @@ export class NotifyCommand extends GrammarCommand
/**
* https://datatracker.ietf.org/doc/html/rfc5435#section-4
*/
export class ValidNotifyMethodTest extends GrammarTest
export class ValidNotifyMethodTest extends TestCommand
{
constructor()
{
@ -94,7 +94,7 @@ export class ValidNotifyMethodTest extends GrammarTest
/**
* https://datatracker.ietf.org/doc/html/rfc5435#section-5
*/
export class NotifyMethodCapabilityTest extends GrammarTest
export class NotifyMethodCapabilityTest extends TestCommand
{
constructor()
{

View file

@ -4,7 +4,7 @@
import {
GrammarCommand,
GrammarTest,
TestCommand,
GrammarQuotedString,
GrammarStringList
} from 'Sieve/Grammar';
@ -12,7 +12,7 @@ import {
/**
* https://datatracker.ietf.org/doc/html/rfc5463#section-4
*/
export class IHaveTest extends GrammarTest
export class IHaveTest extends TestCommand
{
constructor()
{

View file

@ -3,7 +3,7 @@
*/
import {
GrammarTest,
TestCommand,
GrammarQuotedString,
GrammarStringList
} from 'Sieve/Grammar';
@ -11,7 +11,7 @@ import {
/**
* https://datatracker.ietf.org/doc/html/rfc5490#section-3.1
*/
export class MailboxExistsTest extends GrammarTest
export class MailboxExistsTest extends TestCommand
{
constructor()
{
@ -37,7 +37,7 @@ export class MailboxExistsTest extends GrammarTest
/**
* https://datatracker.ietf.org/doc/html/rfc5490#section-3.3
*/
export class MetadataTest extends GrammarTest
export class MetadataTest extends TestCommand
{
constructor()
{
@ -70,7 +70,7 @@ export class MetadataTest extends GrammarTest
/**
* https://datatracker.ietf.org/doc/html/rfc5490#section-3.4
*/
export class MetadataExistsTest extends GrammarTest
export class MetadataExistsTest extends TestCommand
{
constructor()
{
@ -98,7 +98,7 @@ export class MetadataExistsTest extends GrammarTest
/**
* https://datatracker.ietf.org/doc/html/rfc5490#section-3.3
*/
export class ServerMetadataTest extends GrammarTest
export class ServerMetadataTest extends TestCommand
{
constructor()
{
@ -128,7 +128,7 @@ export class ServerMetadataTest extends GrammarTest
/**
* https://datatracker.ietf.org/doc/html/rfc5490#section-3.4
*/
export class ServerMetadataExistsTest extends GrammarTest
export class ServerMetadataExistsTest extends TestCommand
{
constructor()
{

View file

@ -4,13 +4,13 @@
import {
GrammarStringList,
GrammarTest
TestCommand
} from 'Sieve/Grammar';
/**
* https://datatracker.ietf.org/doc/html/rfc6134#section-2.7
*/
export class ValidExtListTest extends GrammarTest
export class ValidExtListTest extends TestCommand
{
constructor()
{