From 11c44ceb60c420dc36abf11384ac88e83cc2c7a5 Mon Sep 17 00:00:00 2001
From: "Daniel M. Capella" <polyzen@archlinux.org>
Date: Tue, 13 Aug 2024 13:55:28 -0400
Subject: [PATCH] dovecot: Enable the body Sieve extension

In order to use tests like `body :content "text/plain" :contains "Reassigned Issue"`.
---
 roles/dovecot/templates/dovecot.conf.j2 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/roles/dovecot/templates/dovecot.conf.j2 b/roles/dovecot/templates/dovecot.conf.j2
index 4f7de9086..d3a61036e 100644
--- a/roles/dovecot/templates/dovecot.conf.j2
+++ b/roles/dovecot/templates/dovecot.conf.j2
@@ -10,8 +10,8 @@ namespace inbox {
 	hidden = no
 	inbox = yes
 	list = yes
-	location = 
-	prefix = 
+	location =
+	prefix =
 	separator = .
 	type = private
 
@@ -44,7 +44,7 @@ plugin {
 	sieve = ~/.dovecot.sieve
 	sieve_dir = ~/.sieve
 	# fileinto and mailbox is required by the global spam-to-folder.sieve script
-	sieve_extensions = duplicate envelope fileinto imap4flags mailbox regex variables
+	sieve_extensions = body duplicate envelope fileinto imap4flags mailbox regex variables
 	sieve_global_dir = /etc/dovecot/sieve/global/
 	sieve_global_path = /etc/dovecot/sieve/default.sieve
 	sieve_before = /etc/dovecot/sieve/spam-to-folder.sieve
-- 
GitLab