Re: Tag notmuch email based on header values?

2022-10-04 Thread Alan Schmitt
Hello, On 2022-10-04 14:04, Petter Reinholdtsen writes: > I would like to tag all emails with a specific header, but fail to find > a way to do this. Is this a missing feature in notmuch? > > To be specific, I want to filter out emails related to request tracker > tickets owned by me at the

Re: Change notmuch-show-elide-non-matching-messages on the fly

2022-05-12 Thread Alan Schmitt
On 2022-05-12 07:44, David Bremner writes: >> I often do searches in long threads with >> notmuch-show-elide-non-matching-messages locally set to t. Sometimes I >> need to show the whole thread. Is there a function to do that, or >> should I write my own? >> > > There is

Change notmuch-show-elide-non-matching-messages on the fly

2022-05-10 Thread alan . schmitt
Hello, I often do searches in long threads with notmuch-show-elide-non-matching-messages locally set to t. Sometimes I need to show the whole thread. Is there a function to do that, or should I write my own? Thanks, Alan signature.asc Description: PGP signature

Re: changing smtp server and signature depending on from address

2022-04-26 Thread Alan Schmitt
Hi, On 2022-04-25 19:14, João Pedro writes: > I myself have come up with my own system, which gets the information for > the addresses from auth-source [2]. It basically consists on an alist > that assigns an "alias" for each address and holds its information as a > plist. This looks very

Re: changing smtp server and signature depending on from address

2022-04-20 Thread Alan Schmitt
Hi Dan, On 2022-04-20 10:15, Dan Čermák writes: > I use gnus-alias for something like that: Thank you for suggesting gnus-alias, it looks like a great fit. Best, Alan -- Pour une évaluation indépendante, transparente et rigoureuse ! Je soutiens la Commission d'Évaluation de l'INRIA.

changing smtp server and signature depending on from address

2022-04-20 Thread alan . schmitt
Hello, I use several email addresses, and I would like to customize the smtp server and the signature I use for each of them. Is there a notmuch way of doing this? I’ve looked at https://www.emacswiki.org/emacs/SendingMail#SmtpMail and I see that I can set a particular header to set the smtp

Re: performance in emacs displaying a huge thread

2021-10-06 Thread Alan Schmitt
Hello, On 2021-09-25 10:26, David Bremner writes: > I think it is a bug in doom or straight, or at least an assumption that > turns out to be wrong. They are assuming the elisp is runnable from git, > but in fact it needs to run make to create notmuch-version.el. I think > the straight recipe

Re: performance in emacs displaying a huge thread

