From: "Thorben Günther" <admin@xenrox.net>
To: notmuch@notmuchmail.org
Subject: bug: filename points to wrong location
Date: Sat, 3 Aug 2024 02:39:15 +0200 [thread overview]
Message-ID: <ev7jyx3xti4yczpmgjtfwzfoslxzund6c75d4z73qlhvxuzqjk@fha67qx2xjbg> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 643 bytes --]
I noticed this when investigating an aerc bug report [1].
When the notmuch config contains a different location for
database.mail_root (e.g. ~/.mail/user) and database.path (unset,
should default to ~/.local/share/notmuch/default), the filepath returned
by "notmuch_message_get_filename" points to the database path instead of
the mail_root path.
Here is a simple reproduction in python [2], that uses the problematic
"notmuch_message_get_filename".
"notmuch show" on the other hand does have the correct filename/path.
[1]: https://todo.sr.ht/~rjarry/aerc/106
[2]: https://paste.xenrox.net/~xenrox/d7048c7b5392df940586b42673aeba97c176d489
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 898 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next reply other threads:[~2024-08-03 18:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-03 0:39 Thorben Günther [this message]
2024-08-04 9:30 ` bug: filename points to wrong location David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ev7jyx3xti4yczpmgjtfwzfoslxzund6c75d4z73qlhvxuzqjk@fha67qx2xjbg \
--to=admin@xenrox.net \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).