unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* bug: filename points to wrong location
@ 2024-08-03  0:39 Thorben Günther
  2024-08-04  9:30 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Thorben Günther @ 2024-08-03  0:39 UTC (permalink / raw)
  To: notmuch


[-- 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 --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-04  9:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-03  0:39 bug: filename points to wrong location Thorben Günther
2024-08-04  9:30 ` 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).