diff options
Diffstat (limited to 'aerc')
-rw-r--r-- | aerc/.config/aerc/aerc.conf | 3 | ||||
-rw-r--r-- | aerc/.config/systemd/user/maildir-rank-addr.service | 9 | ||||
-rw-r--r-- | aerc/.config/systemd/user/maildir-rank-addr.timer | 9 |
3 files changed, 21 insertions, 0 deletions
diff --git a/aerc/.config/aerc/aerc.conf b/aerc/.config/aerc/aerc.conf index 0b08185..3f72bf4 100644 --- a/aerc/.config/aerc/aerc.conf +++ b/aerc/.config/aerc/aerc.conf @@ -33,6 +33,9 @@ message/rfc822 = wrap | colorize image/* = catimg -w$(tput cols) - .headers = colorize +[compose] +address-book-cmd="grep -iPm 100 --color=never %s /home/tobyv/.cache/maildir-rank-addr/addressbook.tsv" + [compose::review] <C-r> = :choose \ -o a approved "header X-Sourcehut-Patchset-Update APPROVED" \ diff --git a/aerc/.config/systemd/user/maildir-rank-addr.service b/aerc/.config/systemd/user/maildir-rank-addr.service new file mode 100644 index 0000000..b9fcf24 --- /dev/null +++ b/aerc/.config/systemd/user/maildir-rank-addr.service @@ -0,0 +1,9 @@ +[Unit] +Description=Generates a ranked addressbook from a maildir folder + +[Service] +Type=oneshot +ExecStart=/usr/bin/maildir-rank-addr --maildir=${MAIL} --addresses="tobyv@tobyvin.dev,tobyv13@gmail.com" --template='{{.Address}}\t{{.Name}}\t{{.NormalizedName}}' + +[Install] +WantedBy=default.target diff --git a/aerc/.config/systemd/user/maildir-rank-addr.timer b/aerc/.config/systemd/user/maildir-rank-addr.timer new file mode 100644 index 0000000..24c6b7e --- /dev/null +++ b/aerc/.config/systemd/user/maildir-rank-addr.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Addressbook generation timer + +[Timer] +OnUnitActiveSec=12h +Unit=maildir-rank-addr.service + +[Install] +WantedBy=timers.target |