Interface BotProcessor

All Known Implementing Classes:
EmailAnalysisBot, SessionBot

public interface BotProcessor
Bot processor interface for email infrastructure analysis bots.

Bots automatically analyze incoming emails and their infrastructure, then generate a reply with diagnostic information.

Implementations should:

  • Parse the incoming email if needed
  • Analyze the SMTP session, headers, DNS records, etc.
  • Generate a response email with findings
  • Queue the response for delivery
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the name of this bot for factory registration.
    void
    process(Connection connection, EmailParser emailParser, String botAddress)
    Processes an email for bot analysis and generates a response.
  • Method Details

    • process

      void process(Connection connection, EmailParser emailParser, String botAddress)
      Processes an email for bot analysis and generates a response.

      This method should not block - it will be called from a thread pool.

      Parameters:
      connection - SMTP connection instance containing session data.
      emailParser - Parsed email instance, may be null if parsing failed.
      botAddress - The bot address that matched (e.g., "robot+token@example.com").
    • getName

      String getName()
      Gets the name of this bot for factory registration.
      Returns:
      Bot name.