Accessing arguments in hooks

2021-12-17 Thread Al Haji-Ali
Hello, Is there a way to access the parameters of `notmuch new` in hooks? At the moment I control the verbosity of my hooks by setting an environment variable, but I think it would be nicer if I can get that flag from arguments to `notmuch new` (like `--quiet` and `--verbose`). Thanks, -- Al

Make fails with xapian custom installation

2021-12-09 Thread Al Haji-Ali
Hello, I have an old version of Xapian installed in root and a new one installed in my home folder which I want to use. My pkgconfig is configured correctly , | ~ pkg-config --libs xapian-core | -L/home/al/.local/stow/xapian/lib -lxapian ` So compiling notmuch works until linking when

Re: Make fails with xapian custom installation

2021-12-09 Thread Al Haji-Ali
On 09/12/2021, David Bremner wrote: > configure actually invokes xapian-config rather than pkg-config (I > forget why offhand). So you probably need to set XAPIAN_CONFIG in the > environment to the one in your /home when running configure. Ah OK. My xapian-config is also correctly configured

Re: Make fails with xapian custom installation

2021-12-09 Thread Al Haji-Ali
On 09/12/2021, David Bremner wrote: > Does it help if you set LDFLAGS on the make command line? Looking at > Makefile.global, LDFLAGS are added before the other computed flags. So > something like > > % make V=1 LDFLAGS=-L/home/al/.local/stow/xapian/lib Yep, this works. Thanks! I feel that

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

2022-07-25 Thread Al Haji-Ali
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 refresh) or even when

lastmod based on date/time

2022-08-01 Thread Al Haji-Ali
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. I sometimes find myself needing to find a message that I accidentally archived/moved and it would be convenient if I

Use find-buffer-visiting instead of get-file-buffer

2022-11-22 Thread Al Haji-Ali
In the function `notmuch-show-insert-part-text/calendar`, get-file-buffer is used which works most of the time except the file is visited under a different name (for example when a directory in `temporary-file-directory` in symlinked). This can be easily corrected by using

Correcting message references

2023-04-21 Thread Al Haji-Ali
I am running into an issue where I created a draft (let call it "D") as a reply to a message (let's call it "A") that I don't have in my database by setting "In-Reply-To" in the draft to "A". I accidentally left over a "References" field which contains the ID of another message ("B"). This

Re: Correcting message references

2023-04-22 Thread Al Haji-Ali
| From: Al Haji-Ali | To: bug-gnu-em...@gnu.org, monn...@iro.umontreal.ca, Eli Zaretskii | Subject: bug#53632: Function definition history | In-Reply-To: | Message-ID: | Date: Sat, 22 Apr 2023 12:34:54 +0100 | X-Notmuch-Emacs-Draft: True | MIME-Version: 1.0 | Content-Type: text/plain ` is

Re: Correcting message references

2023-04-25 Thread Al Haji-Ali
On 25/04/2023, David Bremner wrote: > I would be interested if it finds your problematic ghost message (and > how long it takes). Thanks! This is much quicker than a script that I wrote using quest and xapian-delve (which took minutes!) Your code took 0.03 seconds to find 74 unreferenced

notmuch search for threads vs matched messages

2023-05-02 Thread Al Haji-Ali
When I search for emails (in the CLI or Emacs), for example all those with the inbox tag, I get a list of threads with the names of all senders in the thread and all tags that are in the thread rather than in the matched messages. I find this unhelpful since it hides the important

Re: Correcting message references

2023-04-23 Thread Al Haji-Ali
On 22/04/2023, David Bremner wrote: > You need to give the appropriate term prefix. Q for message id, > or XREPLYTO or XREFERENCE as in my last message. My apologies. I misunderstood the syntax. >> The first one is the draft. The second hit is the reason I thought the >> only place left for

Re: notmuch-emacs inline image display broken in emacs-29

2023-04-04 Thread Al Haji-Ali
Hello Alex and David, I also came across this issue: inline image are not displayed only when `notmuch-show-indent-content` is non-nil. However, even when `notmuch-show-indent-content` is `nil` they are displayed but cannot be hidden. As Alex Murray pointed out, the reason is that the function

Re: notmuch search for threads vs matched messages

2023-05-03 Thread Al Haji-Ali
> I would find this helpful too. I just implemented this for tags (patch attached). Turns out it is not needed for authors as notmuch already distinguishes between matched and unmatched authors -- I never noticed!. The implementation could of course be debated and improved, but I just wanted