stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
3.53k stars 135 forks source link

[bug][ManageSieve]: script upload fails #548

Closed Megver83 closed 1 week ago

Megver83 commented 1 week ago

What happened?

When CHECKSCRIPT is ran, an IMPLEMENTATION string is popped up, making the check fail even though the script is valid:

>>> AUTHENTICATE "PLAIN" {24+}\r\n
>>> [base64 password]\r\n
<<< OK "Authentication successful"\r\n
>>> CHECKSCRIPT {22+}\r\n
>>> require ["fileinto"];\n
>>> \r\n
<<< "IMPLEMENTATION" "Stalwart ManageSieve"\r\n
CHECKSCRIPT failed: "IMPLEMENTATION" "Stalwart ManageSieve"
>>> LOGOUT\r\n
<<< "VERSION" "1.0"\r\n
saw 1 problems, exiting 1

How can we reproduce the problem?

Upload any valid sieve script, I used sieve-connect for this

Version

v0.8.x

What database are you using?

None

What blob storage are you using?

None

Where is your directory located?

None

What operating system are you using?

None

Relevant log output

No response

Code of Conduct