An email and SMTP testing tool with API for developers
This report summarizes scanner evidence for axllent/mailpit, a Go project with 10,805 GitHub stars. SynthScan examined 53,586 lines of code across 220 source files, recording 74 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 67 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 74 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 74 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/thumbnail/thumbnail.go | 21 | xdraw "golang.org/x/image/draw" | COMMENT |
| LOW | internal/thumbnail/exif.go | 21 | jpegRSTMax = 0xD7 | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1021 | // file, err = os.CreateTemp("", "") | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1041 | // BAMMCWxvY2FsaG9zdDAgFw0xODA0MjAxMzMxNTBaGA8yMDg2MDUwODEzMzE1MFow | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1061 | // Proc-Type: 4,ENCRYPTED | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1081 | // ehzHKGHXVGf7ZiSFF+zAHMXZRSwNVMkOYwlIoRg1IbvIRbAXqAR6xXQTCVzNG0SU | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1381 | cmdCode(t, tlsConn, "EHLO host.example.com", "250") | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1441 | COMMENT | |
| LOW | internal/smtpd/smtpd_test.go | 1501 | // AUTH PLAIN with TLS in use can proceed. | COMMENT |
| LOW | internal/smtpd/smtpd_test.go | 1601 | func TestCmdAUTHCRAMMD5(t *testing.T) { | COMMENT |
| LOW | internal/smtpd/smtpd.go | 161 | // certPEMBlock, err := os.ReadFile(certFile) | COMMENT |
| LOW | internal/htmlcheck/structs.go | 41 | // Result struct | COMMENT |
| LOW | server/cors.go | 21 | // attacker who rebinds a name they control to Mailpit's listen address | COMMENT |
| LOW | server/cors.go | 61 | // the configured allowlist. When AllowedHosts is unset the check is a no-op | COMMENT |
| LOW | server/cors_test.go | 121 | allowed := corsOriginAccessControl(req) | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 1 | // Package apiv1 provides the API v1 endpoints for Mailpit. | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 21 | // in: path | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 41 | // swagger:parameters GetMessageParams | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 61 | // Pagination offset | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 81 | type setReadStatusParams struct { | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 101 | // example: tag:backups | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 121 | // example: ["4oRBnPtCXgAqZniRhzLNmS", "hXayS6wnCgNnt6aFTvmOF6"] | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 141 | Start string `json:"start"` | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 161 | // Search query | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 181 | // description: Message database ID or "latest" | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 201 | COMMENT | |
| LOW | server/apiv1/swaggerParams.go | 221 | // swagger:parameters SendMessageParams | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 241 | // example: Jane Doe | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 261 | // example: ["jack@example.com"] | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 281 | Text string | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 321 | // in: body | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 341 | // in: path | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 361 | // required: true | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 381 | // type: string | COMMENT |
| LOW | server/apiv1/swaggerParams.go | 401 | } | COMMENT |
| LOW | server/apiv1/release.go | 21 | // swagger:route POST /api/v1/message/{ID}/release message ReleaseMessageParams | COMMENT |
| LOW | server/apiv1/tags.go | 21 | // | COMMENT |
| LOW | server/apiv1/tags.go | 41 | // | COMMENT |
| LOW | server/apiv1/tags.go | 81 | COMMENT | |
| LOW | server/apiv1/tags.go | 121 | _, _ = w.Write([]byte("ok")) | COMMENT |
| LOW | server/apiv1/other.go | 21 | // | COMMENT |
| LOW | server/apiv1/other.go | 81 | COMMENT | |
| LOW | server/apiv1/other.go | 141 | // swagger:route GET /api/v1/message/{ID}/sa-check other SpamAssassinCheckParams | COMMENT |
| LOW | server/apiv1/message.go | 21 | // Returns the summary of a message, marking the message as read. | COMMENT |
| LOW | server/apiv1/message.go | 61 | func GetHeaders(w http.ResponseWriter, r *http.Request) { | COMMENT |
| LOW | server/apiv1/message.go | 121 | // | COMMENT |
| LOW | server/apiv1/chaos.go | 41 | // SetChaos sets the Chaos configuration. | COMMENT |
| LOW | server/apiv1/send.go | 21 | // SendMessageHandler handles HTTP requests to send a new message | COMMENT |
| LOW | server/apiv1/messages.go | 41 | COMMENT | |
| LOW | server/apiv1/messages.go | 81 | if err := json.NewEncoder(w).Encode(res); err != nil { | COMMENT |
| LOW | server/apiv1/messages.go | 161 | } | COMMENT |
| LOW | server/apiv1/messages.go | 201 | } | COMMENT |
| LOW | server/apiv1/messages.go | 261 | httpError(w, err.Error()) | COMMENT |
| LOW | server/apiv1/swaggerResponses.go | 21 | COMMENT | |
| LOW | server/apiv1/swaggerResponses.go | 101 | type webUIConfigurationResponse struct { | COMMENT |
| LOW | server/apiv1/application.go | 21 | // Produces: | COMMENT |
| LOW | server/apiv1/application.go | 41 | // | COMMENT |
| LOW | server/apiv1/thumbnails.go | 21 | // | COMMENT |
| LOW | server/apiv1/testing.go | 21 | // | COMMENT |
| LOW | server/apiv1/testing.go | 121 | // | COMMENT |
| 3 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | internal/storage/utils_test.go | 15 | {"plain address unchanged", "user@example.com", "user@example.com"}, | CODE |
| LOW | server/server_test.go | 289 | "Name": "John Doe" | CODE |
| LOW | server/server_test.go | 294 | "Name": "Jane Doe" | CODE |
| LOW | server/server_test.go | 363 | assertEqual(t, `"John Doe" <john@example.com>`, msg.From.String(), "wrong HTML") | CODE |
| LOW | server/server_test.go | 365 | assertEqual(t, `"Jane Doe" <jane@example.com>`, msg.To[0].String(), "wrong To address") | CODE |
| LOW | server/ui/api/v1/swagger.json | 910 | "example": "John Doe" | CODE |
| LOW | server/ui/api/v1/swagger.json | 989 | "example": "Jane Doe" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | server/apiv1/release.go | 43 | httpError(w, "this functionality has been disabled for demonstration purposes") | CODE |
| MEDIUM | server/apiv1/other.go | 103 | httpError(w, "this functionality has been disabled for demonstration purposes") | CODE |
| MEDIUM | server/apiv1/send.go | 42 | httpJSONError(w, "this functionality has been disabled for demonstration purposes") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 43 | # Check if the OS is supported. | COMMENT |