gmail +reply-all
PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.
Reply-all to a message (handles threading automatically)
Usage
CODEBLOCK0
Flags
| Flag | Required | Default | Description |
|---|
| INLINECODE2 | ✓ | — | Gmail message ID to reply to |
| INLINECODE3 |
✓ | — | Reply body (plain text, or HTML with --html) |
|
--from | — | — | Sender address (for send-as/alias; omit to use account default) |
|
--to | — | — | Additional To email address(es), comma-separated |
|
--attach | — | — | Attach a file (can be specified multiple times) |
|
--cc | — | — | CC email address(es), comma-separated |
|
--bcc | — | — | BCC email address(es), comma-separated |
|
--html | — | — | Treat --body as HTML content (default is plain text) |
|
--dry-run | — | — | Show the request that would be sent without executing it |
|
--draft | — | — | Save as draft instead of sending |
|
--remove | — | — | Exclude recipients from the outgoing reply (comma-separated emails) |
Examples
CODEBLOCK1
Tips
See Also
技能名称: gws-gmail-reply-all
详细描述:
gmail +全部回复
前置条件: 阅读 ../gws-shared/SKILL.md 了解认证、全局标志和安全规则。如果缺失,请运行 gws generate-skills 创建。
对邮件进行全部回复(自动处理邮件线程)
使用方法
bash
gws gmail +reply-all --message-id --body <文本>
标志
| 标志 | 必需 | 默认值 | 描述 |
|---|
| --message-id | ✓ | — | 要回复的 Gmail 邮件 ID |
| --body |
✓ | — | 回复正文(纯文本,或使用 --html 的 HTML 格式) |
| --from | — | — | 发件人地址(用于发送身份/别名;省略则使用账户默认地址) |
| --to | — | — | 额外的收件人邮箱地址,逗号分隔 |
| --attach | — | — | 附加文件(可多次指定) |
| --cc | — | — | 抄送邮箱地址,逗号分隔 |
| --bcc | — | — | 密送邮箱地址,逗号分隔 |
| --html | — | — | 将 --body 视为 HTML 内容(默认为纯文本) |
| --dry-run | — | — | 显示将要发送的请求但不执行 |
| --draft | — | — | 保存为草稿而非发送 |
| --remove | — | — | 从发出的回复中排除收件人(逗号分隔的邮箱地址) |
示例
bash
gws gmail +reply-all --message-id 18f1a2b3c4d --body 我觉得没问题!
gws gmail +reply-all --message-id 18f1a2b3c4d --body 已更新 --remove bob@example.com
gws gmail +reply-all --message-id 18f1a2b3c4d --body 添加 Eve --cc eve@example.com
gws gmail +reply-all --message-id 18f1a2b3c4d --body 已记录 --html
gws gmail +reply-all --message-id 18f1a2b3c4d --body 附件为笔记 -a notes.pdf
gws gmail +reply-all --message-id 18f1a2b3c4d --body 草稿回复 --draft
提示
- - 回复发件人及所有原始收件人/抄送人。
- 使用 --to 向收件人字段添加额外收件人。
- 使用 --cc 添加新的抄送收件人。
- 使用 --bcc 添加不应被他人看到的收件人。
- 使用 --remove 从发出的回复中排除收件人,包括发件人或回复目标。
- 如果排除和添加 --to 后没有剩余收件人,命令将失败。
- 使用 -a/--attach 添加文件附件。可多次指定。
- 使用 --html 时,引用块使用 Gmail 的 gmail_quote CSS 类并保留 HTML 格式。使用片段标签(
、、 等)——无需 / 包装。
- 使用 --html 时,引用邮件中的内嵌图片通过 cid: 引用保留。
- 使用 --draft 将回复保存为草稿而非立即发送。
另请参阅