mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
test: test relative paths for database.hook_dir
This commit is contained in:
parent
1040e7aa07
commit
891b950219
1 changed files with 6 additions and 1 deletions
|
@ -43,7 +43,7 @@ add_message
|
|||
# create maildir structure for notmuch-insert
|
||||
mkdir -p "$MAIL_DIR"/{cur,new,tmp}
|
||||
|
||||
for config in traditional profile explicit XDG split; do
|
||||
for config in traditional profile explicit relative XDG split; do
|
||||
unset NOTMUCH_PROFILE
|
||||
notmuch config set database.hook_dir
|
||||
notmuch config set database.path ${MAIL_DIR}
|
||||
|
@ -63,6 +63,11 @@ for config in traditional profile explicit XDG split; do
|
|||
mkdir -p $HOOK_DIR
|
||||
notmuch config set database.hook_dir $HOOK_DIR
|
||||
;;
|
||||
relative)
|
||||
HOOK_DIR=${HOME}/.notmuch-hooks
|
||||
mkdir -p $HOOK_DIR
|
||||
notmuch config set database.hook_dir .notmuch-hooks
|
||||
;;
|
||||
XDG)
|
||||
HOOK_DIR=${HOME}/.config/notmuch/default/hooks
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue