1
0
Fork
You've already forked aerc
0
this is where my aerc config lives.
  • Python 71.5%
  • Shell 28.5%
2026年04月21日 21:47:16 +02:00
templates signatures before quoted content 2026年04月21日 21:47:16 +02:00
tools fixed issue with addresses starting with # and added ITp 2026年03月26日 20:18:15 +01:00
.gitignore updated config 2026年03月23日 14:36:49 +01:00
accounts.conf moved gmail a tab further, added local mailbox 2026年03月28日 22:12:11 +01:00
aerc.conf unread count in tab; threaded; attachement-warning 2026年03月25日 23:54:45 +01:00
binds.conf initial commit 2026年02月26日 20:50:33 +01:00
COPYING added license 2026年02月26日 23:02:07 +01:00
README.md updated config 2026年03月23日 14:36:49 +01:00

AERC

This is my aerc configuration.

Usage

Clone this repo to ~/.config/aerc/, edit the accounts.conf1 (and credentials.sh) file, launch aerc and enjoy.

Requirements

It uses keepassxc-cli (comes with keepassxc). See credentials.sh.

credentials.sh

is a helper script to be used in accounts.confs *-cred-cmd.

It is a wrapper around keepassxc-cli and does some password caching in $XDG_RUNTIME_DIR.

Example:

[Example]
source = imaps://mail%40example.com@imap.example.com:993
source-cred-cmd = ~/.config/aerc/credentials.sh "Example/Mail"
outgoing = smtps://mail%40example.com@smtp.example.com:465
outgoing-cred-cmd = ~/.config/aerc/credentials.sh "Example/Mail"

addresses/ and addresses.py

addresses.py is my address book handler, used in accounts.confs address-book-cmd.

It requires at least 2 arguments. The last argument is the query provided by aerc all other arguments will be interpreted as filenames under ~/.config/aerc/addresses/.

addresses/ is a directory containing address books.

Example:

[Example]
address-book-cmd = /home/linluk/.config/aerc/addresses.py "tsn-teachers" "tsn-students" "%s"

tsn-* Address Books

Are generated from vCard v3 Address-Books by tools/tsn.py.

The source Address-Books can be downloaded from mail.tsn.at (requires login).

Address Books

are simple text files.

addresses.py allows the following features:

  • Empty lines.
  • Comment lines (lines starting with #, possibly spaces before #).
  • Unsorted entries (addresses.py sorts them, so that aerc doesn't have to)
  • The format is: Max Musterman <max.musterman@example.com>

Signatures

are simple text files. configured by account in accounts.conf.

Note from man aerc-accounts

 signature-file = <path>
 Specifies the file to read in order to obtain the signature to be
 added to emails sent from this account.
 Please note that by convention the Usenet signature style of
 two dashes, followed by a space ("-- ") should be placed at the
 top of the signature to separate content and signature. Aerc will
 add that delimiter if it is not already present.

TODO

  • A tool to import (and split by class) the tsn address book (from vCard or CSV to simple flat text files)
  • A way to include "unsafe" files (files including personal information) in the repository (gpg --encryp? passphrase in keepass? lfs?)
    • address books
    • signature
  • Add GMail account(s)

  1. Important: the path to addresses.py cannot contain ~/ or $HOME, so you have to adjust it manually. ↩︎