Generalising applying tag changes & resolving

2017-08-10 Thread Sean Whitton
' to add killed, mark as read and then get out of show mode and return to my list of search results. Ideally this wouldn't be a hack. -- Sean Whitton signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https

Maildir sync of seen flag confusing with multiple copies

2017-08-10 Thread Sean Whitton
, because then the message will keep showing as unread in other clients. -- Sean Whitton signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Removing notmuch-wash-excerpt-citations from hook breaks fontlocking

2018-07-25 Thread Sean Whitton
ouring cited text (this is an upstream bug: ;; that function does the colouring for performance reasons but the ;; right answer is to use fontlocking, not overlays, for the colouring) (setq notmuch-wash-citation-lines-prefix 1 notmuch-wash-citation-lines-suffix 10000) --

Removing notmuch-wash-excerpt-citations from hook breaks fontlocking

2018-07-24 Thread Sean Whitton
text. Actual result: Quoted text is not fontlocked. Thanks. -- Sean Whitton signature.asc Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-21 Thread Sean Whitton
), but it should convert it to a thread ID before passing it to `notmuch-show'. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
Dear maintainers, On Thu 21 Nov 2019 at 02:37PM -07, Sean Whitton wrote: > The function `org-notmuch-follow-link' in {org,ol}-notmuch.el calls > `notmuch-show' with an arbitrary notmuch search query. However, the > docstring for `notmuch-show' specifies that a notmuch thread ID, rath

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
-patch If `notmuch-show-thread-id' contains a query which returns a single message, the wrong value is passed to notmuch-extract-patch(1), such that it may not extract all of the patches in the thread. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchma

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
scripts design question, not strictly relevant to the issue of ol-notmuch.el causing the notmuch-show-thread-id variable to be mispopulated. Thank you for your engagement with mailscripts, regardless!) -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-26 Thread Sean Whitton
tmuch:id:f...@bar.baz", the standard notmuch command `notmuch-show-filter-thread' doesn't work. And if you use `C-u c i` to yank the thread ID for pasting into a shell, say, you will yank a value which is not a thread ID. -- Sean Whitton ___ n

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-29 Thread Sean Whitton
n that thread IDs have some annoying properties, it would be > convenient to allow the caller to pass an arbitrary query. Yes, I certainly agree that it would be a more useful API. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2019-11-27 Thread Sean Whitton
[dropping Org-mode list per David's suggestion] Hello, On Wed 27 Nov 2019 at 01:08PM +00, David Edmondson wrote: > On Tuesday, 2019-11-26 at 16:25:29 -07, Sean Whitton wrote: > >> On Tue 26 Nov 2019 at 10:52PM +00, David Edmondson wrote: >> >>> The poor beha

Re: Bug: ol-notmuch.el: calls `notmuch-show' with arbitrary search query

2020-02-29 Thread Sean Whitton
Hello David, On Sun 01 Dec 2019 at 09:01PM +00, David Edmondson wrote: > On Friday, 2019-11-29 at 13:01:00 -07, Sean Whitton wrote: > >> On Wed 27 Nov 2019 at 08:52PM +00, David Edmondson wrote: >>> It's a lot to ask, I know, but if you could provide a specifi

Re: Forcing a sync of maildir flags?

2020-02-20 Thread Sean Whitton
Hello David, Thank you for your reply. On Thu 20 Feb 2020 at 08:22AM -04, David Bremner wrote: > Sean Whitton writes: > >> I have this in my post-new hook: >> >> notmuch tag -unread -- folder:sent >> >> The idea is that copies of my sent mail which ge

Re: Forcing a sync of maildir flags?

2020-02-21 Thread Sean Whitton
Hello, On Thu 20 Feb 2020 at 08:06PM -04, David Bremner wrote: > Sean Whitton writes: > >> So, your hypothesis is that notmuch is opting not to add the Seen flag >> in order to avoid having to move the message from new to cur, for the >> sake of mutt, but that's a bug

Forcing a sync of maildir flags?

2020-02-19 Thread Sean Whitton
+unread -- folder:sent notmuch tag -unread -- folder:sent Is there some more elegant way to force a sync of maildir flags? Am I the only one that has copies of my own mail in my inbox folder, not marked as read from the point of view of anything except notmuch? Please CC me on replies. -- Sean

Re: easy (?) elisp project for notmuch [it's mostly DONE]

2020-04-15 Thread Sean Whitton
Hello, On Wed 15 Apr 2020 at 01:41PM -07, Sean Whitton wrote: > Debian/Ubuntu/etc. you can `apt-get install mailscripts` Oh, and `apt-get install elpa-mailscripts` to get `M-x notmuch-slurp-this-debbug` and `M-x notmuch-slurp-debbug`. -- Sean Whit

Re: easy (?) elisp project for notmuch [it's mostly DONE]

2020-04-15 Thread Sean Whitton
let me know. Kyle, have you considered mirroring >> emacs-devel and the Emacs debbugs as well? > > Sean Whitton (in copy) maintains a script called notmuch-slurp-debbug > that does that. I can't remember if it is tested on the GNU instance of > debbugs. > > https://git.spwhi

notmuch and mailing lists

2020-05-01 Thread Sean Whitton
exploring the NNTP approach, or trying to come up with notmuch-based workflow improvements. Kindly CC me on replies. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

Re: notmuch and mailing lists

2020-05-03 Thread Sean Whitton
Hello Reto, On Sat 02 May 2020 at 03:13pm +02, Reto wrote: > On Fri, May 01, 2020 at 12:30:28PM -0700, Sean Whitton wrote: >> I've not yet used NNTP to read mailing lists myself, but I think there >> are limitations to the way I currently read lists > > What are you missing

Re: [PATCH v2] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

2020-08-22 Thread Sean Whitton
Hello, On Sat 22 Aug 2020 at 12:04PM +03, Tomi Ollila wrote: > On Tue, Aug 11 2020, Sean Whitton wrote: > >> This means that notmuch commands obey display-buffer-alist so the user >> can customize how buffers show up. >> >> It also permits the use of C-x 4 4,

[PATCH] emacs: Respect `load-prefer-newer` when loading `notmuch-init-file'

2020-06-01 Thread Sean Whitton
Before this change, `load-prefer-newer' was ignored. Set NOERROR and MUST-SUFFIX arguments of `load' to t, and NOSUFFIX argument to nil, to preserve the behaviour of the deleted `let' form. --- I've observed that the way that the code at the end of notmuch.el loads the user's notmuch-init-file

Lazily loading notmuch into Emacs

2020-06-01 Thread Sean Whitton
se of an ELPA package, however. Does anyone have a better approach that does not involve advice-add? I'm using the elpa-notmuch package on Debian. -- Sean Whitton ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

notmuch.el: notmuch-search: avoid wiping out buffer-local variables

2020-07-21 Thread Sean Whitton
-list t) (set 'notmuch-search-query-string query) -- Sean Whitton ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

[PATCH v2] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

2020-08-11 Thread Sean Whitton
This means that notmuch commands obey display-buffer-alist so the user can customize how buffers show up. It also permits the use of C-x 4 4, C-x 5 5 and C-x t t, available in Emacs 28. For example, one can use C-x 4 4 M-x notmuch-jump-search RET to open a saved search in another window rather

[PATCH] emacs: Use pop-to-buffer-same-window rather than switch-to-buffer

2020-08-07 Thread Sean Whitton
This means that notmuch commands obey display-buffer-alist so the user can customize how buffers show up. It also permits the use of C-x 4 4, C-x 5 5 and C-x t t, available in Emacs 28. For example, one can use C-x 4 4 M-x notmuch-jump-search RET to open a saved search in another window rather

Re: Lazily loading notmuch into Emacs

2020-06-02 Thread Sean Whitton
-hello, as otherwise I noticed notmuch-config.el doesn't get loaded if you use one of those right after starting Emacs. I think the fix there is to add (require 'notmuch) to the top of notmuch-jump.el and notmuch-hello.el? -- Sean Whitton ___ notmuch mailin

