n8n-nodes-imap-ai
Version:
Simplified IMAP node for n8n with AI-agent support. Clean and modular email and mailbox management for automation workflows.
30 lines (29 loc) • 646 B
TypeScript
export interface EmailSearchFilters {
from?: string;
to?: string;
subject?: string;
text?: string;
cc?: string;
bcc?: string;
uid?: string;
}
export interface EmailDateRange {
since?: string;
before?: string;
}
export interface EmailFlagsFilter {
answered?: boolean;
deleted?: boolean;
draft?: boolean;
flagged?: boolean;
recent?: boolean;
seen?: boolean;
}
export interface EmailSearchConfig {
dateRange?: EmailDateRange;
flags?: EmailFlagsFilter;
filters?: EmailSearchFilters;
includeParts?: string[];
includeAllHeaders?: boolean;
headersToInclude?: string;
}