Actions57
- 1. Manager Actions
- 2. Mouse Actions
- 3. Keyboard Actions
- 4. Browser Control Actions
- 5. Element Actions
- 6. Image Actions
- 7. Others Actions
- 8. Email Actions
- 9. Developer Actions
- 10. General Debug Actions
8. Email → read_mail_code
AI-generatedSummary
Connects to an IMAP mailbox, filters recent messages, and extracts an authentication code by character type and length or from an HTML element selected by XPath. Configure the required worker topic and remote port, mailbox address and password, then optionally narrow the search by recipient, folder, unread status, message age, and scan depth.
Inputs
- Topic and QoS (required) — MQTT topic to route the request to the client; QoS defaults to 1.
- Remote Port (required) — CDP port for the target browser session, commonly mapped from the preceding profile-opening node; use 127001 for a local session.
- Email and Password (required) — IMAP mailbox credentials. The UI notes Gmail and Outlook require an App Password.
- Mail Server — IMAP server hostname; defaults to imap.gmail.com.
- Email Sent To Contains — Only consider messages whose recipient address contains this string, useful for filtering aliases.
- Code Type and Code Length — Code type defaults to number (or choose alphanumeric); length defaults to 6.
- Code Element XPath and Attribute — Optional HTML XPath for locating the code and the value to read from that element; attribute defaults to text.
- Folder — IMAP folder to scan; defaults to INBOX.
- Unread Only — Whether to restrict the search to unread messages; defaults to true.
- Max Mails — Number of recent messages to scan; defaults to 30.
- Max Age Minutes — Optional limit on message age in minutes.
- Debug and Debug Prefix — Enable detailed logs (default false) and set their prefix (default [MAIL]).
- Include Input Items and Include Input Fields — Optionally attach upstream item data, selecting fields or nested paths to include.
- Wait For Response and Response Timeout — Optionally wait for the MQTT response (default false); timeout in seconds defaults to 60 when waiting is enabled.
- Delay Next Step — Delay before continuing; defaults to rand(200,1000) milliseconds.
Output shape
A single operation result returned through the MQTT response.
The supplied source pack shows the shared MQTT execution framework but omits the action implementation and response mapping, so it does not establish the exact result fields or whether the extracted code is returned in a particular field.