Re: [PATCH 07/23] emacs: Use 'and' instead of 'when' when the return value matters

2020-07-26 Thread Sean Whitton
Hello, On Sun 26 Jul 2020 at 06:58PM +02, Jonas Bernoulli wrote: > Also do so for some 'if' forms that lack an ELSE part. > Even go as far as using 'and' and 'not' instead of 'unless'. I don't follow "when the return value matters", could you explain? Thanks.

Re: [PATCH 07/23] emacs: Use 'and' instead of 'when' when the return value matters

2020-07-27 Thread Sean Whitton
Hello, On Mon 27 Jul 2020 at 12:02AM +02, Jonas Bernoulli wrote: > Sean Whitton writes: > >> On Sun 26 Jul 2020 at 06:58PM +02, Jonas Bernoulli wrote: >> >>> Also do so for some 'if' forms that lack an ELSE part. >>> Even go as far as using 'and' and 'not

[PATCH] emacs: notmuch-search: avoid wiping out buffer-local variables

2020-07-22 Thread Sean Whitton
--- emacs/notmuch.el | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index dd18f2e1..c97997fe 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -987,7 +987,11 @@ the configured default sort order." (if no-display

Re: [PATCH] Revert "emacs: notmuch-search: avoid wiping out buffer-local variables"

2020-11-08 Thread Sean Whitton
which should not be decided based on > the fact that we want keep the value of some random variable, not > least because some other (e.g. cache) variables are likely expected > to be wiped. Nice, thank you for the info. I've tested that my usecase works after reverting the pat

[PATCH] nmbug: write tags out to a temporary file, not 'nmbug.index'

2022-02-12 Thread Sean Whitton
If more than nmbug process is running at once, then each will try to read and write the same file. The particular failure I've seen is that the process which finishes first deletes nmbug.index, and then the other process dies with a FileNotFoundError. So use a distinct temporary file per

