Austin Clements <[email protected]> writes: > Since this condition is expected for new users, this patch adds > specific handling for the file-not-found case to give a message that > is friendly and actionable. ... > + fprintf (stderr, "Configuration file %s not found.\n" > + "Try running 'notmuch setup' to create a > configuration.\n", > + config->filename);
Thanks, Austin! I've always wanted notmuch to provide as gentle an introduction as possible, (since switching MUA and indexing all email[*] is already a fairly invasive thing). So I really appreciate improvements like this. > +test_begin_subtest "Notmuch new without a config suggests notmuch setup" > +output=$(notmuch --config=new-notmuch-config new 2>&1) > +test_expect_equal "$output" "\ > +Configuration file new-notmuch-config not found. > +Try running 'notmuch setup' to create a configuration." And a test to boot. That really warms my heart. -Carl [*] A further possible improvement here would be some mechanism for initially indexing only very recent email, (to let the user start playing with notmuch right away), and then in some sort of ''offline'' fashion, completing the full indexing.
pgpf52pf6_z_w.pgp
Description: PGP signature
_______________________________________________ notmuch mailing list [email protected] http://notmuchmail.org/mailman/listinfo/notmuch
