[mail.pop3.fetch]

mail.pop3.fetch is a slot in the mail namespace, in Hyperlambda, the language of Magic Cloud. Fetches messages from a POP3 mailbox using child-node options and a required [.lambda] callback.

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
[.lambda] lambda yes Callback evaluated once per fetched message with [.message] injected.
[raw] bool no Whether to pass raw MIME text to the callback.
[max] int no Maximum number of messages to fetch.

Guide: How to use [mail.pop3.fetch]

JSON declaration

This is the complete declaration of mail.pop3.fetch, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "mail.pop3.fetch",
  "description": "Fetches messages from a POP3 mailbox using child-node options and a required [.lambda] callback",
  "signature": {
    "children": {
      "raw": {
        "type": "bool",
        "description": "Whether to pass raw MIME text to the callback",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "role": "Option",
        "projection": "Value"
      },
      "max": {
        "type": "int",
        "description": "Maximum number of messages to fetch",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne",
        "role": "Option",
        "projection": "Value"
      },
      ".lambda": {
        "type": "lambda",
        "description": "Callback evaluated once per fetched message with [.message] injected",
        "required": true,
        "mode": "ExecutableLambda",
        "cardinality": "ExactlyOne",
        "role": "Callback",
        "evaluation": "EvalBlock",
        "projection": "Self"
      }
    }
  }
}

all mail.* slots mail.smtp.send →