Re: [PATCH 2/2] Add notmuch-search-show-or-unthread

2024-07-29 Thread David Bremner
Sandra Snan writes: > David Bremner writes: >> 1) can you make a test (probably something in T465 can serve as >> a model > > What does T465 refer to? test/T465-emacs-unthreaded.sh > > But if the treshhold is too big it won't prevent any crashes, > overloads, or uncomfortably unergonomic

Re: [PATCH 2/2] Add notmuch-search-show-or-unthread

2024-07-26 Thread Sandra Snan
David Bremner writes: 1) can you make a test (probably something in T465 can serve as a model What does T465 refer to? 2) Should this be bound by default, or is the function in the next patch always the one users will want? The latter since it prevents crashes. I've been dogfooding this

Re: [PATCH] config: allow custom separators in author lists

2024-07-26 Thread David Bremner
Lars Kotthoff writes: > Thanks David, I've attached the modified patch that I think addresses > all your comments -- I'm still not 100% sure about the whitespace > though. tweaked version applied to master. ___ notmuch mailing list --

Re: [PATCH] config: allow custom separators in author lists

2024-07-25 Thread Lars Kotthoff
Thanks David, I've attached the modified patch that I think addresses all your comments -- I'm still not 100% sure about the whitespace though. Thanks, Lars On Thu, 25 Jul 2024 17:33:48 +0900, David Bremner wrote: > Lars Kotthoff writes: > > > Sorry, I dropped the ball on this -- here's

Re: [PATCH 2/2] Add notmuch-search-show-or-unthread

2024-07-25 Thread David Bremner
Sandra Snan writes: > > It shells out to notmuch count to see if the thread is big or small. > "Big" is hardcoded to ten messages or lower, if we want to introduce a > variable for that instead, that might be great. Yes, I think a defcustom is called for. > > It's a deliberate choice to count

Re: [PATCH 1/2] Add notmuch-search-unthread-thread