2021-09-25 Thread Alan Schmitt
Hello, On 2021-09-24 20:33, David Bremner writes: > That will teach me not to ask people to check M-x notmuch-version! I did at the time, and it reported "0.33.1". So I investigated a bit. If I search for the `notmuch-version' function, I find it in

Re: performance in emacs displaying a huge thread

2021-09-24 Thread Alan Schmitt
Hello David, I found the source of the issue, and I would like to apologize because it’s fully my fault. I’ve realized I was not using the elisp code from the package installed using my package manager, but one installed using straight that was pinned to an old version. I simply switched to the

Re: performance in emacs displaying a huge thread

2021-09-22 Thread Alan Schmitt
Hello, On 2021-09-22 11:25, Tomi Ollila writes: >>> e.g (set max-lisp-eval-depth 1600) >> >> Thank you for the suggestion. I tried with 1600, and I get a different >> error (and the numbers are larger now). >> >> Debugger entered--Lisp error: (error "Variable binding depth exceeds >>

Re: performance in emacs displaying a huge thread

2021-09-22 Thread Alan Schmitt
On 2021-09-21 21:27, Tomi Ollila writes: > I'd be interested to know if changing max-lisp-eval-depth to a larger value > made difference. > > e.g (set max-lisp-eval-depth 1600) Thank you for the suggestion. I tried with 1600, and I get a different error (and the numbers are larger now).

Re: performance in emacs displaying a huge thread

2021-09-21 Thread Alan Schmitt
Hello, On 2021-09-21 12:38, David Bremner writes: > Alan Schmitt writes: > >> Thank you for bearing with me. I confirm that I can see messages at the >> beginning of the thread using both an unthreaded search and >> notmuch-show-only-matching-messages set to t. Unfortun

Re: performance in emacs displaying a huge thread

2021-09-21 Thread Alan Schmitt
On 2021-09-21 09:42, David Bremner writes: > That's not completely unexpected. The change in question only really fixes it > for > unthreaded view. Try notmuch-unthreaded-from-search-current-query (bound > to 'U' by default). Thank you for bearing with me. I confirm that I can see messages at

Re: performance in emacs displaying a huge thread

2021-09-21 Thread Alan Schmitt
Hello, I’m on notmuch 0.33.1 and I’m still having issues displaying messages in long threads when the messages are encrypted. I have such a thread with more than 600 messages, and when I do the following: - search for the messages - run notmuch-tree-from-search-current-query I get an error (I

Re: performance in emacs displaying a huge thread

2021-08-21 Thread Alan Schmitt
On 2021-08-20 09:55, David Bremner writes: > The commit I mentioned is not in 0.32.3. Ah, sorry, I thought a release included what was in master at that time. I guess I should wait for 0.33? Best, Alan signature.asc Description: PGP signature ___

Re: performance in emacs displaying a huge thread

2021-08-20 Thread Alan Schmitt
Hello, On 2021-08-01 23:11, David Bremner writes: > With commit 37f84d6d2 (only in master currently), much larger threads > should be displayable in unthreaded view, e.g using M-x > notmuch-unthreaded I just updated to 0.32.3, and I confirm a message is displayed quite fast (if I set

Re: notmuch-tag failing on trailing space

2021-08-16 Thread Alan Schmitt
Hello, On 2021-07-27 10:24, alan.schm...@polytechnique.org writes: > I have an issue when using the vertico completion system to add tags to > messages that boils down to the following: the notmuch-tag function is > called like this: >

notmuch-tag failing on trailing space

2021-07-27 Thread alan . schmitt
Hello, I have an issue when using the vertico completion system to add tags to messages that boils down to the following: the notmuch-tag function is called like this: notmuch-tag("id:CA+b3G33ad9PX5SuOwqaWS8TWBTtZcdguKtcQ3XmPvzSCsU..." ("+cwn ")) and it fails because of the extra space at the

Re: show a single message in a huge thread

2021-06-03 Thread Alan Schmitt
Hello, On 2021-06-02 09:18, David Bremner writes: > The code I posted worked fine for me for one message from a thread of > 323 messages. The thread that used to crash (before your patch) was from DeltaChat, which is an email-based chat app. The thread it produces are like lists more than

Re: First attempt at a fix for single message display deep in thread

2021-06-03 Thread Alan Schmitt
Hello, On 2021-06-02 20:31, David Bremner writes: > Alan, if you can test this, it would be great. You just need a copy of > the source, and to apply the following two patches. You can use > devel/try-emacs-mua to run the patched emacs front-end. Since the changes are small, I tested it the

Re: show a single message in a huge thread

2021-06-02 Thread Alan Schmitt
Hello, On 2021-06-01 15:33, David Bremner writes: >> Is this a bug of notmuch-emacs? Is there a way to display a single >> message independently of its context? >> > > I'm not sure what the best UI is, but here is a start: > > (defun notmuch-show-single-message (query) > (interactive "sQuery:

Re: show a single message in a huge thread

2021-06-01 Thread Alan Schmitt
Hello, On 2021-05-28 16:16, Alan Schmitt writes: > Thank you for the suggestion. Here is what I did: > - run the search > - execute notmuch-tree-from-search-current-query > - hit RET on a message deep in the thread > - I get this error > > Debugger entered--Lisp error:

Re: show a single message in a huge thread

2021-05-28 Thread Alan Schmitt
Hello, On 2021-05-28 09:37, David Bremner writes: > Did you try M-x notuch-tree ? > > It displays messages one at a time. > > Starting from notmuch-search-mode, you could > > - use Z to switch to tree mode, then select the message you > want. > > - If that is too tedious, use 'z' to search

show a single message in a huge thread

2021-05-28 Thread alan . schmitt
Hello, I want to see a message in a huge thread (too big for notmuch to display). To find it, I switch to unthreaded mode, I select the message (I hit RET), but then notmuch tries to show all the other messages as well (which makes it hang as the thread is too big, and one of the message results

Re: backing up tags

2021-03-26 Thread Alan Schmitt
Hello, On 2021-03-26 15:31, Martin Jambor writes: > On Fri, Mar 26 2021, Alan Schmitt wrote: >> Hello, >> >> I do not include my (huge, more than 5GB) notmuch database in backups, >> as it can be recreated from the email files… with one exception: tags. >> S

backing up tags

2021-03-26 Thread Alan Schmitt
Hello, I do not include my (huge, more than 5GB) notmuch database in backups, as it can be recreated from the email files… with one exception: tags. So I’m wondering if there is a way to backup these tags (and only the tags) with the hope it would be much smaller. Do you know ways to do it?

Re: Folder+tags

2020-12-24 Thread Alan Schmitt
On 2020-12-23 12:53, "inwit" writes: > What I would like to, then, is to use notmuch-el to read and classify my > mail. And the functionality I'm missing at the moment is a way to move > an email from the inbox to its corresponding folder, hopefully updating > its folder tags at the same time.

Re: listing all the tags I've been using

2020-11-20 Thread Alan Schmitt
On 2020-11-20 15:33, Kim Minh Kaplan writes: > Alan Schmitt writes: > >> I would like to list all >> the tags I've used. Is there a way to do it? > > notmuch search --output=tags '*' Thanks a lot Ralph and Kim. For the record, I refined Ralph's solution to: notmuch dum

listing all the tags I've been using

2020-11-20 Thread Alan Schmitt
Hello, I'm trying to document the tags I'm using for notmuch and make sure I have not introduced duplication or typos. So I would like to list all the tags I've used. Is there a way to do it? Thanks, Alan signature.asc Description: PGP signature ___

Re: Signing messages with emacs 27.1

2020-08-13 Thread Alan Schmitt
On 2020-08-13 08:52, David Bremner writes: > I _think_ it's a change in message-mode. Does it work for you if you set > mml-secure-openpgp-sign-with-sender? > > (or smime, if using smime) I had changed smime, as it was suggested by the error message, so I now just set openpgp (as it's what I'm

Signing messages with emacs 27.1

2020-08-13 Thread Alan Schmitt
Hello, I just updated to emacs 27.1, and I'm wondering if this is why I no longer can sign messages. I get the error "Couldn’t find any signer names." I tried debugging it, and it seems that the problem is that `mml-secure-epg-encrypt' cannot find the name of the sender ((message-options-get

