Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Forward a Gmail message to new recipients with optional note, attachments, CC/BCC, and HTML body.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: gws-gmail-forward3description: "Gmail: Forward a message to new recipients."4metadata:5version: 0.22.56openclaw:7category: "productivity"8requires:9bins:10- gws11cliHelp: "gws gmail +forward --help"12---1314# gmail +forward1516> **PREREQUISITE:** Read `../gws-shared/SKILL.md` for auth, global flags, and security rules. If missing, run `gws generate-skills` to create it.1718Forward a message to new recipients1920## Usage2122```bash23gws gmail +forward --message-id <ID> --to <EMAILS>24```2526## Flags2728| Flag | Required | Default | Description |29|------|----------|---------|-------------|30| `--message-id` | ✓ | — | Gmail message ID to forward |31| `--to` | ✓ | — | Recipient email address(es), comma-separated |32| `--from` | — | — | Sender address (for send-as/alias; omit to use account default) |33| `--body` | — | — | Optional note to include above the forwarded message (plain text, or HTML with --html) |34| `--no-original-attachments` | — | — | Do not include file attachments from the original message (inline images in --html mode are preserved) |35| `--attach` | — | — | Attach a file (can be specified multiple times) |36| `--cc` | — | — | CC email address(es), comma-separated |37| `--bcc` | — | — | BCC email address(es), comma-separated |38| `--html` | — | — | Treat --body as HTML content (default is plain text) |39| `--dry-run` | — | — | Show the request that would be sent without executing it |40| `--draft` | — | — | Save as draft instead of sending |4142## Examples4344```bash45gws gmail +forward --message-id 18f1a2b3c4d --to [email protected]46gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --body 'FYI see below'47gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --cc [email protected]48gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --body '<p>FYI</p>' --html49gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] -a notes.pdf50gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --no-original-attachments51gws gmail +forward --message-id 18f1a2b3c4d --to [email protected] --draft52```5354## Tips5556- Includes the original message with sender, date, subject, and recipients.57- Original attachments are included by default (matching Gmail web behavior).58- With --html, inline images are also preserved via cid: references.59- In plain-text mode, inline images are not included (matching Gmail web).60- Use --no-original-attachments to forward without the original message's files.61- Use -a/--attach to add extra file attachments. Can be specified multiple times.62- Combined size of original and user attachments is limited to 25MB.63- With --html, the forwarded block uses Gmail's gmail_quote CSS classes and preserves HTML formatting. Use fragment tags (<p>, <b>, <a>, etc.) — no <html>/<body> wrapper needed.64- Use --draft to save the forward as a draft instead of sending it immediately.6566## See Also6768- [gws-shared](../gws-shared/SKILL.md) — Global flags and auth69- [gws-gmail](../gws-gmail/SKILL.md) — All send, read, and manage email commands70