Re: [PATCH v2] nmbug: write tags out to a temporary file, not 'nmbug.index'

2022-02-13 Thread Sean Whitton
Hello, On Sun 13 Feb 2022 at 09:54am -07, Sean Whitton wrote: > If more than nmbug process is running at once, then each will try to > read and write the same file. The particular failure I've seen is > that the process which finishes first deletes nmbug.index, and then > the other

[PATCH v2] nmbug: write tags out to a temporary file, not 'nmbug.index'

2022-02-13 Thread Sean Whitton
If more than nmbug process is running at once, then each will try to read and write the same file. The particular failure I've seen is that the process which finishes first deletes nmbug.index, and then the other process dies with a FileNotFoundError. So use a distinct temporary file per

Parenthesised query breaks query it is embedded in

2022-02-23 Thread Sean Whitton
Hello, I have this subquery: subject:("Cron

Re: Forcing a sync of maildir flags?

2022-03-22 Thread Sean Whitton
Hello David, On Thu 20 Feb 2020 at 08:22AM -04, David Bremner wrote: > Sean Whitton writes: > >> I have this in my post-new hook: >> >> notmuch tag -unread -- folder:sent >> >> The idea is that copies of my sent mail which get returned to me and >>

Re: Forcing a sync of maildir flags?

2022-04-04 Thread Sean Whitton
Hello, On Tue 22 Mar 2022 at 12:44pm -07, Sean Whitton wrote: > I am seeing this bug, or a closely related one, a whole lot right now. > Messages are coming back as unread over and over again. I recently made > some changes to my notmuch cronjobs, so that probably has somethin

Re: [PATCH 1/2] test: known broken tests for bracketed terms in subject

2022-03-20 Thread Sean Whitton
Hello, On Sat 19 Mar 2022 at 07:38am -03, David Bremner wrote: > David Bremner writes: > >> The heuristics in the field processor currently incorrectly trigger >> phrase parsing. > > I have applied this series to master Nice, t

Re: WIP: promote nmbug to user sync tool

2022-05-20 Thread Sean Whitton
Hello, On Sat 07 May 2022 at 09:01pm -03, David Bremner wrote: > Sean Whitton writes: > >> Just looking at my current usage, there are two cases where I've wrapped >> nmbug in some additional myrepos scripting. The first is a status >> command: >> >>

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

2022-07-07 Thread Sean Whitton
ould think of the query thread:{} as expanding to all of the thread IDs which match ; not‐ much then performs a second search using the expanded query. This should be faster, too, with only running a single external command. Here is the patch I'm thinking I'll apply, if anyone has com

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

2022-07-09 Thread Sean Whitton
t; we could use this syntax rather than the ugly home-grown one. Let me know the results of your test, and if it's also continuing to work for me by then, I'll install the change. Thanks for taking a look. -- Sean Whitton ___ notmuch mailing list

Ignoring unknown messages for git.safe_fraction

2022-06-09 Thread Sean Whitton
Hello, On one machine I have only some of my mail, and so 'notmuch git status' will always have a lot of lines starting with "U". But then git.safe_fraction will always be exceeded. How about ignoring status['missing'] in check_safe_fraction, by default? -- Se

Database location bug when database does not already exist

2022-07-18 Thread Sean Whitton
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-config(1). -- Sean Whitton

Re: WIP: promote nmbug to user sync tool

2022-04-30 Thread Sean Whitton
cript: #!/bin/sh NMBGIT="$HOME/lib/nmbug-spw" NMBPREFIX="spw::" nmbug "$@" but it would be great to just be able to type 'notmuch git ...'. -- Sean Whitton ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

Re: Forcing a sync of maildir flags?

2022-05-02 Thread Sean Whitton
Hello David, On Sun 01 May 2022 at 08:23PM -03, David Bremner wrote: > Sean Whitton writes: >> >> Thanks. Let me record in this thread what I will believe it will take a >> reproduce this in a test: >> >> 1) inbox and sent are Maildirs >> >> 1) Com

Re: Forcing a sync of maildir flags?

2022-05-03 Thread Sean Whitton
ch-new, but it's not ideal. Okay, thanks for the info. Nice to have it all recorded in this thread. -- Sean Whitton ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org

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

Re: [nongnu] main 385623dca6 2/2: * elpa-packages (notmuch): New package.

2022-12-22 Thread Sean Whitton
Hello, On Wed 21 Dec 2022 at 07:53AM -04, David Bremner wrote: > Sean Whitton writes: > >> >> I know that you don't want to commit notmuch-pkg.el to git, and that's >> in fact undesirable from a NonGNU ELPA point of view, it turns out. But >> given ho

Re: [nongnu] main 385623dca6 2/2: * elpa-packages (notmuch): New package.

2022-12-20 Thread Sean Whitton
a third shouldn't > be a big deal. I know that you don't want to commit notmuch-pkg.el to git, and that's in fact undesirable from a NonGNU ELPA point of view, it turns out. But given how there is already version.txt and version.py, could we have a header in notmuch.el too, do you think? Thanks