From 717dc36048cbc9d2d192b826bf3e7cf8f45796f7 Mon Sep 17 00:00:00 2001 From: Ruben Maher Date: Mon, 13 Nov 2017 20:20:38 +1030 Subject: [PATCH] mail-server/dovecot.nix: fix indentation --- mail-server/dovecot.nix | 71 ++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 7ccaab1..9a5339c 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -41,15 +41,14 @@ in protocols = [ "sieve" ]; sieveScripts = { - before = builtins.toFile "spam.sieve" - '' - require "fileinto"; + before = builtins.toFile "spam.sieve" '' + require "fileinto"; - if header :is "X-Spam" "Yes" { - fileinto "Junk"; - stop; - } - ''; + if header :is "X-Spam" "Yes" { + fileinto "Junk"; + stop; + } + ''; }; extraConfig = '' @@ -59,49 +58,49 @@ in ssl = required service lmtp { - unix_listener /var/lib/postfix/queue/private/dovecot-lmtp { - group = postfix - mode = 0600 - user = postfix # TODO: < make variable - } + unix_listener /var/lib/postfix/queue/private/dovecot-lmtp { + group = postfix + mode = 0600 + user = postfix # TODO: < make variable + } } protocol lmtp { - mail_plugins = $mail_plugins sieve + mail_plugins = $mail_plugins sieve } service auth { - unix_listener /var/lib/postfix/queue/private/auth { - mode = 0660 - user = postfix # TODO: < make variable - group = postfix # TODO: < make variable - } + unix_listener /var/lib/postfix/queue/private/auth { + mode = 0660 + user = postfix # TODO: < make variable + group = postfix # TODO: < make variable + } } auth_mechanisms = plain login namespace inbox { - inbox = yes + inbox = yes - mailbox "Trash" { - auto = no - special_use = \Trash - } + mailbox "Trash" { + auto = no + special_use = \Trash + } - mailbox "Junk" { - auto = subscribe - special_use = \Junk - } + mailbox "Junk" { + auto = subscribe + special_use = \Junk + } - mailbox "Drafts" { - auto = subscribe - special_use = \Drafts - } + mailbox "Drafts" { + auto = subscribe + special_use = \Drafts + } - mailbox "Sent" { - auto = subscribe - special_use = \Sent - } + mailbox "Sent" { + auto = subscribe + special_use = \Sent + } } ''; };