djcb / mu

maildir indexer/searcher + emacs mail client + guile bindings
http://www.djcbsoftware.nl/code/mu
GNU General Public License v3.0
1.62k stars 391 forks source link

[mu bug] `mu init` doesn't create `~/.cache/mu/xapian` anymore #2404

Closed tsdh closed 1 year ago

tsdh commented 1 year ago

Describe the bug

It seems mu init stopped creating ~/.cache/mu/xapian itself at some point. I'm on the current master branch.

To Reproduce

I use this script to initialize mu on new machines or after schema updates:

#!/bin/sh

if [ ! -d ~/.mail/ ]; then
    echo "There is no ~/.mail/ directory."
    exit 128
fi

rm -rf ~/.cache/mu/
# FIXME: Why do I need to do this myself?  I didn't have to do this last time I ran the script.
mkdir -p ~/.cache/mu/xapian
mu init --maildir ~/.mail --my-address=...
mu index
echo "Done!"

Environment GNU/Linux with mu master (da02a954).

Checklist

djcb commented 1 year ago

Thanks, I've pushed a fix.

tsdh commented 1 year ago

@djcb Works, thank you!