Issue Description
When updating SpamTags objects, it requires an id field (top level id). Moreover, the matchOn only allows object, id, scope or value. This makes it impossible to easily update scores of specific tags without destroying it first.
Expected Behavior
- "@type": update
object: SpamTag
matchOn: [tag]
value:
spoofReplyTo:
"@type": Score
tag: SPOOF_REPLYTO
score: 3.0 # From the default of 6 as many legitimate mails set a different reply-to
Should work
Actual Behavior
error: invalid plan NDJSON on line 23: unknown field matchOn, expected one of object, id, scope, value
or when not setting matchOn you get
error: update operation #23 on SpamTag is missing the top-level id field (required for non-singletons; id is a sibling of value, not a key inside it)
Reproduction Steps
- Default stalwart install
- Update via CLI a SpamTag object by setting the score (as shown in expected behavior)
Stalwart Version
v0.16.x
Installation Method
Docker
Database Backend
PostgreSQL
Blob Storage
PostgreSQL
Search Engine
PostgreSQL
Directory Backend
Internal
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
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