blob: 8b2aad6b7fc8743560f8a1eb9afa7419b1026614 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
# Build groups from address lists
for rc in "$HOME"/.config/mutt/muttrc.d/groups/*.rc ; do
[ -e "$rc" ] || continue
group=$rc
group=${group##*/}
group=${group%.rc}
while read -r member ; do
printf 'group -group %s -addr %s\n' \
"$group" "$member"
done < "$rc"
done
# Emit the source all muttrc subfiles, in LC_COLLATE order
for rc in "$HOME"/.config/mutt/muttrc.d/*.rc ; do
[ -e "$rc" ] || continue
cat -- "$rc"
done
# Special case: if using GNU Emacs, emit a line to disable edit_headers, just
# because at the moment I haven't worked out how to make this work sanely with
# messages-are-flowing in message-mode.
case $VISUAL in
emacs|emacsclient) printf 'set edit_headers = no\n' ;;
esac
|