11 lines
312 B
Bash
11 lines
312 B
Bash
![]() |
#!/bin/sh
|
||
|
|
||
|
# Select default account
|
||
|
find ~/.config/neomutt/accounts/ -name "*.mail" -printf "source '%p'\n" -quit
|
||
|
|
||
|
# Setup folder hooks for all the accounts
|
||
|
for f in ~/.config/neomutt/accounts/*.mail; do
|
||
|
account="$(basename -s '.mail' "$f")"
|
||
|
printf 'folder-hook =%s '\''source %s'\''\n' "$account" "$f"
|
||
|
done
|