# Sieve script creation error

**URL:** https://support.stalw.art/t/sieve-script-creation-error/925
**Category:** Questions
**Created:** [July 3, 2026, 9:37am UTC](https://support.stalw.art/t/sieve-script-creation-error/925 "2026-07-03T09:37:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![andreim](https://support.stalw.art/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@andreim](https://support.stalw.art/u/andreim)
#### Post date: [July 3, 2026, 9:37am UTC](https://support.stalw.art/t/sieve-script-creation-error/925/1 "2026-07-03T09:37:02Z")

</div>

### Your question

Hi,

Stalwart 0.16.11 in a VM.  
I’m trying to set a Sieve script in the Stalwart account page and it is not working.  
In the Trace log I’m seeing this error:  
2026-07-03T09:29:30Z TRACE HTTP request body (http.request-body) listenerId = “https”, localPort = 443, remoteIp = 10.2.1.19, remotePort = 51716, details = [[“host”, “mail.example.ro”], [“connection”, “keep-alive”], [“content-length”, “428”], [“sec-ch-ua-platform”, ““Windows””], [“authorization”, “Bearer sw1.gLK-vpNZF9Bo5J1-sS5uYxiTmFH\_tetVE4URMoJSrezPE1\_RTwc8MY\_dSBnu\_lJH8w.YW5kcmVpLm1pcm9uQHJlY2VwdGl2LnJv”], [“user-agent”, “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36”], [“sec-ch-ua”, ““Brave”;v=“149”, “Chromium”;v=“149”, “Not)A;Brand”;v=“24"”], [“content-type”, “application/json”], [“sec-ch-ua-mobile”, “?0”], [“accept”, “_/_”], [“sec-gpc”, “1”], [“accept-language”, “en-US,en;q=0.9”], [“origin”, “[https://mail.example.ro](https://mail.example.ro)”], [“sec-fetch-site”, “same-origin”], [“sec-fetch-mode”, “cors”], [“sec-fetch-dest”, “empty”], [“referer”, “[https://mail.example.ro/admin/Account/SieveScript/new](https://mail.example.ro/admin/Account/SieveScript/new)”], [“accept-encoding”, “gzip, deflate, br, zstd”]], contents = “{“using”:[“urn:ietf:params:jmap:core”,“urn:stalwart:jmap”],“methodCalls”:[[“Blob/upload”,{“accountId”:“c”,“create”:{“temp-blob-0”:{“data”:[{“data:asText”:“require \“fileinto\”;\n\nif address :is \“From\” \“test@testingro\” {\n fileinto \“Trash\”;\n}”}],“type”:“application/octet-stream”}}},“blob-0”],[“SieveScript/set”,{“accountId”:“c”,“create”:{“new-0”:{“blobId”:”#temp-blob-0”,“isActive”:true,“name”:“cPanel”}}},“set-0”]]}", size = 428  
2026-07-03T09:29:30Z DEBUG Invalid JMAP result reference (jmap.invalid-result-reference) listenerId = “https”, localPort = 443, remoteIp = 10.2.1.19, remotePort = 51716, details = "Invalid reference to non-existing object “temp-blob-0” from “new-0"”  
2026-07-03T09:29:30Z TRACE HTTP response body (http.response-body) listenerId = “https”, localPort = 443, remoteIp = 10.2.1.19, remotePort = 51716, contents = “{“methodResponses”:[[“error”,{“type”:“unknownMethod”,“description”:“Method Blob/upload requires capability urn:ietf:params:jmap:blob which is not present in the \“using\” property.”},“blob-0”],[“error”,{“type”:“invalidResultReference”,“description”:“Invalid reference to non-existing object \“temp-blob-0\” from \“new-0\””},“set-0”]],“sessionState”:“5ebc9e46”}”, code = 200, size = 360

The user from which I’m trying to create the Sieve Script is Administrator.

Any ideas are appreciated.

Thanks,  
Andrei

### I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

---

<div class="post-metadata">

### Author: ![helpbot](https://support.stalw.art/user_avatar/support.stalw.art/helpbot/32/13_2.png) [@helpbot](https://support.stalw.art/u/helpbot)
#### Post date: [July 3, 2026, 9:37am UTC](https://support.stalw.art/t/sieve-script-creation-error/925/2 "2026-07-03T09:37:21Z")

</div>

The error is straightforward: the JMAP request being sent only declares `"using":["urn:ietf:params:jmap:core","urn:stalwart:jmap"]`, but it also calls `Blob/upload`, which requires the `urn:ietf:params:jmap:blob` capability to be listed in `using`. Since it’s missing, Stalwart rejects `Blob/upload` as an unknown method, and the subsequent `SieveScript/set` call fails because it references the (never-created) blob.

This isn’t Stalwart’s own WebUI request (Stalwart’s WebUI always includes `urn:ietf:params:jmap:blob`, along with `urn:ietf:params:jmap:sieve`, in its `using` array for every request). The referer in your log (`/admin/Account/SieveScript/new`) suggests you’re using a third-party front-end (e.g. a cPanel plugin) that’s constructing its own JMAP calls. That client needs to add `"urn:ietf:params:jmap:blob"` to its `using` array, and ideally `"urn:ietf:params:jmap:sieve"` too, since sieve script management also depends on that capability.

If you’re actually using Stalwart’s built-in WebUI at `/admin/...` and it’s producing this malformed request, that would point to a bug, but the JSON body shown doesn’t match what the current WebUI sends, so it’s worth confirming which client/integration is issuing this request.

_This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong._

---

<div class="post-metadata">

### Author: ![andreim](https://support.stalw.art/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@andreim](https://support.stalw.art/u/andreim)
#### Post date: [July 3, 2026, 9:47am UTC](https://support.stalw.art/t/sieve-script-creation-error/925/3 "2026-07-03T09:47:41Z")

</div>

I’m using Stalwart WebUI.

Is referer /admin/Account because the user is Administrator.

This is the screenshot of the webpage where I’m trying to create the Sieve script:

 ![image](https://uploads.stalw.art/original/1X/67ceea72cd62f820305454b630f9c2f22e783da0.png)

---

<div class="post-metadata">

### Author: ![andreim](https://support.stalw.art/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@andreim](https://support.stalw.art/u/andreim)
#### Post date: [July 3, 2026, 9:55am UTC](https://support.stalw.art/t/sieve-script-creation-error/925/4 "2026-07-03T09:55:18Z")

</div>

The same error I encounter if I’m trying from an user without Administrative role:

2026-07-03T09:53:14Z TRACE HTTP request body (http.request-body) listenerId = “https”, localPort = 443, remoteIp = 10.2.1.19, remotePort = 62233, details = [[“host”, “mail.example.ro”], [“connection”, “keep-alive”], [“content-length”, “428”], [“sec-ch-ua-platform”, ““Windows””], [“authorization”, “Bearer sw1.YM2IN-GIoq42gT4Jzl\_ReWb8wVLbYj0XPzqEktfYBpX2G4ixwrHzj1j71UI9HVkSNqY.c2lsdml1LnV0YUByZWNlcHRpdi5ybw”], [“user-agent”, “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36”], [“sec-ch-ua”, ““Brave”;v=“149”, “Chromium”;v=“149”, “Not)A;Brand”;v=“24"”], [“content-type”, “application/json”], [“sec-ch-ua-mobile”, “?0”], [“accept”, “_/_”], [“sec-gpc”, “1”], [“accept-language”, “en-US,en;q=0.6”], [“origin”, “[https://mail.example.ro](https://mail.example.ro)”], [“sec-fetch-site”, “same-origin”], [“sec-fetch-mode”, “cors”], [“sec-fetch-dest”, “empty”], [“referer”, “[https://mail.example.ro/account/Account/SieveScript/new](https://mail.example.ro/account/Account/SieveScript/new)”], [“accept-encoding”, “gzip, deflate, br, zstd”]], contents = “{“using”:[“urn:ietf:params:jmap:core”,“urn:stalwart:jmap”],“methodCalls”:[[“Blob/upload”,{“accountId”:“d”,“create”:{“temp-blob-0”:{“data”:[{“data:asText”:“reuire \“fileinto\”;\n\nif address :is \“From\” \“test@testing.ro\” {\n fileinto \“Trash\”;\n}”}],“type”:“application/octet-stream”}}},“blob-0”],[“SieveScript/set”,{“accountId”:“d”,“create”:{“new-0”:{“blobId”:”#temp-blob-0”,“isActive”:true,“name”:“Forward”}}},“set-0”]]}", size = 428  
2026-07-03T09:53:14Z DEBUG Invalid JMAP result reference (jmap.invalid-result-reference) listenerId = “https”, localPort = 443, remoteIp = 10.2.1.19, remotePort = 62233, details = "Invalid reference to non-existing object “temp-blob-0” from “new-0"”  
2026-07-03T09:53:14Z TRACE HTTP response body (http.response-body) listenerId = “https”, localPort = 443, remoteIp = 10.2.1.19, remotePort = 62233, contents = “{“methodResponses”:[[“error”,{“type”:“unknownMethod”,“description”:“Method Blob/upload requires capability urn:ietf:params:jmap:blob which is not present in the \“using\” property.”},“blob-0”],[“error”,{“type”:“invalidResultReference”,“description”:“Invalid reference to non-existing object \“temp-blob-0\” from \“new-0\””},“set-0”]],“sessionState”:“5ebc9e46”}”, code = 200, size = 360

As you can see the refferer nou is /account/Account instead of /admin/Account.

---

<div class="post-metadata">

### Author: ![stalwart](https://support.stalw.art/user_avatar/support.stalw.art/stalwart/32/12_2.png) [@stalwart](https://support.stalw.art/u/stalwart)
#### Post date: [July 3, 2026, 12:01pm UTC](https://support.stalw.art/t/sieve-script-creation-error/925/5 "2026-07-03T12:01:46Z")

</div>

Update the WebUI to the latest version to fix it.

---

<div class="post-metadata">

### Author: ![andreim](https://support.stalw.art/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@andreim](https://support.stalw.art/u/andreim)
#### Post date: [July 3, 2026, 12:09pm UTC](https://support.stalw.art/t/sieve-script-creation-error/925/6 "2026-07-03T12:09:28Z")

</div>

How to update the WebUI? When I’m updating the Stalwart binary WebUI is not embedded?

---

<div class="post-metadata">

### Author: ![viertmuelle](https://support.stalw.art/letter_avatar_proxy/v4/letter/v/85e7bf/32.png) [@viertmuelle](https://support.stalw.art/u/viertmuelle)
#### Post date: [July 5, 2026, 4:03am UTC](https://support.stalw.art/t/sieve-script-creation-error/925/7 "2026-07-05T04:03:45Z")

</div>

There is an action you can trigger: [Action | Stalwart](https://stalw.art/docs/ref/object/action/#type-updateapps)
