Re: Database location bug when database does not already exist

2022-09-03 Thread Sean Whitton
Hello, On Sat 03 Sep 2022 at 08:34AM -03, David Bremner wrote: > Sean Whitton writes: > >> Hello, >> >> In the following situation: >> >> - only notmuch config is ~/.notmuch-config >> - database.mail_root is set >> - database.path is not set >> - notmuch database does not yet exist >> >> then no

Re: [PATCH 1/3] test: rename indexing corpus

2022-09-03 Thread David Bremner
David Bremner writes: > The corpus is not really suitable for general indexing test since the > sole message is ignored (and will most likely continue to be ignored) > by notmuch-new. applied the first two patches (test changes) to master ___ notmuch m

Re: Feature request: search for last N modified mails

2022-09-03 Thread David Bremner
Ico writes: > My normal mail workflow is to keep todo's in my inbox; these can be a few days > or weeks old if I'm lazy. Every now and then I find myself accidentally > removing things from the inbox, and I have a very hard time finding things > back. As discussed on #notmuch IRC today: I'd like

Re: [PATCH 1/3] lib/sexp: provide relative lastmod queries

2022-09-03 Thread David Bremner
David Bremner writes: > Test the relatively trivial logic changes for the sexp query parser > first before refactoring that logic to share with the infix query > parser. series applied to master. d ___ notmuch mailing list -- notmuch@notmuchmail.org T

Re: Database location bug when database does not already exist

2022-09-03 Thread David Bremner
Sean Whitton writes: > Hello, > > In the following situation: > > - only notmuch config is ~/.notmuch-config > - database.mail_root is set > - database.path is not set > - notmuch database does not yet exist > > then notmuch wants to create its db under mail_root/.notmuch, contrary > to notmuch-c

Re: [PATCH 2/6] test: add test for creating database in various configurations.

2022-09-03 Thread David Bremner
David Bremner writes: > The existing database creation (via add_email_corpus) was always done > in the traditional configuration. The use of xapian-metadata is just > to portably ensure that there is a database created where we expect > there to be. remainder of the series applied to master. d

Re: [PATCH] emacs: new notmuch-tree-process-exit-functions

2022-09-03 Thread David Bremner
jao writes: > Hook run when the tree insertion process finishes its job. > applied to master ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: [PATCH] emacs/show: use read-shell-command instead of read-string

2022-09-03 Thread David Bremner
Antoine Beaupré writes: > This enables auto-completion of commands, something which plain > read-string does not do. It's otherwise a drop-in > replacement. According to `C-h f`, read-shell-command was introduced > in Emacs 23.1 or earlier. Applied to master. d _

Re: [PATCH] emacs/show: use read-shell-command instead of read-string

2022-08-31 Thread Tomi Ollila
On Tue, Aug 30 2022, Antoine Beaupré wrote: > This enables auto-completion of commands, something which plain > read-string does not do. It's otherwise a drop-in > replacement. According to `C-h f`, read-shell-command was introduced > in Emacs 23.1 or earlier. LGTM. Tomi > --- > emacs/notmuch-

Re: notmuch release 0.37 now available

