Interface Mail


public interface Mail
Handles incoming email.

A message that reaches the end of this method with no disposition recorded is dropped by the platform, so InboundMail tracks its own. Call InboundMail.forward(java.lang.String), InboundMail.reply(java.lang.String) or InboundMail.reject(java.lang.String) at any point and carry on working; InboundMail.drop() states that dropping the message was the intent. Returning without any of them raises rather than discarding the message silently.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    email(InboundMail mail, Env env, ExecutionCtx ctx)
    Handles one inbound message.
  • Method Details

    • email

      void email(InboundMail mail, Env env, ExecutionCtx ctx)
      Handles one inbound message.
      Parameters:
      mail - the message, which records what was done to it
      env - the bindings declared in the Wrangler configuration
      ctx - the invocation context