转发会向外部收件人披露原邮件及默认包含的附件
原文依据:5 处该命令会把原邮件连同发件人、日期、主题、收件人和原始附件发送给 `--to`、`--cc` 或 `--bcc` 指定的地址。附件默认包含,且普通调用并非预览或草稿。
选错邮件 ID 或收件人可能立即泄露邮件正文、通信关系、内嵌图片和附件中的敏感信息。密送地址还可能不易被其他收件人察觉。
风险成立,但这是转发功能的预期行为,并非隐藏操作。执行普通转发时,原邮件的发件人、日期、主题、收件人及原始附件会披露给 `--to` 指定的地址;附件默认包含。只有明确使用 `--dry-run`、`--draft` 或 `--no-original-attachments` 才能分别避免立即发送或排除原附件。用户可要求发送前固定使用预览/草稿并核对所有收件人。
|------|----------|---------|-------------|| `--message-id` | ✓ | — | Gmail message ID to forward || `--to` | ✓ | — | Recipient email address(es), comma-separated || `--from` | — | — | Sender address (for send-as/alias; omit to use account default) || `--body` | — | — | Optional note to include above the forwarded message (plain text, or HTML with --html) || `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) || `--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) |查看另外 4 个位置
| `--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 |- Includes the original message with sender, date, subject, and recipients.- Original attachments are included by default (matching Gmail web behavior).- With --html, inline images are also preserved via cid: references.- In plain-text mode, inline images are not included (matching Gmail web).```bashgws gmail +forward --message-id <ID> --to <EMAILS>```- In plain-text mode, inline images are not included (matching Gmail web).- Use --no-original-attachments to forward without the original message's files.- Use -a/--attach to add extra file attachments. Can be specified multiple times.