--- /dev/null
+{% set pword_cmd = "pass webmail.friedersdorff.com/max@friedersdorff.com | head -n 1" %}
+[Personal]
+source = imaps://max%40friedersdorff.com@mail.friedersdorff.com
+source-cred-cmd = "{{ pword_cmd }}"
+outgoing = smtps+plain://max%40friedersdorff.com@mail.friedersdorff.com
+outgoing-cred-cmd = "{{ pword_cmd }}"
+default = INBOX
+from = Maximilian Friedersdorff <max@friedersdorff.com>
+copy-to = Sent
--- /dev/null
+include:
+ - aerc.{{ grains['os'] | lower}}
+
+ensure aerc config dir:
+ file.directory:
+ - name: {{ grains['homedir'] }}/.config/aerc
+ - user: {{ grains['user'] }}
+ - group: {{ grains['user'] }}
+ - dir_mode: 700
+ - file_mode: 600
+ - recurse:
+ - user
+ - group
+ - mode
+
+aerc config file:
+ file.managed:
+ - name: {{ grains['homedir'] }}/.config/aerc/accounts.conf
+ - source: salt://aerc/files/accounts.jinja
+ - template: jinja
+ - user: {{ grains['user'] }}
+ - group: {{ grains['user'] }}
+ - mode: 600