All-in-one Mail & Collaboration server. Secure, scalable and fluent in every protocol (IMAP, JMAP, SMTP, CalDAV, CardDAV, WebDAV).
This report presents the forensic synthetic code analysis of stalwartlabs/stalwart, a Rust project with 13,617 GitHub stars. SynthScan v2.0 examined 387,057 lines of code across 1359 source files, recording 641 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 3.5 places this repository in the Likely human-written 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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
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 641 distinct pattern matches across 14 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 |
|---|---|---|---|---|
| CRITICAL | crates/imap/src/op/list.rs | 188 | mailbox_name: self.server.core.email.shared_folder.as_str().into(), | CODE |
| CRITICAL | crates/imap/src/op/create.rs | 191 | if path.first() == Some(&self.server.core.email.shared_folder.as_str()) { | CODE |
| CRITICAL | crates/imap/src/op/namespace.rs | 33 | Some(self.server.core.email.shared_folder.as_str().into()) | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 28 | if !self.core.spam.rules.url.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 45 | if !self.core.spam.rules.domain.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 64 | if !self.core.spam.rules.email.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 102 | if !self.core.spam.rules.ip.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 121 | if !self.core.spam.rules.header.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 150 | if !self.core.spam.rules.body.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/rules.rs | 182 | if !self.core.spam.rules.any.is_empty() { | CODE |
| CRITICAL | crates/spam-filter/src/analysis/domain.rs | 238 | email.element.email.domain_part.fqdn.clone(), | CODE |
| CRITICAL | crates/spam-filter/src/analysis/mime.rs | 389 | Some((name, self.core.spam.lists.file_extensions.get(ext)?)) | CODE |
| CRITICAL | crates/spam-filter/src/analysis/mime.rs | 393 | .and_then(|(_, ext)| self.core.spam.lists.file_extensions.get(ext)); | CODE |
| CRITICAL | crates/spam-filter/src/analysis/score.rs | 64 | let score = match self.core.spam.lists.scores.get(tag) { | CODE |
| CRITICAL⚡ | crates/spam-filter/src/modules/expression.rs | 45 | ExpressionVariable::HeloDomain => self.ctx.output.ehlo_host.fqdn.as_str().into(), | CODE |
| CRITICAL⚡ | crates/spam-filter/src/modules/expression.rs | 52 | ExpressionVariable::EnvFrom => self.ctx.output.env_from_addr.address.as_str().into(), | CODE |
| CRITICAL⚡ | crates/spam-filter/src/modules/expression.rs | 54 | self.ctx.output.env_from_addr.local_part.as_str().into() | CODE |
| CRITICAL⚡ | crates/spam-filter/src/modules/expression.rs | 72 | ExpressionVariable::From => self.ctx.output.from.email.address.as_str().into(), | CODE |
| CRITICAL⚡ | crates/spam-filter/src/modules/expression.rs | 81 | ExpressionVariable::FromLocal => self.ctx.output.from.email.local_part.as_str().into(), | CODE |
| CRITICAL⚡ | crates/spam-filter/src/modules/expression.rs | 83 | self.ctx.output.from.email.domain_part.fqdn.as_str().into() | CODE |
| CRITICAL | crates/common/src/auth/access_token.rs | 52 | self.core.network.security.default_role_ids_user.as_slice() | CODE |
| CRITICAL | crates/common/src/auth/access_token.rs | 56 | self.core.network.security.default_role_ids_admin.as_slice() | CODE |
| CRITICAL | crates/common/src/auth/access_token.rs | 226 | self.core.network.security.default_role_ids_group.as_slice(), | CODE |
| CRITICAL | crates/common/src/auth/permissions.rs | 116 | UserRoles::User => self.core.network.security.default_role_ids_user.as_slice(), | CODE |
| CRITICAL | crates/common/src/auth/permissions.rs | 119 | self.core.network.security.default_role_ids_admin.as_slice() | CODE |
| CRITICAL | crates/common/src/auth/permissions.rs | 137 | .unwrap_or(self.core.network.security.default_role_ids_group.as_slice()), | CODE |
| CRITICAL | crates/common/src/network/security.rs | 360 | self.core.network.security.auth_fail_rate.is_some() | CODE |
| CRITICAL | crates/common/src/network/dns/records.rs | 391 | .map(|doc| self.core.network.info.pacc.build(&doc.url)) | CODE |
| CRITICAL | crates/common/src/network/dns/update.rs | 1245 | match self.core.smtp.resolvers.dns.txt_raw_lookup(&name).await { | CODE |
| CRITICAL⚡ | crates/common/src/expr/eval.rs | 224 | stack.push(self.core.core.network.server_name.as_str().into()) | CODE |
| CRITICAL⚡ | crates/common/src/expr/eval.rs | 227 | stack.push(self.core.core.email.default_domain_name.as_str().into()) | CODE |
| CRITICAL⚡ | crates/common/src/expr/eval.rs | 229 | SystemVariable::NodeId => stack.push(self.core.core.network.node_id.into()), | CODE |
| CRITICAL | crates/common/src/scripts/plugins/lookup.rs | 31 | _ => Some(ctx.server.core.storage.memory.clone()), | CODE |
| CRITICAL | crates/common/src/scripts/plugins/lookup.rs | 57 | _ => Some(ctx.server.core.storage.memory.clone()), | CODE |
| CRITICAL | crates/common/src/scripts/plugins/lookup.rs | 78 | _ => Some(ctx.server.core.storage.memory.clone()), | CODE |
| CRITICAL | crates/common/src/scripts/plugins/query.rs | 24 | _ => Some(ctx.server.core.storage.data.clone()), | CODE |
| CRITICAL | crates/http/src/request.rs | 219 | self.core.network.http.url_https.to_string(), | CODE |
| CRITICAL | crates/http/src/request.rs | 808 | if !server.core.network.http.response_headers.is_empty() { | CODE |
| CRITICAL | crates/http/src/auth/oauth/token.rs | 74 | let issuer = self.core.network.http.url_https.to_string(); | CODE |
| CRITICAL | crates/http/src/auth/oauth/auth.rs | 340 | iss: self.core.network.http.url_https.clone(), | CODE |
| CRITICAL | crates/smtp/src/reporting/tls.rs | 346 | .and_then(|idx| report.report.policies.0.inner.get_mut(idx)) | CODE |
| CRITICAL | crates/smtp/src/reporting/tls.rs | 423 | &mut report.report.policies.0.inner.last_mut().unwrap().value | CODE |
| CRITICAL | crates/smtp/src/inbound/data.rs | 476 | let message_id = self.server.inner.data.queue_id_gen.generate(); | CODE |
| CRITICAL | crates/smtp/src/queue/quota.rs | 40 | if !self.core.smtp.queue.quota.sender.is_empty() { | CODE |
| CRITICAL | crates/smtp/src/queue/quota.rs | 65 | if !self.core.smtp.queue.quota.rcpt_domain.is_empty() { | CODE |
| CRITICAL | crates/jmap/src/registry/mapping/action.rs | 212 | set.server.inner.data.applications.reload(&mut bp).await; | CODE |
| CRITICAL | crates/jmap/src/registry/mapping/action.rs | 417 | let (score, disposition) = match server.core.spam.lists.scores.get(&tag) { | CODE |
| CRITICAL | crates/jmap/src/registry/mapping/log.rs | 35 | let Some(path) = get.server.core.metrics.log_path.clone() else { | CODE |
| CRITICAL | crates/jmap/src/registry/mapping/log.rs | 75 | let Some(path) = req.server.core.metrics.log_path.clone() else { | CODE |
| CRITICAL | crates/services/src/task_manager/manager.rs | 530 | server.core.network.task_manager.total_deadline.as_secs(), | CODE |
| CRITICAL | tests/src/imap/antispam.rs | 86 | assert!(test.server.inner.data.spam_classifier.load().is_active()); | CODE |
| CRITICAL | tests/src/smtp/session.rs | 279 | self.server.inner.data.queue_id_gen.generate(), | CODE |
| CRITICAL | tests/src/smtp/inbound/asn.rs | 90 | if test.server.inner.data.asn_geo_data.lock.available_permits() > 0 { | CODE |
| CRITICAL | tests/src/webdav/prop.rs | 640 | (0..=(test.server.core.groupware.dead_property_size.unwrap() + 1)) | CODE |
| CRITICAL | tests/src/webdav/lock.rs | 165 | (0..=test.server.core.groupware.dead_property_size.unwrap() + 1) | CODE |
| CRITICAL | tests/src/store/blob.rs | 34 | let store = test.server.core.storage.data.clone(); | CODE |
| CRITICAL | tests/src/store/blob.rs | 35 | let blob_store = test.server.core.storage.blob.clone(); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/jmap-proto/src/request/parser.rs | 851 | "email": "foo@bar.com" | CODE |
| LOW | crates/jmap-proto/src/request/parser.rs | 865 | "email": "foo@bar.com" | CODE |
| LOW | crates/jmap-proto/src/request/parser.rs | 897 | "email": "foo@bar.com" | CODE |
| LOW | crates/utils/src/lib.rs | 481 | sanitize_email("user@example.com").as_deref(), | CODE |
| LOW | crates/utils/src/lib.rs | 482 | Some("user@example.com") | CODE |
| LOW | crates/directory/src/core/sasl.rs | 175 | Some("user@example.com".to_string()) | CODE |
| LOW | crates/imap-proto/src/protocol/fetch.rs | 982 | name: Some("John Doe".into()), | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 218 | const NAME: &[u8] = b"user@example.org"; | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 250 | b"owner@example.org", | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 259 | "名字@example.org".as_bytes(), | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 285 | b"route-me@example.org", | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 290 | assert_eq!(decoded, b"route-me@example.org"); | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 333 | let token = seal_token(KEY, &raw, b"victim@example.org").unwrap(); | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 337 | let forged_footer = general_purpose::URL_SAFE_NO_PAD.encode(b"attacker@example.org"); | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 350 | b"alice@example.org", | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 356 | b"bob@example.org", | CODE |
| LOW | crates/common/src/auth/oauth/token.rs | 414 | let token = seal_token(KEY, &raw, b"owner@example.org").unwrap(); | CODE |
| LOW | crates/dav-proto/src/responses/mod.rs | 675 | recipient: Href("mailto:mike@example.org".to_string()), | CODE |
| LOW | crates/smtp/src/inbound/dkim.rs | 306 | let (disclosed, undisclosed) = split("To: someone-else@example.com", &["bcc@example.org"]); | CODE |
| LOW | crates/smtp/src/inbound/dkim.rs | 307 | assert_eq!(disclosed, vec!["bcc@example.org".to_string()]); | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 359 | &["eve@example.org", "mallory@example.org"], | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 365 | "eve@example.org".to_string(), | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 366 | "mallory@example.org".to_string() | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 375 | &["alice@example.com", "bob@example.com", "eve@example.org"], | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 384 | assert_eq!(undisclosed, vec!["eve@example.org".to_string()]); | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 391 | &["alice@example.com", "bob@example.com", "eve@example.org"], | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 400 | assert_eq!(undisclosed, vec!["eve@example.org".to_string()]); | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 407 | &["alice@example.com", "bob@example.com", "eve@example.org"], | CODE |
| LOW⚡ | crates/smtp/src/inbound/dkim.rs | 416 | assert_eq!(undisclosed, vec!["eve@example.org".to_string()]); | CODE |
| LOW | crates/nlp/src/tokenizers/types.rs | 2200 | "foo.bar@example.org", | CODE |
| LOW | crates/nlp/src/tokenizers/types.rs | 2201 | vec![TokenType::Email("foo.bar@example.org")], | CODE |
| LOW | crates/nlp/src/tokenizers/types.rs | 2553 | "#!$%&'*+-/=?^_`{}|~@example.org", | CODE |
| LOW | crates/nlp/src/tokenizers/types.rs | 2554 | vec![TokenType::Email("#!$%&'*+-/=?^_`{}|~@example.org")], | CODE |
| LOW | crates/main/src/test_data.rs | 146 | address: "bob@example.org".into(), | CODE |
| LOW | crates/main/src/test_data.rs | 166 | orcpt: Some("rfc822;bob@example.org".into()), | CODE |
| LOW | tests/docker/INSTRUCTIONS.md | 56 | -d "username=john.doe@example.org" \ | CODE |
| LOW | tests/docker/keycloak/stalwart-realm.json | 140 | "username": "john.doe@example.org", | CODE |
| LOW | tests/docker/keycloak/stalwart-realm.json | 142 | "email": "john.doe@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 154 | "/sales@example.org" | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 158 | "username": "jane.smith@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 160 | "email": "jane.smith@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 172 | "/sales@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 173 | "/corporate@example.org" | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 177 | "username": "bill.foobar@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 179 | "email": "bill.foobar@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 191 | "/corporate@example.org" | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 197 | "name": "sales@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 198 | "path": "/sales@example.org" | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 201 | "name": "corporate@example.org", | CODE |
| LOW⚡ | tests/docker/keycloak/stalwart-realm.json | 202 | "path": "/corporate@example.org" | CODE |
| LOW | tests/resources/itip/rfc6638_single.txt | 28 | summary.attendee: Participants([ItipParticipant { email: "cyrus@example.com", name: Some("Cyrus Daboo"), is_organizer: t | CODE |
| LOW | tests/resources/itip/rfc6638_single.txt | 168 | summary.attendee: Participants([ItipParticipant { email: "cyrus@example.com", name: Some("Cyrus Daboo"), is_organizer: t | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 57 | summary.attendee: Participants([ItipParticipant { email: "a@gmail.com", name: Some("John Doe"), is_organizer: true }, It | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 78 | CN="John Doe";X-NUM-GUESTS=0:mailto:a@gmail.com | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 79 | ORGANIZER;CN="John Doe":mailto:a@gmail.com | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 171 | summary.attendee: Participants([ItipParticipant { email: "a@gmail.com", name: Some("John Doe"), is_organizer: true }, It | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 193 | CN="John Doe";X-NUM-GUESTS=0:mailto:a@gmail.com | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 194 | ORGANIZER;CN="John Doe":mailto:a@gmail.com | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 241 | CN="John Doe";X-NUM-GUESTS=0:mailto:a@gmail.com | CODE |
| LOW | tests/resources/itip/google_calendar.txt | 242 | ORGANIZER;CN="John Doe":mailto:a@gmail.com | CODE |
| 422 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/docker/docker-compose.yml | 9 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 11 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 19 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 21 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 80 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 82 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 89 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 91 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 257 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 259 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 267 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/docker/docker-compose.yml | 269 | # ============================================================================= | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 49 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 51 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 104 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 106 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 118 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 120 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 141 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 143 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 164 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 166 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 194 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 199 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 211 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 213 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 230 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/docker/docker-compose.yml | 232 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | resources/scripts/ossify.py | 70 | except Exception as e: | CODE |
| MEDIUM⚡ | resources/scripts/ossify.py | 71 | print(f"Error reading file {file_path}: {e}") | CODE |
| LOW | resources/scripts/ossify.py | 144 | except Exception as e: | CODE |
| MEDIUM | resources/scripts/ossify.py | 182 | print(f"Error: {args.directory} is not a valid directory") | CODE |
| LOW | resources/scripts/migrate_v016.py | 1804 | except Exception as exc: | CODE |
| MEDIUM⚡ | resources/scripts/imap-log-sanitizer.py | 132 | print(f"Error: File '{args.input_file}' not found") | CODE |
| LOW⚡ | resources/scripts/imap-log-sanitizer.py | 134 | except Exception as e: | CODE |
| MEDIUM⚡ | resources/scripts/imap-log-sanitizer.py | 135 | print(f"Error reading file: {e}") | CODE |
| LOW | resources/scripts/imap-log-sanitizer.py | 159 | except Exception as e: | CODE |
| MEDIUM | resources/scripts/imap-log-sanitizer.py | 160 | print(f"Error writing output: {e}") | CODE |
| LOW | tests/resources/scripts/smtp_stress_test.py | 313 | except Exception: | CODE |
| LOW | tests/resources/scripts/smtp_stress_test.py | 316 | except Exception: | CODE |
| MEDIUM | tests/resources/scripts/imap_import_single.py | 24 | print(f'Error while appending message: {response_code} {response_details}') | CODE |
| LOW | tests/resources/scripts/stress_test.py | 170 | except Exception as e: | CODE |
| LOW | tests/resources/scripts/stress_test.py | 185 | except Exception as e: | CODE |
| LOW | tests/resources/scripts/stress_test.py | 212 | except Exception as e: | CODE |
| LOW | tests/resources/scripts/stress_test.py | 240 | except Exception as e: | CODE |
| MEDIUM | tests/resources/scripts/stress_test.py | 99 | def load_words(path): | CODE |
| MEDIUM | tests/resources/scripts/stress_test.py | 174 | def imap_append_message(ctx, username, password, recipient): | CODE |
| MEDIUM | tests/resources/scripts/stress_test.py | 189 | def imap_list_fetch(ctx, username, password, recipient): | CODE |
| MEDIUM | tests/resources/scripts/stress_test.py | 216 | def imap_delete_message(ctx, username, password, recipient): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 221 | # Override the hostname used in HTTP responses | COMMENT |
| LOW | install.sh | 321 | cat > /etc/init.d/stalwart <<EOF | COMMENT |
| LOW | crates/types/src/keyword.rs | 61 | #[serde(rename(serialize = "$draft"))] | COMMENT |
| LOW | crates/jmap-proto/src/request/capability.rs | 21 | #[serde(rename(serialize = "capabilities"))] | COMMENT |
| LOW | crates/common/src/network/autoconfig/pacc.rs | 61 | } | COMMENT |
| LOW | crates/common/src/telemetry/tracers/journald.rs | 121 | /// - severe Kernel BUG | COMMENT |
| LOW | crates/common/src/telemetry/tracers/journald.rs | 141 | /// | COMMENT |
| LOW | crates/common/src/telemetry/tracers/journald.rs | 161 | Notice = b'5', | COMMENT |
| LOW | crates/common/src/telemetry/tracers/journald.rs | 201 | "journald does not exist in this environment", | COMMENT |
| LOW | crates/registry/src/schema/structs.rs | 41 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | COMMENT |
| LOW | crates/registry/src/schema/structs.rs | 1181 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | COMMENT |
| LOW | crates/registry/src/schema/structs.rs | 2361 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | COMMENT |
| LOW | crates/registry/src/schema/structs.rs | 3001 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] | COMMENT |
| LOW | crates/store/src/lib.rs | 161 | // SPDX-License-Identifier: LicenseRef-SEL | COMMENT |
| LOW | crates/store/src/dispatch/blob.rs | 201 | // SPDX-SnippetBegin | COMMENT |
| LOW | crates/store/src/backend/sqlite/pool.rs | 61 | pub fn with_flags(self, flags: OpenFlags) -> Self { | COMMENT |
| LOW | resources/scripts/minify_html.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | .github/workflows/ci.yml | 361 | COMMENT | |
| LOW | .github/workflows/scorecard.yml | 41 | - name: "Run analysis" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/ossify.py | 23 | CODE | |
| LOW | resources/scripts/ossify.py | 75 | CODE | |
| LOW | resources/scripts/ossify.py | 114 | CODE | |
| LOW | resources/scripts/ossify.py | 160 | CODE | |
| LOW | resources/scripts/migrate_v016.py | 834 | CODE | |
| LOW | resources/scripts/list_active_blobs.py | 92 | CODE | |
| LOW | resources/scripts/list_active_blobs.py | 48 | CODE | |
| LOW | resources/scripts/imap-log-sanitizer.py | 102 | CODE | |
| LOW | tests/resources/scripts/smtp_stress_test.py | 240 | CODE | |
| LOW | tests/resources/scripts/smtp_stress_test.py | 291 | CODE | |
| LOW | tests/resources/scripts/stress_test_prepare.py | 207 | CODE | |
| LOW | tests/resources/scripts/stress_test_prepare.py | 72 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/docker/powerdns/init-zone.sh | 13 | # Create the zone with default SOA + NS | COMMENT |
| MEDIUM | tests/docker/scripts/init-minio.sh | 10 | # Create the stalwart bucket | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | UPGRADING/v0_16.md | 76 | ## Step 1: Convert existing settings into a configuration snapshot | COMMENT |
| LOW | UPGRADING/v0_16.md | 149 | ## Step 2: Back up the database | COMMENT |
| LOW | UPGRADING/v0_16.md | 213 | ## Step 3: Perform the migration | COMMENT |
| LOW | UPGRADING/v0_16.md | 460 | ## Step 4: Post-migration tasks | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/ossify.py | 18 | CODE | |
| LOW | resources/scripts/ossify.py | 20 | CODE | |
| LOW | resources/scripts/migrate_v016.py | 29 | CODE | |
| LOW | resources/scripts/imap-log-sanitizer.py | 13 | CODE | |
| LOW | tests/resources/scripts/imap_import_single.py | 6 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | resources/scripts/ossify.py | 75 | def remove_proprietary_snippets(content: str) -> Tuple[str, int]: | CODE |
| LOW | resources/scripts/migrate_v016.py | 947 | def _tenant_default_domain_cid(self, p: dict[str, Any]) -> str | None: | CODE |
| LOW | resources/scripts/migrate_v016.py | 1281 | def _is_same_kv_store_as_data(self, sub: dict[str, str]) -> bool: | CODE |
| LOW | tests/resources/scripts/stress_test.py | 92 | def allow_invalid_certificates(): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | crates/smtp/Cargo.toml | 66 | #harness = false | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | crates/jmap/src/file/set.rs | 773 | // TODO: implement symlink target storage and resolution | COMMENT |
| LOW | tests/src/webdav/copy_move.rs | 41 | // TODO: Fix tests for assisted discovery | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 911 | # Check if curl supports the --retry flag, then pass it to the curl invocation. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | resources/scripts/minify_html.sh | 9 | # Usage: | COMMENT |