Re: Is there a prefix that performs from: and to: simultaneously?
> I'm not sure it's worth the extra complexity. Maybe you're right. I'll take the option, combinding `from' and `to' headers to get the jobs done. Thanks! -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: Is there a prefix that performs from: and to: simultaneously?
> +john +friend -- tag:new AND (to:j...@example.tld OR > from:j...@example.tld) First did I tried that form, but I felt that wasn't up to snuff because I still have to write the same address two times. -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Is there a prefix that performs from: and to: simultaneously?
Batch file of my initial tagging script includes queries like below: +john +friend -- tag:new AND from:j...@example.tld +john +friend -- tag:new AND to:j...@example.tld But I want to compress the above in one line like: +john +friend -- tag:new AND from_or_to:j...@example.tld I know that I can achieve it approximately by querying without prefix, but it'll also include the mails that include the string "j...@example.tld". I look through the manual, man:notmuch-search-terms, but I couldn't find the prefix I want. -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: What is notmuch compact and should I use it?
All things are clear now. Thank you! David Bremner <da...@tethera.net> writes: > Attic Hermit <fjd...@cock.li> writes: > >> David Bremner <da...@tethera.net> writes: >> >>> There is some tradeoff: search should be faster after a compact, but >>> indexing many messages will likely be slower. >> >> Maybe I'm wrong, but is it meaning that it will be taking a long time to >> compact many messages, or after doing `notmuch compact`, indexing many >> new messages will be slower because of the compacted database? > > The latter, according to the xapian documentation. > > d -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: What is notmuch compact and should I use it?
David Bremner <da...@tethera.net> writes: > There is some tradeoff: search should be faster after a compact, but > indexing many messages will likely be slower. Maybe I'm wrong, but is it meaning that it will be taking a long time to compact many messages, or after doing `notmuch compact`, indexing many new messages will be slower because of the compacted database? -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
What is notmuch compact and should I use it?
I read the manuals of Notmuch and encountered notmuch-compact. The manual says that it compacts the notmuch database and it will enhance the performance of Notmuch. What exactly is to compact the database? I noticed that the size of the notmuch database is shrunk after `notmuch compact`, but I don't think this procedure is gzipping the database. I thought it is something like the garbage collecting, but I'm not sure. And should I use it regularly? if it is, how often should it be done? -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [PATCH] emacs/address: use member instead of memq to check for pair
Nice. Thank you for your lightning fast fix and push. David Bremner <da...@tethera.net> writes: > David Bremner <da...@tethera.net> writes: > >> Quoting from the elisp reference: >> >> For other types (e.g., lists, vectors, strings), two arguments >> with the same contents or elements are not necessarily ‘eq’ to >> each other. >> >> Thanks to "Attic Hermit" for the fix. > > pushed to master > ___ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
Re: [BUG] Notmuch keeps adding notmuch-address-expand-name to message-completion-alist
You can get rid of the bug by using `member` instead of `memq` in `nomtuch-address-setup`: diff -u a/notmuch-address.el b/notmuch-address.el --- a/notmuch-address.el2017-08-05 18:45:40.0 +0900 +++ b/notmuch-address.el2017-09-11 19:40:41.230872915 +0900 @@ -159,7 +159,7 @@ #'notmuch-address-expand-name))) (when setup-company (notmuch-company-setup)) - (unless (memq pair message-completion-alist) + (unless (member pair message-completion-alist) (setq message-completion-alist (push pair message-completion-alist) David Bremner <da...@tethera.net> writes: > Attic Hermit <fjd...@cock.li> writes: > >> When I invocate compose-mail or something related with the message-mode >> buffer and Notmuch, Notmuch keeps adding a pair like below to >> `message-completion-alist`: >> >> >> ("^\\(Resent-\\)?\\(To\\|B?Cc\\|Reply-To\\|From\\|Mail-Followup-To\\|Mail-Copies-To\\):" >> . notmuch-address-expand-name) >> > > I don't know much about the cause, but I can confirm that many such > pairs are added to this list. > > d -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch
[BUG] Notmuch keeps adding notmuch-address-expand-name to message-completion-alist
When I invocate compose-mail or something related with the message-mode buffer and Notmuch, Notmuch keeps adding a pair like below to `message-completion-alist`: ("^\\(Resent-\\)?\\(To\\|B?Cc\\|Reply-To\\|From\\|Mail-Followup-To\\|Mail-Copies-To\\):" . notmuch-address-expand-name) I think there's bug in `notmuch-address-setup` on `notmuch-address.el`. It checks that the pair exists in the `message-completion-alist` by `memq`, but it seems to be amended to `member` instead. P.S. Because I'm not a programming expert or a student, I don't know how to send a patch to amend this problem. So I send where the bug was found and the way how I tinkered it in English. I searched the file where bug exists in the git repository of Notmuch, and found that there still was a bug. I hope this will help to fix the bug. -- Attic Hermit ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch