jobisoft / quicktext

An extension for Thunderbird that lets you create templates that can be easily inserted into your own emails.
Mozilla Public License 2.0
184 stars 52 forks source link

AddRecipients and CardBook #327

Open AJJLagerweij opened 2 years ago

AJJLagerweij commented 2 years ago

Thanks for this awesome extension, and the scripting possibilities. I was wondering about adding the support for CardBook to the AddRecipients.

Details

I have both CardBook, to manage my google contacs, and quicktekst installed. My Thunderbird build-in address book is near empty, and I would like to add people and especially groups automatically to my emails through quicktext. For specific people, I could write out their email address in the AddRecipients command: [[SCRIPT=AddRecipients|to|John Doe <john.doe@example.com>] But I would like for CardBook to autofill the email such that: [[SCRIPT=AddRecipients|to|John Doe] I confirmed that this works if you use Thunderbird's build in address book.

This would be especially powerful if you define groups that way, again I checked and it does work if you use Thunderbird's build in address book. Because this way, you only have to manage the group in the address book, and your template follows automatically.

Clearly, AddRecipients is powerful and works well with the integrated address book. Below I propose a way to also integrate it with CardBook and hopefully other address books.

Proposal

Instead of prefilling the name and then the email address from Thunderbird's address book, I propose to use the autocomplete function of the address bar. Thunderbird will suggest contacts to you while you type their name or email address. These hints come from the address book that is in use. I propose the following workflow:

  1. Don't change anything in the AddRecipients command, and let's use this example: [[SCRIPT=AddRecipients|to|John Doe]
  2. This should simply fill John Doe in the recipient field, and then automatically accept the first hint that is provided by the address book.

I'm not a programmer, but this seems to be the most straightforward way to make generic address books compatible with AddRecipients in a way that won't influence any current users. Sadly, I cannot judge whether it is a trivial from a coding perspective.