2022-08-22 Thread Michael J Gruber
Thanks for another fine release, and for being a pleasant upstream to work with! For Fedora Linux/RHEL/etc folks: notmuch 0.37 is available in rawhide and f37 (branched), as well as in updates-testing for the current release f36, all with sfsexp support. It will not go to any EPEL branch (per guid

Re: nmweb HTML injection

2022-08-22 Thread Michael J Gruber
Am Mo., 22. Aug. 2022 um 09:22 Uhr schrieb Jakub Wilk : > > See: https://nmbug.notmuchmail.org/nmweb/search/markup%20where%20appropriate > > and from the mail subject was dumped without escaping into HTML. > Interesting :) The body is htmlescape()ed, but the subject header is used as is. I shou

Re: notmuch release 0.37 now available

2022-08-22 Thread erik colson
Awesome! Thank you! -- erik colson ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: [PATCH] emacs: new notmuch-tree-process-exit-functions

2022-08-21 Thread Tomi Ollila
On Sun, Aug 21 2022, j...@gnu.org wrote: > Hook run when the tree insertion process finishes its job. > > -- LGTM. I (also would have chosen this name instead of the *sentinel* one) Tomi > This patch supersedes , but > changing the new variable name. > > Right now, it can be used for silly thi

Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point

2022-08-18 Thread Alexander Adolf
Hello David, David Bremner writes: > [...] > One point is that it is unlikely that notmuch will ever require the most > recent version of emacs (currently the baseline is supposedly emacs > 25.1). It's fine to optionally take advantage of new features in emacs, > but we want people to be able to

Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point

2022-08-18 Thread David Bremner
Alexander Adolf writes: > > From what it sound s like, it would seem to make more sense to wait for > that Emacs patch to get merged? Bundling the new code with notmuch, but > without any integration with the rest of it, effectively leaving it to > users to figure out how to make use of it wouldn

Re: Formatting nm-search output

2022-08-18 Thread David Bremner
martin f krafft writes: > Is there a way to get notmuch search to print custom fields for the > messages it returns, i.e. if I wanted to get a list of messages (not > threads) matching my search terms, along with e.g. date, subject, > from/to/cc, and body size? Hi Martin; Currently the short

Re: [PATCH] emacs: new notmuch-tree-process-hook

2022-08-17 Thread jao
how about notmuch-tree-process-sentinel-functions, or perhaps, since it's only called on exit, notmuch-tree-process-exit-functions? jao ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: [PATCH] emacs: new notmuch-tree-process-hook

2022-08-16 Thread Tomi Ollila
On Tue, Aug 16 2022, j...@gnu.org wrote: > Hook run when the tree insertion process finishes its job. > > -- > > Right now, it can be used for silly things like removing or changing > the the "End of search." hardcoded message in the tree buffer. But > also for more sophisticated things like fold

Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point

2022-08-16 Thread Alexander Adolf
Hello David, David Bremner writes: > [...] >> You could do >> >> (require 'eudcb-notmuch-address) >> (eudc-notmuch-address-set-server "localhost") >> >> and bind the function eudc-expand-inline to a key chord of your choice >> in message-mode-map. >> >> Then you'd no longer have to twe

Re: [PATCH] test: increase cffi timeout

2022-08-16 Thread David Bremner
michaeljgruber+grubix+...@gmail.com writes: > From: Michael J Gruber > > By default, the test suite uses 2min for other tests and 5s for cffi > tests. Sporadically, this leads to test failures caused by the timeout > on slower or loaded test infrastructure (as seen on ppc64le in Fedora's > infras

Re: [PATCH] test: increase cffi timeout

2022-08-15 Thread Tomi Ollila
On Sun, Aug 14 2022, michaeljgruber wrote: > From: Michael J Gruber > > By default, the test suite uses 2min for other tests and 5s for cffi > tests. Sporadically, this leads to test failures caused by the timeout > on slower or loaded test infrastructure (as seen on ppc64le in Fedora's > infrast

Re: release 0.37 is immanent

2022-08-14 Thread David Bremner
David Bremner writes: > It has been a while, and there have been quite a few changes since > 0.36. I propose feature freeze for 0.37 August 13, with a release around > a week after that. > > d Release candidate 0.37_rc0 has been tagged and uploaded to notmuchmail.org. Please report any serious b

Re: [PATCH 8/9] review: Rename variables to better express intention

2022-08-14 Thread David Bremner
Mohsin Kaleem writes: > --- > emacs/notmuch-hello.el | 18 +- > emacs/notmuch-jump.el | 2 +- > emacs/notmuch-lib.el | 4 ++-- > emacs/notmuch-tree.el | 24 > emacs/notmuch.el | 29 +++-- > 5 files changed, 39 insertion

Re: [PATCH] emacs: add new option notmuch-search-exclude

2022-08-12 Thread David Bremner
David Bremner writes: > To apply patch series, you may want to try mailscripts [1]. The > description makes it sound debian-centric, but I guess the elisp > functions like notmuch-extract-thread-patches are portable. That function is one reason why it's nice to start a new thread with each versi

Re: [PATCH] emacs: add new option notmuch-search-exclude

2022-08-12 Thread David Bremner
Mohsin Kaleem writes: > > I'm not sure what you mean by the first two patches occur twice, could > you clarify so I can fix the issue? I've dropped the reverted patch and > rebased on top of master so you shouldn't have any issues applying the > patch series now. > For reference, just look at th

Re: [PATCH 7/9] test: Fix Navigation of notmuch-hello to search results

2022-08-12 Thread David Bremner
Mohsin Kaleem writes: > The default value of oldest-first is true so the oldest mail is shown > first by default. This test case used the tree-from-search function > which now persists this value of true (previously always defaulting to > nil in its place) which produced a different tree output w

Re: [PATCH 6/9] test: Add test cases for new exclude option

2022-08-12 Thread David Bremner
sic test cases just asserting exclude option is working and consistent. > + > +test_begin_subtest "Search doesn't contain excluded mail by default" > +test_emacs '(notmuch-hello) > + (goto-char (point-min)) > + (re-search-forward "inbox") > +

Re: [PATCH 5/9] feat: Add more interactive specs

2022-08-12 Thread David Bremner
This needs a better commit message. Both the subject (what is actually happening) and the body (more detail about what, and some explanation about why). I'd suggest sticking to emacs: as a tag for the subject, but this is less important than the other two issues I mentioned.

Re: [PATCH 4/9] feat: Allow :exclude configuration in notmuch-hello

2022-08-12 Thread David Bremner
Mohsin Kaleem writes: > --- > emacs/notmuch-hello.el | 35 ++- > 1 file changed, 22 insertions(+), 13 deletions(-) I would suggest describing this change as a change to notmuch-saved-searches; that variable is used other places in notmuch as well (mainly notmuch-

Re: [PATCH 2/9] docs: Update with notmuch-*-toggle-exclude

2022-08-12 Thread David Bremner
Mohsin Kaleem writes: > --- > devel/emacs-keybindings.org | 2 +- > doc/notmuch-emacs.rst | 5 + > 2 files changed, 6 insertions(+), 1 deletion(-) apologies, but this patch will need to be rebased on top of master, as I've just changed that section of the emacs manual. For now I'm jus

Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point

2022-08-12 Thread David Bremner
Alexander Adolf writes: > Hello David, > > thanks for your comments and questions. > > David Bremner writes: > >> Alexander Adolf writes: >> >>> As I wanted email address completion via completion-at-point in >>> message-mode too, I implemented a new EUDC function to go into >>> completion-at-p

Re: Overriding mm-inline-override-types in notmuch-show

2022-08-11 Thread David Bremner
David Bremner writes: > Al Haji-Ali writes: > >> The variable `mm-inline-override-types` is overridden in `notmuch-show` to >> "stop application/* parts from being displayed". >> >> This works well, however it means in other places the part *is* expanded. >> For example when `(notmuch-show-ref

Re: Embed elisp.py from flycheck, use it in notmuch-emacs doc

2022-08-11 Thread David Bremner
Tomi Ollila writes: > > This series is probably good; at least it does not break software > (and if doc quality (or making of it) gets better then good :D) > > Tomi Applied to master. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscrib

Re: [PATCH 3/3] doc: add some documentation about duplicate files.

2022-08-11 Thread David Bremner
David Bremner writes: > This is mainly motivated by the new emacs-UI features to select > duplicates, but hopefully it will help demystify things for users of > the CLI as well. applied the remaining two patches to master (with a tiny adjustment of wording for the man output in the second patch)

Re: [PATCH 2/2] emacs/show: restrict inlined mimetypes on refresh.

2022-08-11 Thread David Bremner
Tomi Ollila writes: > On Mon, Aug 01 2022, David Bremner wrote: > >> This fixes the bug reported by Al [1]. Essentially apply the same fix >> as [2] in a different place. >> >> [1]: id:877d41nmr1@gmail.com >> [2]: 90a7c1af368a527700dcde9b0dcbd760afc7bd92 > > LGTM. > > Tomi Applied to master.

Re: Embed elisp.py from flycheck, use it in notmuch-emacs doc

2022-08-10 Thread Tomi Ollila
On Sun, Jul 31 2022, David Bremner wrote: > After finding myself spending a while trying to re-create one of the > features [0] of the el sphinx domain used in flycheck, I decided to try > just converting the docs to use that sphinx extension. > > As I remarked in 2018 [1], there

Re: [PATCH 2/2] emacs/show: restrict inlined mimetypes on refresh.

2022-08-10 Thread Tomi Ollila
On Mon, Aug 01 2022, David Bremner wrote: > This fixes the bug reported by Al [1]. Essentially apply the same fix > as [2] in a different place. > > [1]: id:877d41nmr1@gmail.com > [2]: 90a7c1af368a527700dcde9b0dcbd760afc7bd92 LGTM. Tomi > --- > emacs/notmuch-show.el | 1 + > test/T450-e

Re: Create tags from folders

2022-08-09 Thread David Bremner
Reto writes: > > Out of interest, how does your workflow look like? > All based on folder queries? I don't use folders much anymore. My main searches are defined in terms of List-ID ORed with tags to sort into mailing-list-like-things (as some things I think should be part of the list are missing

Re: Create tags from folders

2022-08-08 Thread Reto
On Mon, Aug 08, 2022 at 10:39:36PM -0300, David Bremner wrote: > e.g. query:python as > 'folder:reto@labrat.space/INBOX.lists.python-list' > This has the advantage that you don't have to retag when new files are > added, which is often the desired behaviour. Thanks, I do use queries for some thing

Re: Create tags from folders

2022-08-08 Thread David Bremner
Reto writes: > > Second, I let notmuch index multiple email addresses in the same store, > meaning my folder queries are then nested rather deep. > > So my lovely tag:python query amounts to `notmuch search > 'folder:reto@labrat.space/INBOX.lists.python-list'` > > Which... is a mouthful. > > Reg

Re: Create tags from folders

2022-08-08 Thread Reto
lovely tag:python query amounts to `notmuch search 'folder:reto@labrat.space/INBOX.lists.python-list'` Which... is a mouthful. Regexes aren't a solution, just makes it now two problems as I have multiple python lists that could match ;) Cheers, Reto PS: not op, but also re-

Re: [PATCH 6/9] test: Add test cases for new exclude option

2022-08-08 Thread Mohsin Kaleem
Tag some mail with foo. 3. Run `M-x notmuch-refresh-this-buffer` and the mail you tagged should no longer be shown. 4. Hit the i key and it will be shown again. 5. Hit i again and it will be hidden. 6. Hit i again to re-show it and go ahead and remove the foo tag 7. Run `M-x notmuch-refresh-this-

Re: Create tags from folders

2022-08-08 Thread Thomas Schneider
Hi, Notmuch mailinglist writes: > My email is from Protonmail and I use sieve filters to organise my mail as > needed into folders. > Mbsync creates a folder structure which mirrors what is on my proton mail > account. > But is it possible for notmuch to create tags based on the folders within

Re: [PATCH 6/9] test: Add test cases for new exclude option

2022-08-08 Thread Tomi Ollila
uire_emacs > +add_email_corpus > +notmuch config set search.exclude_tags deleted > +notmuch tag +deleted -- 'from:"Stewart Smith"' or 'from:"Chris Wilson"' > + > +# Basic test cases just asserting exclude option is working and consistent. >

Re: matching both accented and non-accented character for non-accented characters?

2022-08-08 Thread David Bremner
turned off for given term) and at indexing time. So yeah, changing the stemming algorithm with change the database (and require a re-index). ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: matching both accented and non-accented character for non-accented characters?

2022-08-08 Thread Bence Ferdinandy
Thanks! I didn't know unicode equivalence existed, but it seems to be the feature I want, so at least now I have a name for it :) And yes, actually setting the stemmer would also be cool, I saw that Xapian has a Hungarian stemmer but I kind of assumed all stemmers are applied somehow (although it m

Re: matching both accented and non-accented character for non-accented characters?

2022-08-08 Thread David Bremner
Bence Ferdinandy writes: > Hi, > > I'm in the process of trying to set up reading email in the terminal and > just installed notmuch, which looks like a pretty awesome tool. I currently > have one question nagging me: > > I have a lot of mail in my native Hungarian, which properly written is full

Re: Create tags from folders

2022-08-08 Thread Tomi Ollila
On Sun, Aug 07 2022, Notmuch mailinglist wrote: > Hello, > > I've managed to get mbsync, notmuch and neomutt all setup. But its now time > for fine tuning and tinkering. > My email is from Protonmail and I use sieve filters to organise my mail as > needed into folders. > Mbsync creates a folder

Re: [PATCH] emacs: add new option notmuch-search-exclude

2022-08-07 Thread Mohsin Kaleem
David Bremner writes: Hi, thanks for all the advice :-). I'm still quite unfamiliar with mailing-list based workflows so I keep developing like I'm on GitHub. > I think the patch series needs a bit of cleanup still. The first two > patches occur twice and then a later patch is reverted (so presu

Re: [PATCH 1/2] test/emacs: add known broken test for stashing duplicate filename

2022-08-07 Thread David Bremner
David Bremner writes: > This duplicates (no pun intended) one of the bugs reported by Gregor > in id:87edxw8jp4.fsf@no.workgroup applied all 5 patches in this thread to master. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send

Re: [PATCH] NEWS: initial set of NEWS for 0.37.

2022-08-06 Thread David Bremner
David Bremner writes: > There are one or two more changes to apply (and potentially document) > before release, but this covers most of my commits. applied to master. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email t

Re: [PATCH 1/3] doc/notmuch: merge two sections on external commands.

2022-08-06 Thread David Bremner
David Bremner writes: > When adding the description of the propagation of NOTMUCH_CONFIG, I > missed that there was already a section on external commands, with a > different title. This one patch applied to master ___ notmuch mailing list -- notmuch@n

Re: [PATCH 1/6] tests: remove dead code from T055-path-config.sh

2022-08-06 Thread David Bremner
David Bremner writes: > This case statement does nothing. > --- > test/T055-path-config.sh | 3 --- > 1 file changed, 3 deletions(-) applied to master. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@n

Re: [bug]: notmuch-emacs: notmuch-show: "c F" shows same file name for different instances of duplicate messages

2022-08-05 Thread Gregor Zattler
Hi David, * David Bremner [2022-08-04; 18:58]: > For those following along at home, I think Gregor refers to the "thread > subject" as shown by e.g. "notmuch search". This might or might not be > related to the message being replaced by a different duplicate. actually I referred to the very first

Re: [bug]: notmuch-emacs: notmuch-show: "c F" shows same file name for different instances of duplicate messages

2022-08-05 Thread Gregor Zattler
Hi David, * David Bremner [2022-08-04; 18:47]: > Gregor Zattler writes: >> the new feature of showing different instances of emails >> with same Message-Id is great and very helpful. >> >> But in notmuch-emacs, when hitting "c F" in notmuch show >> always stashes the very same filename, in my cas

Re: [bug]: notmuch-emacs: notmuch-show: "c F" shows same file name for different instances of duplicate messages

2022-08-04 Thread David Bremner
David Bremner writes: > Gregor Zattler writes: > >> Since the emails in this test case differ in Subjects they >> reveal another problem with showing different instances of >> seemingly same emails: While cycling through the three >> emails in notmuch show the Subject line is duly showed as >> "

Re: [bug]: notmuch-emacs: notmuch-show: "c F" shows same file name for different instances of duplicate messages

2022-08-04 Thread David Bremner
Gregor Zattler writes: > Dear notmuch developers, > > the new feature of showing different instances of emails > with same Message-Id is great and very helpful. > > But in notmuch-emacs, when hitting "c F" in notmuch show > always stashes the very same filename, in my case the one > fitting the s

Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point

2022-08-02 Thread Alexander Adolf
Hello David, thanks for your comments and questions. David Bremner writes: > Alexander Adolf writes: > >> As I wanted email address completion via completion-at-point in >> message-mode too, I implemented a new EUDC function to go into >> completion-at-point-functions [3]. >> >> [1] https://co

Re: lastmod based on date/time

2022-08-01 Thread David Bremner
Al Haji-Ali writes: > Would it be possible to search for lastmod messages based on time > rather than revision ID? Using revision ID is convenient for > tools/scripts, but not for actual everyday use. > The modification time is not saved in the database. > I sometimes find myself needing to fi

Re: Sending mail succeeded but signaled failure

2022-08-01 Thread Justus Winter
((stringp exit-value) >> 1349 (setq error t) >> 1350 (error "Sending...terminated by signal: >> %s" exit-value)) >> 1351 (t >> 1352

Re: Sending mail succeeded but signaled failure

2022-08-01 Thread Dan Čermák
(t > 1352 (setq error t) > 1353 (error "SENDMAIL-SEND-IT -- fall > through: %S" exit-value > 1354(or fcc-was-found > 1355(error "No rec

Re: [PATCH] notmuch.c: add missing trailing newlines in two error messages

2022-07-31 Thread David Bremner
Tomi Ollila writes: > Removed duplicate error check (and the message) in 3rd case where > the same error message (w/o trailing newline) was present. > > In case of test/T040-setup.sh, command substitution deletes > trailing newlines, so related test there cannot be changed > (and therefore could

Re: [PATCH] notmuch.c: add missing trailing newlines in two error messages

2022-07-31 Thread David Bremner
Tomi Ollila writes: > Removed duplicate error check (and the message) in 3rd case where > the same error message (w/o trailing newline) was present. > > In case of test/T040-setup.sh, command substitution deletes > trailing newlines, so related test there cannot be changed > (and therefore could

Re: Multiple files per message in emacs

2022-07-31 Thread Rafael Ávila de Espíndola
David Bremner writes: > Rafael Ávila de Espíndola writes: > >> Hi, >> >> I got a few emails which all have the same Message-ID: >> >> $ notmuch search subject:'"MB WAY"' >> thread:00089926 34 mins. ago [1/1(3)] MB WAY >> >> $ notmuch search --output=files subject:'"MB WAY"' | xargs g

Re: Sending mail succeeded but signaled failure

2022-07-30 Thread Justus Winter
(t 1352 (setq error t) 1353 (error "SENDMAIL-SEND-IT -- fall through: %S" exit-value 1354 (or fcc-was-found 1355 (error "No recipients"))) 1356(if mail-interacti

Re: Sending mail succeeded but signaled failure

2022-07-30 Thread Justus Winter
Hi Dan :) Dan Čermák writes: > Hi Justus, > > Justus Winter writes: > >> Hello, >> >> I just embarrassed myself a little by sending the same mail over and >> over again. The reason for that is that notmuch-emacs signaled failure, >> i.e. it displayed an error message in the status buffer and d

Re: [PATCH] emacs: add new option notmuch-search-exclude

2022-07-30 Thread David Bremner
Mohsin Kaleem writes: > David Bremner writes: > > Hi, firstly sorry for taking so long to come back to this. I honestly > have tried to fix this multiple times since my last message but kept > getting confused or misdirected by how the tests are setup so I gave up > and decided to come back to i

Re: Multiple files per message in emacs

2022-07-30 Thread David Bremner
Rafael Ávila de Espíndola writes: > Hi, > > I got a few emails which all have the same Message-ID: > > $ notmuch search subject:'"MB WAY"' > thread:00089926 34 mins. ago [1/1(3)] MB WAY > > $ notmuch search --output=files subject:'"MB WAY"' | xargs grep -i Message-ID > .../Inbox/cur/1

Re: a DoS vulnerability associated with conflated Message-IDs?

2022-07-30 Thread David Bremner
Daniel Kahn Gillmor writes: > On Fri 2017-08-04 16:42:54 -0400, David Bremner wrote: >> Peter Wang writes: >> >>> On Thu, 08 Mar 2012 11:37:09 -0500, Daniel Kahn Gillmor >>> wrote: notmuch currently treats all messages with the same Message-ID as the same message. I think this could

Re: [Emacs] Using notmuch-address with EUDC, and completion-at-point

2022-07-30 Thread David Bremner
Alexander Adolf writes: > As I wanted email address completion via completion-at-point in > message-mode too, I implemented a new EUDC function to go into > completion-at-point-functions [3]. > > [1] https://company-mode.github.io > [2] https://github.com/minad/corfu > [3] https://github.com/emac

Re: [PATCH 6/6] doc/emacs: add docstring for notmuch-unthreaded-result-format.

2022-07-30 Thread David Bremner
David Bremner writes: > The main change is actually updating cross references. series applied to master. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: [PATCH 9/9] emacs/reply: reply to correct duplicate

2022-07-30 Thread David Bremner
David Bremner writes: > Essentially we just need to arrange to pass the right --duplicate > argument to notmuch reply. > > As a side-effect, correct the previously unused value of EXPECTED in > T453-emacs-reply.sh. remainder of series applied to master. d ___

Re: Overriding mm-inline-override-types in notmuch-show

2022-07-27 Thread David Bremner
Al Haji-Ali writes: > The variable `mm-inline-override-types` is overridden in `notmuch-show` to > "stop application/* parts from being displayed". > > This works well, however it means in other places the part *is* expanded. For > example when `(notmuch-show-refresh-view)` is called (after any

Re: Database location bug when database does not already exist

2022-07-27 Thread David Bremner
David Bremner writes: > Sean Whitton writes: > >> Hello, >> >> In the following situation: >> >> - only notmuch config is ~/.notmuch-config >> - database.mail_root is set >> - database.path is not set >> - notmuch database does not yet exist >> >> then notmuch wants to create its db under mail_r

Re: Sending mail succeeded but signaled failure

2022-07-26 Thread Dan Čermák
Hi Justus, Justus Winter writes: > Hello, > > I just embarrassed myself a little by sending the same mail over and > over again. The reason for that is that notmuch-emacs signaled failure, > i.e. it displayed an error message in the status buffer and didn't close > the compose buffer, yet it di

Re: Sending mail succeeded but signaled failure

2022-07-26 Thread David Bremner
Justus Winter writes: > Hello, > > I just embarrassed myself a little by sending the same mail over and > over again. The reason for that is that notmuch-emacs signaled failure, > i.e. it displayed an error message in the status buffer and didn't close > the compose buffer, yet it did in fact se

Re: Database location bug when database does not already exist

2022-07-25 Thread David Bremner
Sean Whitton writes: > Hello, > > In the following situation: > > - only notmuch config is ~/.notmuch-config > - database.mail_root is set > - database.path is not set > - notmuch database does not yet exist > > then notmuch wants to create its db under mail_root/.notmuch, contrary > to notmuch-c

Re: [PATCH] emacs: add new option notmuch-search-exclude

2022-07-24 Thread Mohsin Kaleem
`=`` Refresh the buffer -- 2.37.1 >From e9ce2bf2eaf2aabba3faee2e128bbf95329eb602 Mon Sep 17 00:00:00 2001 From: Mohsin Kaleem Date: Sun, 24 Jul 2022 16:30:58 +0100 Subject: [PATCH 05/11] test: Fix Search handles subprocess error exit codes Add in a new option --exclude which wasn't p

Re: Feature request: show destination in tree view when appropriate

2022-07-21 Thread Jon Hurst
I'll just add this to the record as well in case it is useful to someone searching for examples of how to use this functionality: (defun -notmuch-flag (format-string msg) (let ((tags (plist-get msg :tags))) (format format-string (cond ((member "deleted" tags) "D")

Re: Feature request: show destination in tree view when appropriate

2022-07-19 Thread Jon Hurst
> (defun inwit/notmuch-search-authors-or-to (format-string result) > (let* ((headers (plist-get result :headers)) > (to (plist-get headers :To)) > (author (plist-get headers :From))) >(format format-string > (if (string-match "inwit" author) > (concat "To: "

Re: Feature request: show destination in tree view when appropriate

2022-07-19 Thread inwit
On Sat Jul 16, 2022 at 3:23 PM CEST, Jon Hurst wrote: > For the record: > > (defun -notmuch-authors-or-to (format-string result) (let* ((headers > (plist-get result :headers)) (match (plist-get result :match)) (to (plist-get > headers :To)) (author (notmuch-tree-clean-address (plist-get headers :Fr

Re: [PATCH v2] CLI/git: opportunistically use bindings to check for known messages

2022-07-16 Thread David Bremner
Tomi Ollila writes: > On Fri, Jul 15 2022, David Bremner wrote: > >> If the bindings are installed, use them to avoid one exec of notmuch >> search per message. > > tnx. continues to work for me where I have symlink to nmbug in ~/bin/. > some time in the future i'll investigate whether i get > p

Re: Feature request: show destination in tree view when appropriate

2022-07-16 Thread David Bremner
Jon Hurst writes: > Many thanks David; just what I needed. > >> tested either, but I suppose you would need to write a function like >> author-or-to that decides for each message which of those to insert. > > For the record: > > > (defun -notmuch-authors-or-to (format-string result) > (let* ((h

Re: [PATCH v2] CLI/git: opportunistically use bindings to check for known messages

2022-07-16 Thread Tomi Ollila
On Fri, Jul 15 2022, David Bremner wrote: > If the bindings are installed, use them to avoid one exec of notmuch > search per message. tnx. continues to work for me where I have symlink to nmbug in ~/bin/. some time in the future i'll investigate whether i get python3 path/to/nmbug.zip ... worki

Re: Feature request: show destination in tree view when appropriate

2022-07-16 Thread Jon Hurst
Many thanks David; just what I needed. > tested either, but I suppose you would need to write a function like > author-or-to that decides for each message which of those to insert. For the record: (defun -notmuch-authors-or-to (format-string result) (let* ((headers (plist-get result :header

Re: Feature request: show destination in tree view when appropriate

2022-07-16 Thread David Bremner
Jon Hurst writes: > Hi, > > In the emacs front end, I can specify authors in the format for search > results and trees. This is great when looking at received mail, but when > looking at sent mail it is not optimal. I have used mutt in the past, > and this puts "To: xxx*.xxx" in this field fo

Re: [PATCH] doc/emacs: add notmuch-show-empty-saved-searches to manual

2022-07-15 Thread David Bremner
David Bremner writes: > Answering a user question, I had to dig for this variable, but I think > it is a reasonably common customization wish, particularly for users > with custom count-functions. applied to master. d ___ notmuch mailing list -- notmu

Re: [PATCH] doc/emacs: define and use emacsvar and emacscmd markup

2022-07-15 Thread David Bremner
David Bremner writes: > This makes it easier to navigate the merged index of all of the > notmuch documentation. applied to master, after extending to cover the new docs from 5e17495a d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscrib

Re: [PATCH] doc: improve config item labels in info output

2022-07-15 Thread David Bremner
David Bremner writes: > Commit 306b7028d added the nmconfig role / directive. Unfortunately > the default of using the directive name in texinfo output is pretty > ugly, so attempt to make it more human readable by passing `objname` > to add_object_type invocation. applied to master. ___

Re: [PATCH 1/3] doc: reorganize sphinx toctree

2022-07-15 Thread David Bremner
David Bremner writes: > This mainly affects the html output (although users generating epub or > pdf would also notice a change). The goal is twofold: make the TOC a > bit friendler and easier to navigate by introducing some hierarchy, > and allow links for nmbug and notmuch-setup. series applie

Re: provide various lazy-show options

2022-07-14 Thread David Bremner
David Bremner writes: > It is a bit of an unfortunate profusion of options, but it isn't > really clear to me yet if there is one best heuristic for all > use-cases. The overall observation is that for most threads (even up > to several hundred messages), the time to return the query from the > n

Re: [PATCH 4/4] CLI/git: replace calls to notmuch-search with database access

2022-07-09 Thread Michael J Gruber
Am Do., 7. Juli 2022 um 17:59 Uhr schrieb David Bremner : > > Tomi Ollila writes: > > > On Sun, Jul 03 2022, David Bremner wrote: > > > > I've trying to think if there were a way to somehow run only one notmuch > > command instead of notmuch search on all maeby-deleted files -- or > > alternativel

quoting: (was: Re: bug#56442: gnus-search-run-search: Hits notmuch command line length limits)

2022-07-09 Thread Tomi Ollila
On Sat, Jul 09 2022, Eric Abrahamsen wrote: > > Huh, I tried this a couple months ago with a more complicated query, > like: > > thread:{from:bob or from:jane} > > and I remember notmuch barking at me about spaces or the "or" or > something -- anyway I got the impression that it couldn't accept >

Re: bug#56442: gnus-search-run-search: Hits notmuch command line length limits

2022-07-09 Thread Sean Whitton
Hello, On Sat 09 Jul 2022 at 09:11AM -07, Eric Abrahamsen wrote: > But looking at your patch maybe I just needed to quote differently? Right, notmuch has this unusual " -> "" quoting thing. > Anyway I'll give this a test this weekend. It would be *very* nice if > we could use this syntax rather

Re: bug#56442: gnus-search-run-search: Hits notmuch command line length limits

2022-07-09 Thread Eric Abrahamsen
Sean Whitton writes: > Hello, > > I'm running a pretty innocent notmuch query over a fairly small Maildir: > > "((List:debian-devel.lists.debian.org) or ... or > (List:debian-haskell.lists.debian.org) or > (List:debconf-discuss.lists.debian.org)) and (not path:annex/**)" > > but gnus-search-run-s

Re: [PATCH 4/4] CLI/git: replace calls to notmuch-search with database access

2022-07-07 Thread David Bremner
Tomi Ollila writes: > On Sun, Jul 03 2022, David Bremner wrote: > > I've trying to think if there were a way to somehow run only one notmuch > command instead of notmuch search on all maeby-deleted files -- or > alternatively attempt to load python bindings and in case of failure use > the notmuc

Re: [PATCH 4/4] CLI/git: replace calls to notmuch-search with database access

2022-07-07 Thread Tomi Ollila
On Sun, Jul 03 2022, David Bremner wrote: > This introduces a dependency on the (new) python bindings, but since > it also yields a 4x performance improvement on the large performance > corpus, I think it is worth it. > --- > debian/control | 1 + > notmuch-git.py | 18 +- >

Re: [PATCH 1/4] debian: add git as a build-dependency, for the test suite

2022-07-07 Thread David Bremner
David Bremner writes: > This is needed to run (and test) notmuch-git. applied this one patch to master ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: [PATCH 1/2] CL/git: add format version 1

2022-07-07 Thread David Bremner
David Bremner writes: > The original nmbug format (now called version 0) creates 1 > subdirectory of 'tags/' per message. This causes problems for more > than (roughly) 100k messages. > > Version 1 introduces 2 layers of hashed directories. This scheme was > chose to balance the number of subdire

Re: [PATCH 2/4] perf-test: add tests for notmuch-git

2022-07-07 Thread David Bremner
Tomi Ollila writes: >> + >> + > > Is three empty lines a bit excessive...? > >> +time_done Fixed in git. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

<    3   4   5   6   7   8   9   10   11   12   >