* database.path vs. database.mail_root: regression when relative
@ 2021-05-05 15:56 Miroslav Koškár
2021-08-02 11:31 ` David Bremner
0 siblings, 1 reply; 2+ messages in thread
From: Miroslav Koškár @ 2021-05-05 15:56 UTC (permalink / raw)
To: notmuch
[-- Attachment #1.1: Type: text/plain, Size: 1253 bytes --]
Consider following configuration in [database] section:
[database]
path=mail/main
With notmuch 0.32 running:
$ notmuch config list | grep database
database.backup_dir=/home/miro/mail/main/.notmuch/backups
database.hook_dir=/home/miro/mail/main/.notmuch/hooks
database.mail_root=mail/main
database.path=mail/main
It seem OK. Notice that backup_dir and hook_dir are absolute paths and
resolved correctly.
Running:
$ notmuch count
6454
All good!
Running:
$ notmuch new
...
Unexpected error with file mail/main/INBOX/cur/1615663870.253649_51.mirci,U=36739:2,S
add_file: Something went wrong trying to read or write a file
Error opening mail/main/INBOX/cur/1615663870.253649_51.mirci,U=36739:2,S: No such file or directory
...
Not good!
Setting database.path to an absolute path is a working workaround.
It seems that while notmuch can determine the correct location of the
database, when in need to access actual emails it fails. Coinciding with
the introduction of database.mail_root it seems that it's not
interpreted the same way when set (or "inherited" from database.path) as
relative value.
--
Miroslav Koškár
http://mkoskar.com/
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: database.path vs. database.mail_root: regression when relative
2021-05-05 15:56 database.path vs. database.mail_root: regression when relative Miroslav Koškár
@ 2021-08-02 11:31 ` David Bremner
0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2021-08-02 11:31 UTC (permalink / raw)
To: Miroslav Koškár, notmuch
Miroslav Koškár <mk@mkoskar.com> writes:
>
> Running:
>
> $ notmuch new
> ...
> Unexpected error with file mail/main/INBOX/cur/1615663870.253649_51.mirci,U=36739:2,S
> add_file: Something went wrong trying to read or write a file
> Error opening mail/main/INBOX/cur/1615663870.253649_51.mirci,U=36739:2,S: No such file or directory
> ...
>
> Not good!
>
> Setting database.path to an absolute path is a working workaround.
I think this is fixed in 31098c4ae40, which is part of 0.32.1.
d
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-02 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05 15:56 database.path vs. database.mail_root: regression when relative Miroslav Koškár
2021-08-02 11:31 ` David Bremner
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).