Zum Hauptinhalt springen

RequeueFailedImportMailsNodeConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Load

Configuration for node RequeueFailedImportMails: sends mails parked in the channel's failed folder back into the folder the import polls, as a fresh start.

Per mail, in this order: (1) clear every well-formed OctoMesh-Import-* marker (Graph categories; IMAP keywords — a user's own categories are kept) and, for IMAP, the \Seen and \Deleted flags; (2) only if that worked, move the mail to the configured source folder. A mail moved back with its markers still on would be parked again by the very next poll, because the attempts are counted from them — so a mail whose markers cannot be cleared is NOT moved and the result says why.

Which mails: RequeueFailedImportMailsNodeConfiguration.MessageIdsPath (an array of the ids ListFailedImportMails@1 returned) or, when RequeueFailedImportMailsNodeConfiguration.AllPath resolves to true, every mail in the failed folder up to maxMails. One failing mail never stops the others. Output at : { channel, mailbox, failedFolder, sourceFolder, requested, requeued, notFound, failed, truncated, results: [ { id, subject, status: Requeued | NotFound | Failed, reason, internetMessageId } ] }.

public record RequeueFailedImportMailsNodeConfiguration : FailedImportMailsNodeConfiguration, INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IEquatable<FailedImportMailsNodeConfiguration>, IEquatable<RequeueFailedImportMailsNodeConfiguration>

Inheritance Object → NodeConfiguration → TargetPathNodeConfiguration → FailedImportMailsNodeConfiguration → RequeueFailedImportMailsNodeConfiguration
Implements INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IEquatable<FailedImportMailsNodeConfiguration>, IEquatable<RequeueFailedImportMailsNodeConfiguration>

Properties​

MessageIdsPath​

JSONPath to the array of mail ids to re-queue, e.g. $.body.messageIds.

public string MessageIdsPath { get; set; }

Property Value​

String

AllPath​

JSONPath to a boolean; true re-queues every mail in the failed folder, e.g. $.body.all.

public string AllPath { get; set; }

Property Value​

String

Channel​

Which mailbox: Imap or Graph (case-insensitive). Ignored when FailedImportMailsNodeConfiguration.ChannelPath resolves.

public string Channel { get; set; }

Property Value​

String

ChannelPath​

JSONPath to the channel name in the data context, e.g. $.body.channel. Wins over FailedImportMailsNodeConfiguration.Channel.

public string ChannelPath { get; set; }

Property Value​

String

ImapServerConfiguration​

IMAP: well-known name of the System.Communication/EMailReceiverConfiguration the FromEmail@1 trigger connects with.

public string ImapServerConfiguration { get; set; }

Property Value​

String

ImapSettingsConfiguration​

IMAP: well-known name of the settings configuration the trigger reads its folders from (settingsConfiguration).

public string ImapSettingsConfiguration { get; set; }

Property Value​

String

ImapSourceFolderAttribute​

IMAP: attribute holding the folder the import polls — where a re-queued mail goes.

public string ImapSourceFolderAttribute { get; set; }

Property Value​

String

ImapFailedFolderAttribute​

IMAP: attribute holding the folder failed mails are parked in.

public string ImapFailedFolderAttribute { get; set; }

Property Value​

String

GraphServerConfiguration​

Microsoft Graph: well-known name of the System.Communication/MicrosoftGraphConfiguration (the FromMicrosoftGraphEmail@1 trigger's serverConfiguration).

public string GraphServerConfiguration { get; set; }

Property Value​

String

GraphSettingsConfiguration​

Microsoft Graph: well-known name of the settings configuration the trigger reads its mailbox and folders from.

public string GraphSettingsConfiguration { get; set; }

Property Value​

String

GraphMailboxAttribute​

Microsoft Graph: attribute holding the mailbox address.

public string GraphMailboxAttribute { get; set; }

Property Value​

String

GraphSourceFolderAttribute​

Microsoft Graph: attribute holding the folder the import polls — where a re-queued mail goes.

public string GraphSourceFolderAttribute { get; set; }

Property Value​

String

GraphFailedFolderAttribute​

Microsoft Graph: attribute holding the folder failed mails are parked in.

public string GraphFailedFolderAttribute { get; set; }

Property Value​

String

MaxMails​

Upper bound on the mails handled in one call (default 200): listed, or re-queued by "all". The output says truncated: true when more are waiting. Nullable with the default resolved where it is read — the definition deserializer overwrites an initializer with a present null.

public Nullable<int> MaxMails { get; set; }

Property Value​

Nullable<Int32>

TimeoutSeconds​

Overall time budget in seconds (default 120): connecting plus every request together.

public Nullable<int> TimeoutSeconds { get; set; }

Property Value​

Nullable<Int32>

TargetPath​

public string TargetPath { get; set; }

Property Value​

String

TargetValueWriteMode​

public TargetValueWriteModes TargetValueWriteMode { get; set; }

Property Value​

TargetValueWriteModes

TargetValueKind​

public ValueKinds TargetValueKind { get; set; }

Property Value​

ValueKinds

DocumentMode​

public DocumentModes DocumentMode { get; set; }

Property Value​

DocumentModes

Description​

public string Description { get; set; }

Property Value​

String

Constructors​

RequeueFailedImportMailsNodeConfiguration()​

public RequeueFailedImportMailsNodeConfiguration()