Skip to main content
getRawMessage retrieves Gmail’s raw RFC 5322 message source. Use this escape hatch when a protocol, signature verifier, or specialized mail parser needs the original message instead of Automate.ax’s parsed message fields. Most automations should use Get message.

Example

automations/get-raw-message.automation.ts

Inputs

Each input can also be a compatible Signal from an earlier trigger or action.

Output

Returns a Signal<string> containing the base64url-encoded RFC 5322 message. Decode it before passing it to a parser that expects raw message bytes or text.
The output can contain message bodies, recipient data, and attachment contents. Treat it as sensitive mailbox data.