Re: performance in emacs displaying a huge thread

2020-02-15 Thread Alan Schmitt
Hello, On 2020-01-15 21:15, Örjan Ekeberg writes: > I have a vague recollection that someone pointed out that it is the > indentation that takes most of the time and that turning off indentation > speeds up the display of huge threads. I've been trying this by setting: (setq

Re: performance in emacs displaying a huge thread

2020-01-15 Thread Alan Schmitt
Hi Örjan, On 2020-01-15 21:15, Örjan Ekeberg writes: > I think opening the thread with C-U RET instead of RET does exactly > that, i.e. only shows the matching messages. > > In less extreme cases, using tree view (ALT-RET) may be an option since > it does not have to format the contents of the

performance in emacs displaying a huge thread

2020-01-15 Thread Alan Schmitt
Hello, I have some performance issues when displaying a huge thread, like this: September 07 [13/5767] It takes forever to display (I've waited a few minutes and it was still stuck). I know it's a lot of messages, so is there a way to just display the 13 that match? Or to limit the total

Re: email recipient not taken into account when replying?

2020-01-11 Thread Alan Schmitt
On 2020-01-08 08:59, Carl Worth writes: > On Wed, Jan 08 2020, Alan Schmitt wrote: >> Is there another way to tell notmuch to use as From address the address >> the email was sent to, if it's one of my emails? > > Yes. The user.other_email configuration entry should do

email recipient not taken into account when replying?

2020-01-08 Thread Alan Schmitt
Hello, I sometimes receive some emails at the address presid...@lemondedujeu.org. This email is declared as part of my alternate emails (I do not consider this private information so I'm posting it): (setq message-alternative-emails (regexp-opt '("alan.schm...@polytechnique.org"

Re: Accessing the body a message programatically

2019-12-17 Thread Alan Schmitt
On 2019-12-17 09:34, David Bremner writes: > > If you mean interactively for a currently displayed message, have a look > at the function notmuch-show-current-part-handle, and the way it uses > notmuch-show-get-{message,part}-properties. This is great, thanks. Here is what I did: (defun

Accessing the body a message programatically

2019-12-16 Thread Alan Schmitt
Hello, I need to extract some information from a message that is shown in notmuch-mode, and I was able to easily get the from and subject of the message. I now need to use the body, but I cannot find how to get it. I assume I should use notmuch-get-bodypart-text, but I don't know how to obtain

Re: script to move messages according to tags

2019-12-11 Thread Alan Schmitt
On 2019-12-11 16:33, David Edmondson writes: How you decide to deal with multiple results is really up to you - in my case I move/delete all of them (except that I don't actually delete anything). This is probably the key: I'm used to file-based MUA that will show me duplicates. If

Re: script to move messages according to tags

2019-12-11 Thread Alan Schmitt
Hello Örjan, On 2019-12-11 13:58, Örjan Ekeberg writes: Below is the script that I use which does more-or-less what you are asking for. Thank you very much, this is most helpful. I do have one small question: how do you deal with mails that have duplicates? For instance, when I send a

script to move messages according to tags

2019-12-10 Thread Alan Schmitt
Hello, I'm considering switching to notmuch, but there are two use cases for which I need to move messages around between folders. After reading https://notmuchmail.org/excluding/, it seems the recommended approach is to use a tag to flag such messages, then to use a script to move the

Re: using notmuch programmatically from emacs

2014-07-21 Thread Alan Schmitt
On 2014-07-18 21:40, David Bremner da...@tethera.net writes: Alan Schmitt alan.schm...@polytechnique.org writes: Hello, I sometimes have to find a message knowing only its message id. I know how to use a notmuch search in emacs to find the message, then use another function to display

using notmuch programmatically from emacs

2014-07-18 Thread Alan Schmitt
Hello, I sometimes have to find a message knowing only its message id. I know how to use a notmuch search in emacs to find the message, then use another function to display it in gnus, but I would like to do it directly without going through the *notmuch-search* buffer. Right now I'm doing the

using notmuch programmatically from emacs

2014-07-18 Thread Alan Schmitt
Hello, I sometimes have to find a message knowing only its message id. I know how to use a notmuch search in emacs to find the message, then use another function to display it in gnus, but I would like to do it directly without going through the *notmuch-search* buffer. Right now I'm doing the

excluding files from a folder for searches

2014-07-17 Thread Alan Schmitt
On 2014-07-17 11:38, David Bremner writes: > Alan Schmitt writes: > >> By the way, how will notmuch realize that the messages are no longer >> there? Does it still scan the directory when it's in new.ignore? > > No, I think you'll have to do something manual like rem

excluding files from a folder for searches

2014-07-17 Thread Alan Schmitt
On 2014-07-16 21:10, David Bremner writes: >> I'm trying to configure notmuch such that it never searches for files in >> my Trash folder. I have found in the configuration how to exclude some >> tags from every search, but not how to exclude a folder. >> >> Is it possible? > > One thing you can

Re: excluding files from a folder for searches

2014-07-17 Thread Alan Schmitt
On 2014-07-16 21:10, David Bremner da...@tethera.net writes: I'm trying to configure notmuch such that it never searches for files in my Trash folder. I have found in the configuration how to exclude some tags from every search, but not how to exclude a folder. Is it possible? One thing

Re: excluding files from a folder for searches

2014-07-17 Thread Alan Schmitt
On 2014-07-17 11:38, David Bremner da...@tethera.net writes: Alan Schmitt alan.schm...@polytechnique.org writes: By the way, how will notmuch realize that the messages are no longer there? Does it still scan the directory when it's in new.ignore? No, I think you'll have to do something

excluding files from a folder for searches

2014-07-16 Thread Alan Schmitt
Hello, I'm trying to configure notmuch such that it never searches for files in my Trash folder. I have found in the configuration how to exclude some tags from every search, but not how to exclude a folder. Is it possible? Thanks a lot, Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7