Saltar al contenido principal

Mailbox (IMAP)

Tipo de conexiónimap-mailbox

A mailbox you already have, read over IMAP. New mail can start your flows, with no DNS change.

De un vistazo​

PropiedadValor
Class nameimap-mailbox
ResourceConnectorClass (lumen.ai/v1alpha1); a workspace creates a Connector with classRef: {name: imap-mailbox}
Driverimap-mailbox
Providesmailbox
Modepull (Lumen reaches out to the system)
Credential keyspassword (kept in a Secret, never in config)

A workspace adds this connection on the Connections page or with lumen connect; credentials are kept in a Secret, never in the flow.

Ajustes​

Se definen bajo config: en el Connector.

AjusteTipoValor por defectoDescripción
hostobligatoriostring-The IMAP server's name, for example mail.example.com or outlook.office365.com.minLength 1; maxLength 253
insecureSkipVerifybooleanfalseFor development only: anyone on the network could pretend to be your mail server.
portinteger993Portminimum 1; maximum 65535
securitystring"tls"TLS is the usual choice (port 993). None is for development only: the password travels unencrypted.one of tls, starttls, none
usernameobligatoriostring-Usually the full email address.minLength 1; maxLength 320

El JSON Schema completo de estos ajustes: imap-mailbox.schema.json.

Configuración guiada​

lumen connect y la aplicación web te guían para añadir esta conexión.

Preajustes

  • gmail (Gmail)
  • yahoo (Yahoo)
  • icloud (iCloud)
  • other (Other server)

Credenciales que se piden

  • password: Password

Uso​

connector.yaml
apiVersion: lumen.ai/v1alpha1
kind: Connector
metadata:
name: my-imap-mailbox
namespace: tenant-acme
spec:
classRef: {name: imap-mailbox}
config: {}
---
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: mailbox-email-imap-mailbox-example
namespace: tenant-acme
spec:
displayName: "Mailbox (IMAP)"
triggers:
- id: start
ref: {name: mailbox-email}
connectorRef: {name: my-imap-mailbox}
next: [notify-in-app]
nodes:
- id: notify-in-app
stepRef: {name: notify-in-app}
config:
body: 'Total: {total}'
title: New invoice from {supplier}
to: admins