Documentation
    Preparing search index...

    Interface MailpitRspamdResponse

    Response from the rspamdCheck() API containing Rspamd check results.

    interface MailpitRspamdResponse {
        Action: string;
        Error: string;
        IsSpam: boolean;
        Rules: { Description: string; Name: string; Score: number }[] | null;
        Score: number;
        Threshold: number;
    }
    Index
    Action: string

    Action Rspamd recommends, eg: "no action", "greylist", "add header", "reject"

    Error: string

    If populated will return an error string

    IsSpam: boolean

    Whether the message is spam or not

    Rules: { Description: string; Name: string; Score: number }[] | null

    Rspamd symbols triggered and their score, sorted by highest score first.

    Type Declaration

    • { Description: string; Name: string; Score: number }[]
      • Description: string

        Rspamd symbol description

      • Name: string

        Rspamd symbol name

      • Score: number

        Symbol score

    • null

    The rules may return null if there is an error. Check the Error property for details.

    Score: number

    Total spam score based on triggered symbols

    Threshold: number

    Score at which Rspamd will start to treat a message as spam