mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 00:08:18 +08:00
30 lines
353 B
JavaScript
30 lines
353 B
JavaScript
/**
|
|
* https://tools.ietf.org/html/rfc5429#section-2.2
|
|
*/
|
|
|
|
(Sieve => {
|
|
|
|
Sieve.Extensions.Reject = class
|
|
{
|
|
constructor()
|
|
{
|
|
this.reason = new Sieve.Grammar.QuotedString;
|
|
}
|
|
|
|
toString()
|
|
{
|
|
return 'reject ' + this.reason;
|
|
}
|
|
|
|
get reason()
|
|
{
|
|
return this.reason.value;
|
|
}
|
|
|
|
set reason(value)
|
|
{
|
|
this.reason.value = value;
|
|
}
|
|
};
|
|
|
|
})(this.Sieve);
|