CLI to manage emails
This report presents the forensic synthetic code analysis of pimalaya/himalaya, a Rust project with 6,806 GitHub stars. SynthScan v2.0 examined 31,231 lines of code across 312 source files, recording 183 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 8.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 183 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config.sample.toml | 1 | # ================================================================================ | COMMENT |
| LOW | config.sample.toml | 21 | # Global config | COMMENT |
| LOW | config.sample.toml | 41 | #envelope.list.datetime-local-tz = false | COMMENT |
| LOW | config.sample.toml | 61 | #envelope.list.table.att-color = "reset" | COMMENT |
| LOW | config.sample.toml | 81 | #mailbox.list.table.id-color = "reset" | COMMENT |
| LOW | config.sample.toml | 101 | COMMENT | |
| LOW | config.sample.toml | 121 | # Gmail/Microsoft Graph use their well-known label/folder ids, and IMAP pins | COMMENT |
| LOW | config.sample.toml | 141 | #downloads-dir = "~/downloads/example" | COMMENT |
| LOW | config.sample.toml | 161 | #imap.tls.provider = "rustls" | COMMENT |
| LOW | config.sample.toml | 181 | # to skip authentication entirely (no `AUTHENTICATE` command sent). | COMMENT |
| LOW | config.sample.toml | 201 | #imap.sasl.oauthbearer.username = "user@example.com" | COMMENT |
| LOW | config.sample.toml | 221 | # `true` substitutes himalaya's canned value for the well-known keys (name, | COMMENT |
| LOW | config.sample.toml | 241 | #jmap.server = "https://api.fastmail.com/jmap/session" | COMMENT |
| LOW | config.sample.toml | 261 | #jmap.auth.bearer.token.command = ["ortie", "token", "show", "-a", "fastmail"] | COMMENT |
| LOW | config.sample.toml | 281 | # Gmail config | COMMENT |
| LOW | config.sample.toml | 301 | #gmail.alpn = ["http/1.1"] | COMMENT |
| LOW | config.sample.toml | 321 | #msgraph.user-id = "me" | COMMENT |
| LOW | config.sample.toml | 341 | COMMENT | |
| LOW | config.sample.toml | 361 | COMMENT | |
| LOW | config.sample.toml | 381 | # SASL ANONYMOUS | COMMENT |
| LOW | config.sample.toml | 401 | COMMENT | |
| LOW | src/config.rs | 61 | COMMENT | |
| LOW | src/config.rs | 141 | pub m2dir: Option<M2dirConfig>, | COMMENT |
| LOW | src/config.rs | 241 | } | COMMENT |
| LOW | src/config.rs | 261 | COMMENT | |
| LOW | src/config.rs | 301 | /// Global / per-account table rendering quirks shared across every list | COMMENT |
| LOW | src/config.rs | 361 | COMMENT | |
| LOW | src/config.rs | 381 | /// negotiation entirely. Only relevant for the rustls provider; | COMMENT |
| LOW | src/config.rs | 401 | #[serde(default)] | COMMENT |
| LOW | src/config.rs | 421 | /// after the tagged auth response. Default `false` skips ID | COMMENT |
| LOW | src/config.rs | 441 | pub root: PathBuf, | COMMENT |
| LOW | src/config.rs | 541 | /// | COMMENT |
| LOW | src/config.rs | 561 | #[derive(Clone, Debug, Default, Deserialize, Serialize)] | COMMENT |
| LOW | src/config.rs | 581 | #[derive(Clone, Debug, Deserialize, Serialize)] | COMMENT |
| LOW | src/config.rs | 661 | } | COMMENT |
| LOW | src/config.rs | 681 | /// Defaults to `["http/1.1"]` (JMAP rides on HTTP/1.1). Set to | COMMENT |
| LOW | src/config.rs | 721 | /// Gmail REST API configuration. | COMMENT |
| LOW | src/config.rs | 761 | /// | COMMENT |
| LOW | src/config.rs | 781 | /// Graph user id (the mailbox owner). Defaults to `me`, the | COMMENT |
| LOW | src/backend.rs | 1 | use std::fmt; | COMMENT |
| LOW | src/main.rs | 1 | //! # himalaya | COMMENT |
| LOW | src/main.rs | 21 | //! | COMMENT |
| LOW | src/main.rs | 41 | //! a sibling argument through every `execute` chain. | COMMENT |
| LOW | src/main.rs | 61 | //! discovers an account and offers to save it to a config file (or | COMMENT |
| LOW | src/json_schema.rs | 1 | //! JSON Schema registry for the `json-schema <DIR>` meta command. | COMMENT |
| LOW | src/cli.rs | 41 | backend::Backend, | COMMENT |
| LOW | src/cli.rs | 61 | pub config: ConfigFlags, | COMMENT |
| LOW | src/cli.rs | 81 | /// Top-level subcommands. | COMMENT |
| LOW | src/cli.rs | 101 | COMMENT | |
| LOW | src/cli.rs | 121 | M2dir(M2dirCommand), | COMMENT |
| LOW | src/imap/raw.rs | 1 | use anyhow::Result; | COMMENT |
| LOW | src/imap/fetch.rs | 41 | /// Fetch the envelope (date, subject, from, to, cc, ...). | COMMENT |
| LOW | src/imap/flag/store.rs | 21 | #[derive(Debug, Parser)] | COMMENT |
| LOW | src/imap/mailbox/arg.rs | 41 | /// Do not select the given mailbox before performing the current | COMMENT |
| LOW | src/imap/envelope/search.rs | 21 | mailbox::arg::{MailboxNameOptionalFlag, MailboxNoSelectFlag}, | COMMENT |
| LOW | src/imap/envelope/search.rs | 81 | /// the raw passthrough. | COMMENT |
| LOW | src/imap/envelope/search.rs | 101 | pub body: Option<String>, | COMMENT |
| LOW | src/imap/envelope/search.rs | 121 | pub smaller: Option<u32>, | COMMENT |
| LOW | src/imap/envelope/search.rs | 141 | /// Match \Deleted messages. | COMMENT |
| LOW | src/wizard/local.rs | 1 | //! Local backend wizard. | COMMENT |
| 70 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | config.sample.toml | 18 | # ================================================================================ | COMMENT |
| MEDIUM⚡ | config.sample.toml | 20 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 22 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 75 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 77 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 86 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 88 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 98 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 100 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 107 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 109 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 280 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 282 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 289 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 309 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 311 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 318 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 338 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 340 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 345 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | config.sample.toml | 348 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 1 | # ================================================================================ | COMMENT |
| MEDIUM | config.sample.toml | 48 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 50 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 129 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 131 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 147 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 150 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 232 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | config.sample.toml | 236 | # -------------------------------------------------------------------------------- | COMMENT |
| MEDIUM | src/account/context.rs | 168 | // ── envelopes list — flag glyphs ───────────────────────────────────── | COMMENT |
| MEDIUM | src/account/context.rs | 191 | // ── envelopes list — column colors ─────────────────────────────────── | COMMENT |
| MEDIUM | src/account/context.rs | 224 | // ── mailboxes list — column colors ─────────────────────────────────── | COMMENT |
| MEDIUM | src/account/context.rs | 242 | // ── attachments list — column colors ───────────────────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | config.sample.toml | 195 | #imap.sasl.login.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 201 | #imap.sasl.oauthbearer.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 207 | #imap.sasl.xoauth2.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 212 | #imap.sasl.scram-sha-256.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 390 | #smtp.sasl.login.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 395 | #smtp.sasl.oauthbearer.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 399 | #smtp.sasl.xoauth2.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 403 | #smtp.sasl.scram-sha-256.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 189 | imap.sasl.plain.username = "user@example.com" | CODE |
| LOW | config.sample.toml | 264 | #jmap.auth.basic.username = "user@example.com" | COMMENT |
| LOW⚡ | config.sample.toml | 385 | smtp.sasl.plain.username = "user@example.com" | CODE |
| LOW⚡ | MIGRATION.md | 147 | imap.sasl.plain.authcid = "user@example.com" | CODE |
| LOW⚡ | MIGRATION.md | 153 | imap.sasl.login.username = "user@example.com" | CODE |
| LOW⚡ | MIGRATION.md | 157 | imap.sasl.oauthbearer.username = "user@example.com" | CODE |
| LOW⚡ | MIGRATION.md | 163 | imap.sasl.xoauth2.username = "user@example.com" | CODE |
| LOW⚡ | MIGRATION.md | 167 | imap.sasl.scram-sha-256.username = "user@example.com" | CODE |
| LOW | MIGRATION.md | 214 | jmap.auth.basic.username = "user@example.com" | CODE |
| LOW | src/email/search/eval.rs | 156 | email: String::from("alice@example.org"), | CODE |
| LOW | src/email/search/eval.rs | 160 | email: String::from("team@example.org"), | CODE |