Actions12
- Mailbox Actions
- Email Actions
Overview
This node connects to an IMAP email server to perform various mailbox-related operations. Specifically, the Get Quota operation under the Mailbox resource retrieves quota information for a specified mailbox folder. This is useful for monitoring mailbox storage usage and limits, especially when managing email accounts with limited space.
Common scenarios include:
- Checking how much storage space is used and available in a mailbox folder.
- Automating alerts or workflows based on mailbox quota thresholds.
- Integrating mailbox quota data into dashboards or reports.
Example: A user wants to monitor the "INBOX" folder's quota to ensure it does not exceed 90% capacity and trigger cleanup actions if needed.
Properties
| Name | Meaning |
|---|---|
| Credential Type | Selects which credentials to use for connecting to the IMAP server: - IMAP (use credentials from this node) - N8N IMAP Trigger Node (reuse existing credentials from an IMAP trigger node) |
| Mailbox | The mailbox folder path to check quota for. Can be selected from a list of mailboxes or entered as a full path string. Default is "INBOX". Useful only if the email provider supports per-folder quotas. |
Output
The node outputs JSON data containing the quota information of the specified mailbox. The exact structure depends on the IMAP server response but typically includes fields such as:
- Total storage quota assigned to the mailbox.
- Storage used so far.
- Possibly message count limits and usage.
No binary data output is involved in this operation.
Dependencies
- Requires valid IMAP credentials to connect to the email server.
- Supports two modes of authentication: using credentials defined directly in the node or reusing credentials from an existing IMAP trigger node.
- Environment variable
N8N_LOG_LEVELcan influence logging verbosity (e.g., debug mode).
Troubleshooting
- Connection failed errors: Usually caused by incorrect credentials, wrong server address, or network issues. Verify credentials and connectivity.
- Unknown operation or resource errors: Ensure that the Resource is set to "Mailbox" and Operation to "Get Quota".
- Empty or no data returned: Some IMAP servers do not support per-folder quotas; verify your email provider supports this feature.
- Error messages with responseText: These often indicate server-side errors or protocol issues. Check server logs or increase log level for more details.
- Credential selection issues: Make sure the chosen credential type matches the available credentials configured in n8n.
Links and References
- IMAP Protocol Quota Extension (RFC 2087)
- n8n Documentation - IMAP Node
- IMAP Quota Support in Email Providers (example for Gmail)
If you need further details about other operations or resources, feel free to ask!