AddRecipients and CardBook

未关闭
#327 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript
领域
desktop-dev

调研方向

The payload names no source files or tests, so start from the [[SCRIPT=AddRecipients|to|...]] command, which the issue says already works with Thunderbird's built-in address book. The proposal is to let a name-only recipient be filled by accepting the first address-book autocomplete hint, which would also cover CardBook. Done would mean that [[SCRIPT=AddRecipients|to|John Doe]] resolves through CardBook. The issue has no comments, no assignee and no linked pull request, so confirm with maintainers before starting.

由索引模型根据 Issue 内容生成。

描述

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 <[email protected]>]
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.

主要语言
JavaScript
星标
283
派生
62
平均合并
1 分钟
30 天内合并 PR
1

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

jobisoft/quicktext 的其他 Issue

查看 jobisoft/quicktext 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。