summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2017-03-24 13:31:10 (GMT)
committer Jaromil <jaromil@dyne.org>2017-03-24 13:31:10 (GMT)
commit1fd83c19a3b709e0132231d2e0b9337ad7b3c239 (patch)
tree7840f4ca273db3444d7ad19b6a91b8a1dbaae6cd
parent9d798e699d0c108582d0cada0575c93ddbfa7aef (diff)
fix to avoid hangs at boot when xapian db path doesn't exists
-rwxr-xr-xsrc/zlibs/mutt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zlibs/mutt b/src/zlibs/mutt
index ba4049b..eb42c6c 100755
--- a/src/zlibs/mutt
+++ b/src/zlibs/mutt
@@ -214,6 +214,11 @@ EOF
touch "$MAILDIRS/.mutt/notmuch"
# when peeking and using mutt-kz use the sidebar
is_mutt_kz && {
+
+ # avoid hangs at boot for files not found
+ mkdir -p $MAILDIRS/.notmuch
+ touch $MAILDIRS/.notmuch/xapian
+
cat <<EOF >> "$MAILDIRS/.mutt/notmuch"
set sidebar_width = 25
set sidebar_visible = no