Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635930 - =mail-client/mutt-1.9.1-r1: breaks notmuch support
Summary: =mail-client/mutt-1.9.1-r1: breaks notmuch support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 19:29 UTC by Marc Schiffbauer
Modified: 2017-12-10 21:31 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2017-10-30 19:29:56 UTC
With this new version, reading notmuch virtual folders does not work anymore. I tried downgrading notmuch first which did noch help.

There are some "file not found" errors or the like when musst tries to read the folder ending up with an empty list until selecting a normal folder again.

Using mutt-1.9.0-r2 with both notmuch 0.24.2 and 0.25.1 works fine.

This is part of my notmuch specific config:

virtual-mailboxes \
        "unread mail" notmuch:///home/mschiff/Mail?query=tag:unread

# ^--- this one makes mutt produce error messages on startup
Comment 1 Alexander Sergeyev 2017-11-06 19:11:36 UTC
I'm experiencing the same issue; mutt-1.9.1-r1 mail querying is broken, mutt-1.9.0-r2 is not affected.
Relevant packages versions: net-mail/notmuch-0.25.1:0 and dev-libs/xapian-1.4.5:0 +glass.

Part of mutt configuration:
  set nm_default_uri = 'notmuch:///home/<...>/'
  virtual-mailboxes \                                                                                    
      '1-unread' 'notmuch://?query=tag:unread&type=messages' \                                           
      '2-today' 'notmuch://?query=date:today..&type=messages'

Note that virtual-mailboxes don't include the actual path (due to nm_default_uri setting). In my case these static virtual-mailboxes work in both versions, but dynamic mailboxes (from searches via vfolder-from-query) fail in the newer mutt.

The working version does the following syscalls when a search is requested (vfolder-from-query):
  stat("/home/<...>/.notmuch", ...)
  stat("/home/<...>/.notmuch/xapian", ...)
  stat("/home/<...>/.notmuch/iamglass", ...)
  open("/home/<...>/.notmuch/iamglass", ...)

The newer (broken) version:
  stat("/home/<...>/\nquery=<...>/.notmuch", ...) = -1 ENOENT # <-- note the newline symbol and the query content
  write(2, "Error opening database at /home/...", ...)
Comment 2 Fabian Groffen gentoo-dev 2017-12-10 10:27:06 UTC
Ai, I think I know where that comes from.  Sorry for the long wait.  I'll try to get a new patchrev online today.
Comment 3 Fabian Groffen gentoo-dev 2017-12-10 10:59:37 UTC
Please try mutt-1.9.1-r2, I think it fixes this problem.
Comment 4 Marc Schiffbauer gentoo-dev 2017-12-10 21:31:51 UTC
Looks good! (tried -r3) Thanks! Closing...