Mail workspace and automation
Open Mail to read and compose messages through your owned mailbox connections. The same connection can serve a scheduled agent and, optionally, dataset ingestion. Connecting a mailbox does not index its contents. If you later import mail into a shared dataset, those indexed documents follow the dataset's sharing policy.
When asking Raggy to read mail, it first needs to select one of your saved mailbox connections. If several are available, specify which mailbox you mean. A missing selection does not mean that your account is unconfigured. API clients first list their mailbox accounts, then pass the selected connector_id when listing messages; a missing or blank selection is a validation error. Message lists show synchronized mail, so check the account’s last synchronization time when you need current information.
Connect a generic mailbox
- Select Mail → Add mailbox, or the Mail source under Settings → Data sources. Enter a connection name and mailbox address.
- Choose Password or app password, then enable Receive through IMAP, Send through SMTP, or both. Enter your provider's server names and credentials. On a new connection, omitted SMTP credentials use the IMAP identity; blank password fields when editing retain stored credentials.
- Use verified TLS: IMAP supports port 993 with TLS or 143 with STARTTLS; SMTP supports 465 with TLS or 587 with STARTTLS. Plaintext connections, certificate bypasses and other ports are not offered. Private company servers require administrator-approved network access. That approval permits network access; the server must also present a complete certificate chain trusted by ZASTRA's maintained CA bundle. Ask the mail server administrator to correct an incomplete or untrusted chain; never bypass certificate checks.
- Choose Allowed actions. Sending requires its own permission. Enable Allow marking, moving, archiving and deleting messages only when those operations are wanted. Choose draft storage and your Sent-copy policy.
- Save, then use Test connection. The test checks reception and SMTP authentication; it does not send a test message. Correct a reported authentication, network or certificate problem before using the connection.
For private drafts, no server Drafts folder is needed. To publish drafts, select Also publish to server Drafts, choose the server's Drafts folder and grant draft access. Folder detection depends on the server; enter a folder explicitly if needed. Set the Archive folder before using Archive. Choose The provider stores sent messages if it already files SMTP submissions; otherwise select ZASTRA stores a copy in Sent and configure the Sent folder. An SMTP-only connection can compose and send, but cannot display an inbox. POP reception is not available.
Mailbox settings → Disconnect mailbox removes stored credentials and stops new actions after confirmation. It preserves saved drafts and Outbox records, without deleting or checking any provider draft copies. Removing a generic Mail source in Data sources follows the same procedure. To reconnect, open its settings, provide credentials again, save, and test; Microsoft connections also require authorization. Saving explicitly enables the connection again.
If an administrator is deleting your account, mailbox synchronization and new draft or send actions stop. An operation already submitting may need to finish before deletion can proceed. Check its Outbox result and retry account deletion when processing has ended; never resend solely because cleanup was delayed. A disabled or changed connection must be reloaded before further mailbox work.
Microsoft 365 through IMAP/SMTP
An administrator first configures Admin → Mailbox integration. In your mailbox dialog choose Microsoft 365 OAuth through IMAP/SMTP, enter the mailbox address, save, and select Authorize Microsoft 365. Complete Microsoft sign-in and consent for the intended account, then return and test the connection. Open authorization again provides a link when the popup is unavailable.
This connection uses Microsoft protocols without Microsoft Graph. It still needs an application registration, provider consent and tenant settings that allow IMAP and SMTP AUTH. ZASTRA does not weaken Microsoft security settings. If SMTP AUTH is prohibited, ask your Microsoft administrator about the appropriate supported connection; the existing Graph-based Outlook connection remains available. An expired authorization attempt requires starting authorization again. Revoked access or an expired application secret requires correction and reauthorization.
Gmail and Outlook access
Connect Gmail or Graph-based Outlook under Settings → Data sources. Gmail offers read, draft and send permissions and requires Google consent; changing scopes requires authorization again. Google's compose permission also permits sending at the provider level, so ZASTRA separately checks the connection's chosen actions. See Google connection setup.
Graph-based Outlook uses the mailboxes explicitly allowed in its connection. Microsoft permissions must cover the chosen action: Mail.ReadWrite for provider drafts and Mail.Send for sending. Changing a ZASTRA action setting does not grant missing Microsoft permissions. These connections appear in Mail; their authentication remains in their datasource settings. Each connection is private to its owner; neither a shared dataset nor a catalogue template grants access to it.
After disconnecting or removing Gmail or Outlook, reopen the retained connection under Settings → Data sources. Authorize Google again, or enter the Outlook application credentials again, then save and test. Saving credentials re-enables Mail access; changing a name, action setting or ingestion schedule alone does not. Saved drafts and Outbox records remain. Mail agent triggers stay paused: check the connection and agent, then explicitly enable the trigger to resume automation.
If an Outlook connection permits several mailboxes, each address appears separately in Mail and agent selectors. Choose the intended address; its folders, drafts, Outbox and trigger are kept separate even though they share one connection.
Read and organize messages
For a current folder check, ask Raggy to sync the named folder, then inspect its refreshed messages. Fetching folder names does not refresh their contents. A busy or shared sync has not started a fresh check, and a sync with more pages is incomplete. ZASTRA's saved draft list excludes discarded drafts; an empty list does not establish that the provider's Drafts folder is empty. Private, successful or uncertain publication statuses describe the saved ZASTRA record. Verify the selected provider folder before claiming that a copy is currently present or absent.
Choose a mailbox, then Sync now to discover messages. Open Inbox, Sent, or a folder from Folders. Select a message to read its content and download attachments. Conversations group related messages synchronized in the selected folder; they do not claim to show an entire server history. Search matches the sender and subject of synchronized messages.
List entries show short text previews; open the message to read its full content. Configured identifies a saved connection, not a successful connection test. Check its last synchronization and use Test connection when access needs verification.
Remote images are blocked initially. Load remote images explicitly allows HTTPS images for that message; loading may reveal the request to their host. Inline images use owned attachments. Messages cannot execute scripts or submit forms. Mark read/unread, Move, Archive and Delete are available only when the connection permits them. Delete changes the connected mailbox after confirmation. An archive or move error can mean that the target folder is missing or unavailable.
Links in a message open in a restricted browser window. If a linked page does not work there, copy the link and open it in a new browser tab.
Mail lists refresh about every 30 seconds while open; Outbox refreshes about every 10 seconds. The server checks configured mailbox folders about every five minutes even without an agent and when the browser is closed. Sync now requests an immediate mailbox check; enabled agents also use their own trigger interval. Check connection status and last synchronization when expected mail is absent.
Compose, reply and review drafts
For Graph-based Outlook, ZASTRA limits sending to a 4 MB encoded message, including its text and attachments. Encoding increases the size beyond the original files. Reduce or remove attachments when the message exceeds this limit. Publishing a larger server draft does not make it sendable through ZASTRA; use your mail client for that message. Generic SMTP connections follow their server's limits instead.
Select Compose, Reply, Reply all or Forward. Choose an approved Sending identity when alternatives are available; provider Send As permissions still apply. Review To, CC, BCC, subject and attachments before saving or sending. Switch between plain and formatted text; the formatted editor offers bold, italic and lists. Reply all can include additional recipients and must be checked. Forward begins a new outgoing message for you to address.
Compose starts with a blank draft. Switching an existing formatted draft to plain text preserves its words and removes formatting. If the editor closes unexpectedly, reopen the saved entry under Drafts before creating another copy.
To create a draft with Raggy, specify the mailbox, recipients, subject and message. Say whether you want a private draft in ZASTRA or a draft also published in the provider's Drafts folder. Review the proposed content before approving the save. Raggy checks the saved draft against your request; creating or editing it does not send mail. If content is missing, ask Raggy to correct that same draft. If another edit changed its revision, reopen the draft before continuing. Sending requires a separate instruction and the connection's send permission.
Private draft in ZASTRA keeps the draft here. Also publish to server Drafts makes a copy available in another mail client when supported. Saving a server draft can report a publication problem or a conflict with external editing. A draft's revision identifies the content being edited. If another client changes it, your save is rejected and your unsaved text stays visible; close and reopen to review the latest revision, then reapply intended edits. Do not assume that a draft disappearing in another client proves it was sent.
An agent can create a linked draft-review task. Open it under Tasks or the Home review widget to use the same editor. Changing recipients, content or attachments saves a new revision; Send submits that saved revision. Sending needs the connection's send permission. The linked task completes after acceptance, and cannot be independently deleted or marked complete like an ordinary task. Configure signatures and fixed structures through Templates and fixed blocks; provider signatures are not automatically imported.
Saved drafts remain readable if a connection is revoked, but editing or sending requires a usable connection with the relevant permission. Restore access before proceeding. If the server reports that Mail is unavailable, ask your administrator for a deployment supporting Mail and mailbox-connected agents; account controls are hidden when unsupported.
Outbox and uncertain delivery
Use Discard draft to discard an editable draft in ZASTRA after confirmation. This clears its local content and removes it from the saved draft list, without deleting or checking any provider copy. A copy associated with a successful or uncertain publication may still exist. Check the provider's Drafts folder before claiming current presence or absence, and use your mail client to remove a confirmed copy. Reconcile server draft checks an uncertain publication before permitting more edits or sending. Do not create a replacement server copy while publication remains uncertain.
Outbox records queued, submitting, accepted, rejected, temporary-failure, uncertain and cancelled submissions. Accepted by the mail service confirms acceptance for submission, not final delivery to the recipient's inbox. Inspect the provider's delivery report where needed. A pending or failed Sent copy does not mean the message should be sent again.
If delivery is uncertain, the server may already have accepted the message. ZASTRA blocks another submission from that draft and does not automatically resend. Check Sent, provider records or the recipient. Only after checking, select I confirmed it was sent to record acceptance, or I confirmed it was not sent to cancel the uncertain submission and release a new editable draft revision. Neither choice sends mail. A queued or temporarily failed submission offers Cancel pending submission; an active submission cannot be cancelled. Reopen the released draft to review it before any new submission.
Outbox lists accepted and rejected recipients separately. With a partial rejection, do not send another copy to accepted recipients. A definite rejection permits correction and saving a new draft revision. Temporary failures before message transfer can be retried by the service; do not repeatedly run an agent to clear an uncertain result. A Pending recovery Sent copy is repaired separately and does not justify sending again.
A scheduled mail workflow
- Connect and test an owned mailbox. Build a Task canvas with classification and explicit branches for relevant and irrelevant messages.
- Select the research dataset/MCP tools, generation models and a writing template in your own account. Verify sources and use a review branch when research fails.
- Add Email. Select the connection, Draft or Send, identity and Reply to the incoming mail trigger as appropriate. Drafts can create a review task with a deadline. A Mailbox action node can mark, move, archive or delete permitted messages; omitted message IDs use the incoming trigger message.
- Use the composer's Dry run: preview mail actions and tasks first. No email is sent, server drafts published or tasks created. Unsupported tools are blocked. For a Task canvas, choose the mode before Test run; start a new run to change it. Review each branch before deliberately running with mail actions enabled.
- Publish the reviewed canvas. Under Management → Mail trigger, select its owner's connection and permitted mailbox, set an interval from five minutes to 24 hours, and enable it. Inspect trigger history and Agent Logs. Later edits require another publish.
Automatic checks and Check now pick up new mail after the saved cursor; they do not replay earlier inbox messages. To process one earlier message, choose Process a received message in the same dialog, select that inbox message and choose Process selected email. An existing processing record is returned without starting that message again.
Workflow completion and mail delivery are separate. A workflow can finish while a reply is queued. Check trigger history and Logs for the workflow outcome, then check delivery state: queued means pending; sent means the mail service accepted the submission, not that it reached the recipient’s inbox; ignored means no message was sent for that case; uncertain means it may have been accepted. Before retrying an uncertain send, check Outbox and the provider’s records.
A trigger recorded as processed may mean that a native task was committed for the owner to review the case. That is a human handoff, not an approval or a sent email. If incoming attachments are rejected before the workflow starts because they cannot be read or fail file or permission checks, the owner receives one generic review task referring to the original message. Check that task, the message in Mail, and Logs; correct the file or access before trying again. This intake rejection is not retried automatically. For other errors or interruptions, inspect the run, related tasks, logs and mail delivery state before any manual retry.
System mail-review tasks show the original sender and subject from the owned mailbox record. Select Open message in Mail to open that exact message, even when it is outside the current folder or message list. If the message is no longer available, the task says so rather than opening another email. A workflow-configuration review task means the message was not processed: correct and publish the configuration for future messages, then review and handle this original email manually in Mail before completing the task. Correcting the configuration or completing the task does not replay the message.
First enablement starts with current mail rather than automatically acting on mailbox history. The trigger supplies message identity, sender, subject, body and bounded owned attachment references where supported. Scans still require a suitable OCR/VLM step and configured models. Irrelevant messages should have a branch with no mail action. Automatic sending follows the published policy without asking for confirmation on each message; verify failure branches and recipients carefully.
Hand an incoming submission to an assigned form
For a published Task workflow that receives submissions by email, configure one optional file collection on Start for the incoming message's attachments. Keep it optional so a message with no attachments can still reach classification. Map the required document roles and fields in the downstream workflow, and verify them against evidence in this message. Use the read-only sys.input_files manifest to compare role requirements with accepted uploads; see Collect information with forms. Each email is a separate complete package: a later reply in the same conversation does not add files or answers to an earlier case. When information is missing, send a formal reply naming the items that are actually missing and ask for one complete updated package. Configure that Email action to Send as a reply to the incoming mail trigger through the same owned mailbox. Unrelated messages should follow an ignore branch with no reply or case.
Route a candidate to an assigned Await response form only after its required information and evidence are complete. The assignment must be durably saved before the handoff is accepted; an unassigned interactive form is not supported in a mail-triggered workflow. Assign the form to a distinct active account, separate from the mailbox/workflow owner and any approval reviewers. The owner’s mailbox connection must allow both receiving and sending for intake and replies. The saved form task retains the same case and workflow session, with the selected source evidence kept as immutable case files. Email monitoring can continue while the assignee works. When the assignee submits answers in Tasks, the same workflow continues automatically; the requester does not need to resume or restart it. If task creation or the saved handoff status is unclear, check the task and trigger history before retrying; do not replay the email workflow when an earlier reply or other action may already have been accepted.
Missing, unreadable, over-limit, ambiguous or unsupported attachments cannot establish that a package is complete. Report the actual omission or problem and request a complete replacement package when needed. An approval created later is delivered through Tasks to its configured accounts; the external sender is not automatically an approval reviewer or result recipient, and approval does not produce an automatic final email.
The AI builder understands mailbox connections, draft storage, draft/send actions, review tasks and permitted mailbox actions. Ask explicitly for sending; an ambiguous reply request defaults to drafting. Catalogue agents leave accounts, models, datasets and templates for each user to choose. Follow-up instructions retain the conversation and current composer. See AI-assisted agent creation.
Pause the trigger and wait for its current run to finish before changing the mailbox or enabling it again.