-
Notifications
You must be signed in to change notification settings - Fork 15
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
Feature request: retrieve an email from address book using name / nickname #326
Comments
Looking forward to it, thank you |
From what I see, the https://searchfox.org/comm-esr128/source/mailnews/addrbook/modules/AddrBookDirectory.sys.mjs#305 I also sent a question to the author of CardBook, whether he has such a function (or could provide one). Not sure right now whether he also has a "search" interface that would support such a function. |
I asked @CardBook whether he could implement this function in Cardbook (which supports finding entries from the Cardbook address book), I want to implement searching for nickname (and maybe name) both from the standard address book and the one that is implemented in Cardbook. He immediately came through and made a test version which I want to test first before I implement the standard search:
I will add the other side of the interface in my background script and add it as a possible value, just need to come up with a Syntax. My first idea was to automatically fall back to nickname search if the email parameter in SmartTemplates doesn't include an https://smarttemplates.quickfolders.org/variables.html#ab_fields |
So I am still pondering on how best to implement the SmartTemplates variables exactly, as it seems overkill to expand all We could have a search function for the AB (which can also support clipboard as a search parameter)
This would either preload the
and it could then be extended with its own field lookup functionality, like the other address variables:
So we would end up with the following use for the requested use case:
this would This is syntactically a little more complicated than implementing everything into the |
%header.set(to)%
should retrieve an email from address book using name / nickname
Implementation takes a little longer, sorry - haven;t forgotten about it, and will do a commit with some partial changes today. But we are not anywhere near testing yet. |
So apparently there is no API for this functionality at the moment. I will have to decide whether I can implement something lie this through the |
As it is possible to extract a keyword from a subject line (for instance when writing an email from a OS context menu, using "send to >> email") it would be good to be able to take the file name (or part of it) to retrieve an email address from the address book. This could be done by setting something like:
since this will likely not contain a full email address, it should be possible to use the "nickname" (or maybe display name) in order to find a matching email address and then set the final recipient.
At the moment it just inserts the name and an empty address as it finds no match based on email:
The text was updated successfully, but these errors were encountered: