-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibility to upstream #23
Comments
Definitely not a bad idea! I will look into submitting the tool for inclusion in the Notmuch repository. |
Adrian Perez <[email protected]> writes:
Definitely not a bad idea! I will look into submitting the tool for inclusion in the Notmuch repository.
Hi Adrian, Hi all;
Hopefully it is possible to merge nomuch-addrlookup-c into
"notmuch address", rather providing a seperate tool. Does anyone know of
any (technical) blockers for that?
d
|
@bremner That is what I have in mind. I'll try to find some time to prepare a patch during the weekend 😄 |
I just reviewed both code bases and here's what I found. notmuch-address is basically a wrapper around notmuch-search, which means it's limited in what it can do. like notmuch-search, it can't sort by frequency, so it can't reproduce the nice heuristics setup in addrlookup. here's the notmuch-address entry point, from what I could find: https://sources.debian.org/src/notmuch/0.29.3-1/notmuch-search.c/#L873 One problem is we only have The other thing is that notmuch-address only does one query. addrlookup does several, and a variable number. There's also a special "address book" tag (set in Those heuristics are set in: notmuch-addrlookup-c/notmuch-addrlookup.c Line 144 in f6a296d
specifically: notmuch-addrlookup-c/notmuch-addrlookup.c Line 148 in f6a296d
notmuch-addrlookup-c/notmuch-addrlookup.c Line 157 in f6a296d
notmuch-addrlookup-c/notmuch-addrlookup.c Line 186 in f6a296d
In other words:
The
One improvement we could already do with notmuch-address would be to enforce searching for to/from headers, which doesn't seem to be the case right now. I have a wrapper script where I do basically this:
I would love to be able to do Anyways, that's all I got... I hope that's useful! |
fwiw, i'd also be very happy to see this kind of feature upstreamed. I can't do the integration work myself, but if patches were presented on-list, i'd be happy to help review them. |
it seems to me that just shoving notmuch-addrlookup.c into notmuch as notmuch-search.c and hijacking notmuch_address_command would be a somewhat "good first step". the blockers are:
@aperezdc are you still interested in upstreaming this? I have been bitten by |
Feel free to start notmuch-address.c if that makes life easier. The current integration / code-borrowing with notmuch-search is an implementation detail which need not be preserved. I think it will help keep us all sane if the new contribution is relicensed as GPL3+. If that's really a blocker we can talk. |
Some incremental improvements in progress upstream: |
i did this recently, which made outgoing email show up as well, at the cost of making things slower: https://gitlab.com/anarcat/scripts/-/commit/13e20dff39cffd3ffd853c5e13bbc4ede5bb434b obviously far from upstream, but maybe food for thought. thanks for working on this! |
I was in the #notmuch channel on IRC, when the issue of an easy way search addresses came up again and I suggested they use notmuch-addrlookup-c. It was suggested since this works well in surfacing the addresses that one needs, it will be great to have it as part of notmuch-address itself. Did you think about this before? It would be great have it upstream! @bremner was also interested in bringing this functionality over.
The text was updated successfully, but these errors were encountered: