Angel de Vicente <angel.vicente.garr...@gmail.com> writes: > Hello, > > Angel de Vicente <angel.vicente.garr...@gmail.com> writes: >> oh, indeed it was nil. Changed it and queries like "since:3d" work now >> beautifully. What I don't get to work is compound queries like since:3d >> from:alex (they work separetely, but nothing gets returned if I try to >> combine two queries... > > just tried again today. I thought I would have to fire edebug again, but > I tried quoting the whole query and it works fine. > > So, to clarify: > > + for simple queries I just type: > > Query: since:3d > > + for compound queries I need to quote it like: > > Query: "from:alex since:3d" > > I take it from section 9.3 of the Gnus manual that this is not intended.
No, that's not how it's supposed to work! So here's our query: (gnus-search-transform (make-instance 'gnus-search-mairix) (gnus-search-parse-query "from:alex since:3d")) -> "f:alex d:20230128-" And you've confirmed that running "mairix f:alex d:20230128-" works correctly on the command line? There's not much other processing going on. Mairix is weird about how it ANDs and ORs search terms -- you can only OR on the same key -- but that shouldn't be coming into play here. For the record, you don't really need to be using gnus-search. If you're happy with mairix's search language, and you don't expect to ever run searches against both nnml and nnimap backends at the same time, it probably won't get you much. Eric