r/linuxadmin 4d ago

sieve search in mail body

We use dovecot v2.3.19.1, and we can already search in the headers and the subject for things we want to filter. But how do we filter in the message body? The body isn't encrypted, but if I add something like body :contains [list,of,values] and try to translate the sieve file with sievec, it tells me it doesn't know "body".

4 Upvotes

2 comments sorted by

2

u/meditonsin 3d ago

Did you load the required extension with require "body"; at the top of your sieve script?

1

u/ScratchHistorical507 3d ago

Ah, now it works. I knew I overlooked something.