diff options
Diffstat (limited to 'mutt/muttrc.d/src')
-rwxr-xr-x | mutt/muttrc.d/src | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mutt/muttrc.d/src b/mutt/muttrc.d/src index cc2eb4ef..d0d501bc 100755 --- a/mutt/muttrc.d/src +++ b/mutt/muttrc.d/src @@ -1,5 +1,18 @@ #!/bin/sh -# Helper script to emit the source all muttrc subfiles, in LC_COLLATE order + +# Build groups from address lists +for rc in "$HOME"/.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"/.muttrc.d/*.rc ; do [ -e "$rc" ] || continue cat -- "$rc" |