commit 1fd83c19a3b709e0132231d2e0b9337ad7b3c239
parent 9d798e699d0c108582d0cada0575c93ddbfa7aef
Author: Jaromil <jaromil@dyne.org>
Date:   Fri, 24 Mar 2017 14:31:10 +0100
fix to avoid hangs at boot when xapian db path doesn't exists
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git 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