2024-07-25 Thread David Bremner
Sandra Snan writes: > + (interactive "P") > + (let ((thread-id (notmuch-search-find-thread-id))) > +(if thread-id > + (notmuch-unthreaded (if entire thread-id > + (concat notmuch-search-query-string " and " > thread-id))) > + (message "No such thread

Re: [PATCH] Check for erroneous subjects

2024-07-25 Thread David Bremner
Tony Zorman writes: > Hi, > > this adds a new custom variable, `notmuch-mua-subject-regexp`, and an > associated function, `notmuch-mua-subject-check`, to warn the user when > the subject contains potentially troublesome things (e.g., nothing at > all). The idea is the same as

Re: [PATCH v2 2/2] lib: thread-safe s-expression query parser

2024-07-25 Thread David Bremner
Kevin Boulain writes: > Follow-up of 6273966d, now that sfsexp 1.4.1 doesn't rely on globals > anymore by default (https://github.com/mjsottile/sfsexp/issues/21). > > This simply defers the initial query generation to use the thread-safe > helper (xapian_query_match_all) instead of

Re: [PATCH] emacs/hello: refresh hello directly

2024-07-25 Thread David Bremner
David Bremner writes: > According to the now deleted commentary, the hack of using run-at-time > was needed for Emacs 24. It seems to be no longer needed for Emacs > 28.2, and removing it makes further changes to the code simpler. applied to master

Re: [PATCH] CLI/git: add reset command

2024-07-25 Thread David Bremner
David Bremner writes: > Sometimes merging is not what we want with tags; in particular it > tends to keep tags in the local repo that have been removed elsewhere. > This commit provides a new reset command; the reset itself is trivial, > but the work is to provide a safety check that uses the

Re: [PATCH] config: allow custom separators in author lists

2024-07-25 Thread David Bremner
Lars Kotthoff writes: > Sorry, I dropped the ball on this -- here's the patch again with space/tab > inconsistencies fixed. I wasn't entirely sure about this as it's inconsistent > in the existing source, so I tried to make it as consistent as possible. > Cover included again below. > Hi

Re: Editing the raw mail file?

2024-07-10 Thread David Bremner
is. > Maybe something like the re-edit draft as new interface (e), although allowing arbitrary edits is a bit of a footgun, so we'd probably want to make people confirm "are you sure, this could destroy your message" or similar. I'm too far behind to do this myself, but I'll (ev

Re: Editing the raw mail file?

2024-07-10 Thread Morten Kjeldgaard
David Bremner wrote: > you can use "c F" to copy the file name of the current message into the > the kill ring, then just yank wherever useful (e.g. to visit the file in > emacs). > > After editing you will need to reindex that file. One way would be > to use "c i" to copy the message id into

Re: Editing the raw mail file?

2024-07-09 Thread David Bremner
Morten Kjeldgaard writes: > > It's tedious to use the notmuch CLI client to search for the mail and > then copy/paste the filename, and edit it to correct the date. It would > be so much easier if it were possible to edit the raw file directly in > Emacs. I can use 'V' to view the raw file, and

Re: Error when running notmuch new

2024-06-28 Thread David Bremner
Aidan Jones writes: >> >> This is the only line that caught my eye. >> >> Can you try >> >> $ notmuch config set maildir.synchronize_flags true > > That did it. Thanks for the help! Glad to hear it. We should try to provide a more informative error message here. d

Re: Error when running notmuch new

2024-06-27 Thread Aidan Jones
Sent with Proton Mail secure email. On Thursday, June 27th, 2024 at 10:39 AM, David Bremner wrote: > Aidan Jones arjones...@protonmail.ch writes: > > > > > maildir.synchronize_flags=sync > > > This is the only line that caught my eye. > > Can you try > > $ notmuch config set

Re: Error when running notmuch new

2024-06-27 Thread David Bremner
Aidan Jones writes: > maildir.synchronize_flags=sync This is the only line that caught my eye. Can you try $ notmuch config set maildir.synchronize_flags true ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to

Re: Error when running notmuch new

2024-06-27 Thread Aidan Jones
Sent with Proton Mail secure email. On Wednesday, June 26th, 2024 at 3:44 PM, David Bremner wrote: > Aidan Jones arjones...@protonmail.ch writes: > > > I am new to notmuch, so I apologize if this is just an operator > > error. I have a local maildir created using offlineimap. I have ran

Re: Error when running notmuch new

2024-06-26 Thread David Bremner
Aidan Jones writes: > I am new to notmuch, so I apologize if this is just an operator > error. I have a local maildir created using offlineimap. I have ran > notmuch setup and configured notmuch to use the maildir as its > archive. However, running notmuch new returns 'notmuch new: Illegal >

Re: desktop file to open mailto URLs in Emacs notmuch-message-mode

2024-06-19 Thread Arun Isaac
Hi Tomi, >> Lovely! This is exactly what I am looking for. But, in addition, we also >> need another desktop file that uses emacsclient instead of emacs. It >> would be great if notmuch provided that. > > That is kinda provided, if u get the ./emacs/notmuch-emacs-mua.desktop > file and did > >

Re: desktop file to open mailto URLs in Emacs notmuch-message-mode

2024-06-19 Thread Tomi Ollila
On Tue, Jun 18 2024, Arun Isaac wrote: > Hi David, > >> There is emacs/notmuch-mua-mail.desktop in the source. This seems to do >> what you ask for? > > Lovely! This is exactly what I am looking for. But, in addition, we also > need another desktop file that uses emacsclient instead of emacs. It

Re: Selection bug

2024-06-19 Thread David Bremner
David Bremner writes: > > This reproduces the problem for me. Indeed it looks a bit like a similar > "cursor jumping" problem I have seen (and someone else has reported on > IRC). I will see if I can figure anything more out now that I have a > reproducer. I think the following is a (simpler)

Re: [PATCH v2 2/2] Replace `delete-line` with its definition

2024-06-19 Thread David Bremner
michaeljgruber+grubix+...@gmail.com writes: > From: Michael J Gruber > > 37c022ae ("Use `without-restriction` in > `with-temporary-notmuch-message-buffer`", 2024-03-14) > introduced `delete-line` in a test, but this is Emacs 29 and above only. > Replace it with its (almost) definition. both v2

Re: [PATCH v2 2/2] Replace `delete-line` with its definition

2024-06-18 Thread Michael J Gruber
Am Di., 18. Juni 2024 um 07:58 Uhr schrieb Marc Fargas : > > Hi, > > El lun. 17 de jun. 2024, David escribió: > > > >> From: Michael J Gruber > >> > >> 37c022ae ("Use `without-restriction` in > >> `with-temporary-notmuch-message-buffer`", 2024-03-14) > >> introduced `delete-line` in a test, but

Re: [PATCH v2 2/2] Replace `delete-line` with its definition

2024-06-18 Thread Marc Fargas
Hi, El lun. 17 de jun. 2024, David escribió: > >> From: Michael J Gruber >> >> 37c022ae ("Use `without-restriction` in >> `with-temporary-notmuch-message-buffer`", 2024-03-14) >> introduced `delete-line` in a test, but this is Emacs 29 and above only. >> Replace it with its (almost) definition.

Re: desktop file to open mailto URLs in Emacs notmuch-message-mode

2024-06-17 Thread Arun Isaac
Hi David, > There is emacs/notmuch-mua-mail.desktop in the source. This seems to do > what you ask for? Lovely! This is exactly what I am looking for. But, in addition, we also need another desktop file that uses emacsclient instead of emacs. It would be great if notmuch provided that.

Re: [PATCH v2 2/2] Replace `delete-line` with its definition

2024-06-17 Thread David Bremner
michaeljgruber+grubix+...@gmail.com writes: > From: Michael J Gruber > > 37c022ae ("Use `without-restriction` in > `with-temporary-notmuch-message-buffer`", 2024-03-14) > introduced `delete-line` in a test, but this is Emacs 29 and above only. > Replace it with its (almost) definition. The

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-17 Thread David Bremner
Marc Fargas writes: > Hi, > > El lun. 17 de jun. 2024, Marc escribió: >> >> El lun. 17 de jun. 2024, Michael escribió: (...) >>> >>> Does this depend on emacs version by any chance, i.e. is >>> `without-restriction` defined on all emacsen? In Fedora's copr >>> infrastructure, all builds

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-17 Thread Marc Fargas
Hi, El lun. 17 de jun. 2024, Marc escribió: > > El lun. 17 de jun. 2024, Michael escribió: >>> (...) >> >> Does this depend on emacs version by any chance, i.e. is >> `without-restriction` defined on all emacsen? In Fedora's copr >> infrastructure, all builds succeed but some tests fail with >>

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-17 Thread Marc Fargas
Hi, El lun. 17 de jun. 2024, Michael escribió: >> (...) > > Does this depend on emacs version by any chance, i.e. is > `without-restriction` defined on all emacsen? In Fedora's copr > infrastructure, all builds succeed but some tests fail with > `Symbol'€™s function definition is void:

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-17 Thread David Bremner
David Bremner writes: > Marc Fargas writes: > >> Hi, >> >> El lun. 17 de jun. 2024, Michael escribió: (...) >>> >>> Does this depend on emacs version by any chance, i.e. is >>> `without-restriction` defined on all emacsen? In Fedora's copr >>> infrastructure, all builds succeed but some

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-17 Thread David Bremner
Marc Fargas writes: > Hi, > > El lun. 17 de jun. 2024, Michael escribió: >>> (...) >> >> Does this depend on emacs version by any chance, i.e. is >> `without-restriction` defined on all emacsen? In Fedora's copr >> infrastructure, all builds succeed but some tests fail with >> `Symbol'€™s

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-17 Thread Michael J Gruber
Am Sa., 15. Juni 2024 um 19:57 Uhr schrieb David Bremner : > > Marc Fargas writes: > > > Hi again, > > > > El dom. 24 de mar. 2024, Marc escribió: > >> El mié. 13 de mar. 2024, Carl escribió: > >>> (...) > >>> Could you put your fix together in the form of a git-appliable patch? > >>> Such as by

Re: notmuch.el, needs without-restriction to properly save draft

2024-06-15 Thread David Bremner
Marc Fargas writes: > Hi again, > > El dom. 24 de mar. 2024, Marc escribió: >> El mié. 13 de mar. 2024, Carl escribió: >>> (...) >>> Could you put your fix together in the form of a git-appliable patch? >>> Such as by applying it to the notmuch source, running `git commit` and >>> then `git

Re: [PATCH] test/cli: Add known broken test for (missing) quoting in From

2024-06-15 Thread David Bremner
David Bremner writes: > In [1], Jakub Wilk observes that the current behaviour is confusing > since it looks like there are two mailboxes in From, while in fact > there is only one. It seems to me that notmuch should at least quote > the display-name part of a mailbox if it has "funny"

Re: Emacs: text/calendar rendering fix

2024-06-15 Thread David Bremner
David Bremner writes: > The actual fix here is quite trivial, but it takes some work to test. > Compared to the previous version in the thread at [1], this updates > the 3rd patch in the series to actually duplicate the problem, and > adds the 4th patch with the actual fix. > > [1]:

Re: desktop file to open mailto URLs in Emacs notmuch-message-mode

2024-06-13 Thread David Bremner
Arun Isaac writes: > This is a feature request. > > Emacs comes with emacs-mail.desktop and emacsclient-mail.desktop files > that allows opening mailto URLs in message-mode. Can we provide similar > desktop files for notmuch-emacs so that one can open mailto URLs in > notmuch-message-mode?

Re: How to disable image and PDF preview in emacs notmuch-show buffer?

2024-06-11 Thread David Bremner
Viktor Larkin writes: > Hello, David. Seems like I've got it wrong. Could you please provide an > example of how I should change mm-inline-override-types? I've tried this > way > > (setq mm-inline-override-types '("image/.*")) > > It didn't work as I expect it to. I still see images in

Re: How to disable image and PDF preview in emacs notmuch-show buffer?

2024-06-11 Thread Viktor Larkin
Hello, David. Seems like I've got it wrong. Could you please provide an example of how I should change mm-inline-override-types? I've tried this way (setq mm-inline-override-types '("image/.*")) It didn't work as I expect it to. I still see images in notmuch-show buffer as images, not as

Re: [PATCH] emacs: Autoload notmuch-user-agent related functions

2024-06-10 Thread David Bremner
Jelle Licht writes: > Thanks for applying the patch, but I just noticed I made a mistake; each > of the lines now have a ";;;#autoload" comment, instead of the proper > ";;;###autoload" cookie. My apologies. Should I send a patch fixing > this, or will you push a fix yourself? Please send a

Re: [PATCH] emacs: Autoload notmuch-user-agent related functions

2024-06-09 Thread Jelle Licht
Hi David, David Bremner writes: > jli...@fsfe.org writes: > >> >> ;;; _ >> - >> +;;;#autoload >> (define-mail-user-agent 'notmuch-user-agent >>'notmuch-mua-mail >>'notmuch-mua-send-and-exit > > Applied to master with the deleted blank line put back Thanks for applying the patch,

Re: How to disable image and PDF preview in emacs notmuch-show buffer?

2024-06-07 Thread David Bremner
curiousbarbar...@posteo.net writes: > Hello. > > Is it possible to disable preview of images and PDF files in > notmuch-show buffer in emacs? I've tried to set gnus-inhibit-image to t, > but it looks like it doesn't affect previewing. Any possible built-in > solutions? > > Emacs 29.2 > notmuch

Re: Selection bug

2024-06-05 Thread David Bremner
Justus Winter writes: > David Bremner writes: > > Uh, you are right. I meant to pick mails form notmuch@, but this one is > from another list. I actually reduced the example further: > > mkdir -p /tmp/selection-bug/{tmp,new,cur} > echo "[database] > path=/tmp/selection-bug" >

Re: [PATCH] emacs: Allow customizing :excluded in notmuch-saved-searches

2024-05-29 Thread David Bremner
mohk...@kisara.moe writes: > From: Mohsin Kaleem > applied to master, with a slightly expanded commit message. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: [PATCH 1/4] test: re-enable duplicate UI tests in T460-emacs-tree

2024-05-29 Thread David Bremner
David Bremner writes: > These were disabled (accidentally?) in f63d14a8c12a. > --- > test/T460-emacs-tree.sh | 2 -- > 1 file changed, 2 deletions(-) applied to master. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an

Re: [PATCH 3/3] WIP/test: add tests for rendering text/calendar parts

2024-05-28 Thread Al Haji-Ali
Ah, apologies. I should've done more testing. Turns out I have `find-file-visit-truename` set to non-nil which causes the behaviour I describe. Best regards, -- Al On 28/05/2024, David Bremner wrote: > Al Haji-Ali writes: > >> >> On my setup (MacOS, Emacs 29.1) this prints something like >>

Re: [PATCH 3/3] WIP/test: add tests for rendering text/calendar parts

2024-05-28 Thread David Bremner
Al Haji-Ali writes: > > On my setup (MacOS, Emacs 29.1) this prints something like > > , > | Filename: /Users/al/link-tmp/notmuch-ical7MtHvd > | get-file-buffer: nil > | find-buffer-visiting: # > | buffer-file-name: /private/tmp/notmuch-ical7MtHvd > ` Here it prints Filename:

Re: [PATCH 3/3] WIP/test: add tests for rendering text/calendar parts

2024-05-28 Thread Al Haji-Ali
Yes, that is strange. Based on just looking at the test code, I think this test should indeed fail (I am not able to run in on my machine). In a similar situation, my inline calendar text shows , | !!! Bodypart handler `notmuch-show-insert-part-text/calendar' threw an error: | !!! Wrong

Re: Meaning of offset in notmuch search --output=files --offset=

2024-05-27 Thread Teemu Likonen
* 2024-05-27 09:05:01-0400, Daniel Kahn Gillmor wrote: > I don't see much difference between any of these versions, Then it needs more work still. We want to make it clear for everybody, don't we? Let's go back to my original confusion. Currently it reads: --offset=[-]N Skip

Re: Meaning of offset in notmuch search --output=files --offset=

2024-05-27 Thread Daniel Kahn Gillmor
On Sun 2024-05-26 10:57:14 +0300, Teemu Likonen wrote: > * 2024-05-25 13:20:58+0200, Michael J. Gruber wrote: > >>> Teemu Likonen writes: --offset=[-]N Skip displaying the first N results. With the leading '-', start at the Nth result from the end.

Re: Xapian commits unexpectedly slow

2024-05-26 Thread Matthew Schauer
On Sun, May 26, 2024 at 09:12:57AM -0300, David Bremner wrote: > Apologies, it looks like I never replied to this thread. Probably you > are not longer interested, but I can make a few observations, mainly > that there are a few relevant improvements in later notmuch. Wow! What reminded you of

Re: emacs warnings related to notmuch

2024-05-26 Thread David Bremner
Daniel Kahn Gillmor writes: > Hey notmuch folks-- > > when i launch emacs these days i see the following in my *Warnings* > buffer: > > Warning (comp): notmuch-hello.el:719:22: Warning: docstring wider than 80 > characters Disable showing Disable logging > Warning (comp):

Re: notmuch.el question: reading all messages in thread

2024-05-26 Thread David Bremner
> when I am looking for entire conversations where a topic is being > discussed. E.g. when I want to re-read a long forgotten thread, or one > that surfaced through specific search terms that appear only in a few of > the messages in the thread. In notmuch-show mode, M- opens all messages

Re: Xapian commits unexpectedly slow

2024-05-26 Thread David Bremner
Matthew Schauer writes: > > Nifty! Here are the results -- I assume you know how to interpret them > better than I do: > > T00-new.sh: Testing notmuch new [0.4 large] > Wall(s) Usr(s) Sys(s) Res(K) In/Out(512B) > Initial notmuch new 1163.05

Re: Multiple files per message in emacs

2024-05-26 Thread David Bremner
Rafael Ávila de Espíndola writes: > Rafael Ávila de Espíndola writes: > >>> If you can build from source, there is new support for viewing >>> duplicates in master. >> > > Just tested with 0.37 and it works. One thing that still seems to be > missing is handling different tags. For example,

Re: Meaning of offset in notmuch search --output=files --offset=

2024-05-26 Thread Teemu Likonen
* 2024-05-25 13:20:58+0200, Michael J. Gruber wrote: >> Teemu Likonen writes: >>> --offset=[-]N >>> Skip displaying the first N results. With the leading '-', >>> start at the Nth result from the end. >>> >>> What if we change the first sentence to "Skip displaying

Re: Meaning of offset in notmuch search --output=files --offset=

2024-05-25 Thread Michael J Gruber
Am Sa., 25. Mai 2024 um 12:06 Uhr schrieb David Bremner : > > Teemu Likonen writes: > > > > >> Perhaps the manual page needs a few more words to make it clear. > > > > --offset=[-]N > > Skip displaying the first N results. With the leading '-', > > start at the Nth

Re: Meaning of offset in notmuch search --output=files --offset=

2024-05-25 Thread David Bremner
Teemu Likonen writes: > >> Perhaps the manual page needs a few more words to make it clear. > > --offset=[-]N > Skip displaying the first N results. With the leading '-', > start at the Nth result from the end. > > What if we change the first sentence to "Skip

Re: Meaning of offset in notmuch search --output=files --offset=

2024-05-25 Thread Teemu Likonen
* 2024-05-20 21:24:01+0300, Teemu Likonen wrote: > It doesn't seem clear how offset is counted on command like > > notmuch search --output=files --offset=10 ... > > Does it skip 10 output files (which may belong to less than 10 messages) > or does it skip 10 messages (so it possibly skips

Re: notmuch-search not excluding excluded tags

2024-05-21 Thread richardhstanton
I added the following definitions to my init.el file, which seems to solve the problem: (defun org-notmuch-search-open (path _) "Follow a notmuch search link specified by PATH." (notmuch-search path notmuch-search-oldest-first notmuch-search-hide-excluded)) (defun

Re: notmuch-search not excluding excluded tags

2024-05-21 Thread David Bremner
erik colson writes: > > Thanks for the hint, but tried setting the var with setq-default, but > still same issue.. : > > notmuch-search-hide-excluded is a variable defined in ‘notmuch-lib.el’. > > Its value is nil > Original value was t > Local in buffer *notmuch-saved-tree-1week and

Re: notmuch-search not excluding excluded tags

2024-05-21 Thread erik colson
David Bremner writes: > It might matter how you are setting notmuch-search-hide-excluded. It > is buffer-local (that changed recently, I think) so you need to either > use customize or setq-default. Hi, Thanks for the hint, but tried setting the var with setq-default, but still same issue.. :

Re: notmuch-search not excluding excluded tags

2024-05-20 Thread David Bremner
erik colson writes: > Hi, > > I recently upgraded from an older version in which excluded tags in the > notmuch config were nicely hidden. Now I have exactly the same problem > as Stanton described. I can see notmuch-search-hide-excluded is set > globally to t, but in every search buffer it

Re: notmuch-search not excluding excluded tags

2024-05-20 Thread erik colson
David Bremner writes: > Richard Stanton writes: > >> I have spam and trash defined as excluded tags for notmuch searches and when >> I run (at the command line) the command >> >> notmuch search tag:unread >> >> I get a list of unread messages that does *not* include unread spam or trash >>

[PATCH 1/4] test: re-enable duplicate UI tests in T460-emacs-tree

2024-05-20 Thread David Bremner
These were disabled (accidentally?) in f63d14a8c12a. --- test/T460-emacs-tree.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh index 6ef5c54a..9388a8ed 100755 --- a/test/T460-emacs-tree.sh +++ b/test/T460-emacs-tree.sh @@ -222,8 +222,6 @@

Re: Carriage returns in subject line cause problems in unthreaded and tree mode

2024-05-18 Thread Tomi Ollila
On Thu, May 16 2024, Richard Stanton wrote: > Today I received an email with (raw) subject line > > Subject: =?UTF-8?B?8J+Pi++4jw==?= A SALE to boost your > =?UTF-8?Q?workout=0D=0A?= > > When displayed in Emacs in either unthreaded or tree mode, “^M” appears after > the word “workout”, and the

Re: I don't understand the results of this search query, is this a bug?

2024-05-15 Thread Renaud B.
Hello, Thanks a lot for your answers, I'm happy to have received such thoughtful replies. Like you both pointed out, and from what I get, Notmuch works with message-ids, and since it may happen that several files in different folders have the same message-id, it explains what I was seeing. My

Re: I don't understand the results of this search query, is this a bug?

2024-05-14 Thread Michael J Gruber
Am Mo., 13. Mai 2024 um 23:38 Uhr schrieb Carl Worth : > > Hi Renaud, > > I was able to see similar behavior in my own mail store. And I agree > that this behavior is confusing! > > The documentation for the --files option of notmuch search documents the > cause (and predicts that this will be

Re: I don't understand the results of this search query, is this a bug?

2024-05-13 Thread Carl Worth
Hi Renaud, I was able to see similar behavior in my own mail store. And I agree that this behavior is confusing! The documentation for the --files option of notmuch search documents the cause (and predicts that this will be confusing): Note that each message may have multiple filenames

Re: Hiding text/plain with notmuch-multipart/alternative-discouraged

2024-04-30 Thread Jon Fineman
Jon Fineman writes: > I see that if I set this variable to the below value it will hide > text/plain, which is what I would like. > > notmuch-multipart/alternative-discouraged '("text/plain" "multipart/related") > > However I see that when I forward an email that has a text/plain part > that

Re: [BUG] Custom headers in `notmuch-message-headers` are broken

2024-04-20 Thread Herbert Valerio Riedel
>> The end result is that `notmuch-message-headers` variable has no effect. > Not sure if you are still interested, but this should be fixed in > notmuch 0.35 (see show.extra_headers in notmuch-config(1)). I just stumbled over this issue when trying to add "Message-Id" to the list of shown

Re: notmuch-search not excluding excluded tags

2024-04-17 Thread Richard Stanton
In case anyone else is affected by this, the problem I was having was that notmuch-search org links (defined in ol-notmuch.el) were returning results that included spam and trash messages even though I had asked to exclude these. To get around this, redefine org-notmuch-search-open to

Re: notmuch-search not excluding excluded tags

2024-04-16 Thread Richard H. Stanton
Actually, I think the code might be working as intended. Calling notmuch-search interactively things work just fine, and in the comments I see the note "When called interactively, this will prompt for a query and use the configured default sort order.” This sounds like it deliberately ignores

Re: notmuch-search not excluding excluded tags

2024-04-16 Thread Richard H. Stanton
I used edebug to trace through the execution of notmuch-search in notmuch.el. At line 1096, we have the code (let ((proc (notmuch-start-notmuch "notmuch-search" buffer #'notmuch-search-process-sentinel "search" "--format=sexp"

Re: notmuch-search not excluding excluded tags

2024-04-16 Thread Richard H. Stanton
Running (notmuch-search "tag:unread" t t) gives the correct results, so it looks like notmuch-search-hide-excluded is not getting set to the correct default value. > On Apr 16, 2024, at 3:15 PM, Richard H. Stanton > wrote: > > Oh, wait… It's not working on my office machine either. I’ll

Re: notmuch-search not excluding excluded tags

2024-04-16 Thread Richard H. Stanton
Oh, wait… It's not working on my office machine either. I’ll start tracing things and see what happens. By the way, (notmuch-config-get "search.exclude_tags”) returns "spam trash" which is what it should be returning. > On Apr 16, 2024, at 12:00 PM, Richard H. Stanton > wrote: > >

Re: notmuch-search not excluding excluded tags

2024-04-16 Thread Richard H. Stanton
Thanks, David. It all seems to be working fine on my work machine! I can’t decide if that’s good or bad news… I suspect it’ll take me longer to track down what’s going on than if the behavior were consistent on my two machines. > On Apr 16, 2024, at 7:23 AM, David Bremner wrote: > >

Re: notmuch-search not excluding excluded tags

2024-04-16 Thread David Bremner
Richard Stanton writes: > I have spam and trash defined as excluded tags for notmuch searches and when > I run (at the command line) the command > > notmuch search tag:unread > > I get a list of unread messages that does *not* include unread spam or trash > emails. But when I put the following

Re: How to move from end of one thread to beginning of next by pressing "n"?

2024-04-09 Thread Richard Stanton
Jon Fineman writes: > Jon Fineman writes: > >> "Richard H. Stanton" writes: >> >>> I’ve recently installed notmuch with lieer and now have it successfully >>> bringing my mail over from gmail so I can read it locally inside Emacs. >>> This is very nice, and I particularly love the speed of

Re: How to move from end of one thread to beginning of next by pressing "n"?

2024-04-08 Thread Jon Fineman
Jon Fineman writes: > "Richard H. Stanton" writes: > >> I’ve recently installed notmuch with lieer and now have it successfully >> bringing my mail over from gmail so I can read it locally inside Emacs. This >> is very nice, and I particularly love the speed of notmuch’s searches. >>

Re: How to move from end of one thread to beginning of next by pressing "n"?

2024-04-08 Thread Richard H. Stanton
Is there a way to have all searches use tree mode by default? I know I can set this as part of each individual search, but it would save typing if there were a setting to make this the default. > On Apr 8, 2024, at 10:26 AM, Richard H. Stanton > wrote: > > Thanks, Carl. Using tree mode

Re: How to move from end of one thread to beginning of next by pressing "n"?

2024-04-08 Thread Jon Fineman
"Richard H. Stanton" writes: > I’ve recently installed notmuch with lieer and now have it successfully > bringing my mail over from gmail so I can read it locally inside Emacs. This > is very nice, and I particularly love the speed of notmuch’s searches. > However, I’m not seeing how to get

Re: How to move from end of one thread to beginning of next by pressing "n"?

2024-04-08 Thread Richard H. Stanton
Thanks, Carl. Using tree mode seems to solve my problem. > On Apr 8, 2024, at 10:23 AM, Carl Worth wrote: > > On Mon, Apr 08 2024, Richard H. Stanton wrote: >> If I press RETURN to view a message, “n” and “p” move to the >> next/previous message *in the thread*, but motion with “n” stops when

Re: How to move from end of one thread to beginning of next by pressing "n"?

2024-04-08 Thread Carl Worth
On Mon, Apr 08 2024, Richard H. Stanton wrote: > If I press RETURN to view a message, “n” and “p” move to the > next/previous message *in the thread*, but motion with “n” stops when > you get to the end of the thread. Is there a way to set things so that > “n” moves from the end of the current

Re: [PATCH] perf-test/tag: add maildir sync tests

2024-04-05 Thread David Bremner
David Bremner writes: > Today someone asked me the (reasonable) question of how much > performance impact there is from synching tags to maildir flags. It > turns out it is noticeable, about a 50% overhead compared to > non-synched tags (according to these tests). In practice I don't know > if

Re: Scheduling mails

2024-04-04 Thread Marc Fargas
Hi there, > I might be wrong, but I don't think the Gnus agent can be easily reused > from notmuch. We could perhaps save the message as a draft upon C-c C-j, > and then have a periodic timer that checks if any of the drafts has > expired (maybe using a special, additional tag for the search) and

Re: [PATCH] emacs: Mark "notmuch-tree" command for autoloading

2024-04-04 Thread David Bremner
Dmitry Bogatov writes: > Some people (e.g: me) prefer to read their email with threaded > representation by default. > Applied to master. d ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to

Re: [PATCH] emacs: Autoload notmuch-user-agent related functions

2024-04-04 Thread David Bremner
jli...@fsfe.org writes: > > ;;; _ > - > +;;;#autoload > (define-mail-user-agent 'notmuch-user-agent >'notmuch-mua-mail >'notmuch-mua-send-and-exit Applied to master with the deleted blank line put back ___ notmuch mailing list --

Re: notmuch.el, needs without-restriction to properly save draft

2024-04-04 Thread Marc Fargas
Hi all, El dom. 24 de mar. 2024, Marc escribió: > I am attaching a new patch that includes an additional test on > T630-emacs-draft.sh. > > On the test only `References` is at the top (hence hidden by emacs), not > `In-Reply-To`. I guess that does rely on some configuration. > > In any case, the

Re: Scheduling mails

2024-04-04 Thread Marc Fargas
Hi there, > I might be wrong, but I don't think the Gnus agent can be easily reused > from notmuch. We could perhaps save the message as a draft upon C-c C-j, > and then have a periodic timer that checks if any of the drafts has > expired (maybe using a special, additional tag for the search) and

Re: Scheduling mails

2024-04-04 Thread David Bremner
João Pedro writes: > Ah, indeed message properties seem to be more appropriate. Are they > persisted, or are they tied to an Emacs session? They are persisted in the database, and backed up with notmuch dump. > >> but your periodic search would still have to search for all of the >>

Re: Scheduling mails

2024-04-03 Thread João Pedro
Em quarta, 03/04/2024 às 07:06 (-03), David Bremner escreveu: > Message properties might work a bit better than tags Ah, indeed message properties seem to be more appropriate. Are they persisted, or are they tied to an Emacs session? Because I would like to have it so that even if I kill my

Re: Forward email error - forward-sexp: Scan error

2024-04-03 Thread David Bremner
Jon Fineman writes: > Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 22384 > 32216) > scan-sexps(22384 1) > forward-sexp() > mml-expand-html-into-multipart-related((part (type . "text/html") (charset > . "UTF-8") (nofile . "yes") (tag-location . 907) (contents . "

Re: Scheduling mails

2024-04-03 Thread David Bremner
João Pedro writes: > Em terça, 02/04/2024 às 02:05 (+01), Jose A Ortega Ruiz > escreveu: > >> I might be wrong, but I don't think the Gnus agent can be easily reused >> from notmuch. We could perhaps save the message as a draft upon C-c C-j, >> and then have a periodic timer that checks if any

Re: Scheduling mails

2024-04-01 Thread João Pedro
Em terça, 02/04/2024 às 02:05 (+01), Jose A Ortega Ruiz escreveu: > I might be wrong, but I don't think the Gnus agent can be easily reused > from notmuch. We could perhaps save the message as a draft upon C-c C-j, > and then have a periodic timer that checks if any of the drafts has > expired

Re: Scheduling mails

2024-04-01 Thread Jose A Ortega Ruiz
Hi, On Mon, Apr 01 2024, João Pedro wrote: > I am using notmuch in Emacs, with mbsync and msmtp (I actually use > smtpmail.el in Emacs, but it uses the `sendmail' command, which is > symlinked to msmtp) and the only thing I miss from other mail clients > is the ability to schedule a mail to be

Re: notmuch.el, needs without-restriction to properly save draft

2024-03-24 Thread Marc Fargas
Hi again, El dom. 24 de mar. 2024, Marc escribió: > El mié. 13 de mar. 2024, Carl escribió: >> (...) >> Could you put your fix together in the form of a git-appliable patch? >> Such as by applying it to the notmuch source, running `git commit` and >> then `git format-patch HEAD~` or similar. > >

Re: notmuch.el, needs without-restriction to properly save draft

2024-03-24 Thread Marc Fargas
Hello, El mié. 13 de mar. 2024, Carl escribió: > (...) > Could you put your fix together in the form of a git-appliable patch? > Such as by applying it to the notmuch source, running `git commit` and > then `git format-patch HEAD~` or similar. Please disregard the previous patch, consider the

Re: notmuch.el, needs without-restriction to properly save draft

2024-03-24 Thread Marc Fargas
Hello, El mié. 13 de mar. 2024, Carl escribió: > (...) > Could you put your fix together in the form of a git-appliable patch? > Such as by applying it to the notmuch source, running `git commit` and > then `git format-patch HEAD~` or similar. Please disregard the previous patch, consider the

Re: [PATCH] implement a capf for address completion

2024-03-19 Thread Antoine Beaupré
On 2024-03-19 16:12:04, Antoine Beaupré wrote: [...] > The closest we have in the archive is (author in CC): > > <71a3382b-3f1b-4b81-883c-b4a8bd710888%40picnicpark.org> > > ... which writes a new `kea/notmuch-address-message-capf' function from > scratch. It might, however, do a better job than

  1   2   3   4   5   6   7   8   9   10   >