Commit graph

8 commits

Author SHA1 Message Date
f88701681f content: treat unreplaced template placeholders as invalid links
URLs like "{unsubscribe}" parse without error in Go, so they were
reported as valid links and even counted as unsubscribe methods just
because they contain the word "unsubscribe".

Detect common un-substituted merge-field syntaxes ({x}, {{x}}, ${x},
*|X|*, %x%, [x], %7Bx%7D), mark such links invalid (Broken status),
exclude them from unsubscribe method detection, and surface them via a
new unreplaced_template content issue.
2026-06-13 16:14:57 +09:00
96e83ff70d Add multilingual unsubscribe keywords for link detection
The list comes from github.com/knadh/listmonk i18n strings

Bug: https://github.com/happyDomain/happydeliver/issues/8
2026-02-23 00:15:17 +07:00
d81ff1731c Fix tests 2025-11-17 10:31:04 +07:00
90dda126ad Don't consider mailto as suspiscious, search domain alignment 2025-10-30 14:10:42 +07:00
d87b0cbcb0 Remove checks 2025-10-23 10:40:12 +07:00
74aee54432 Score as percentages 2025-10-21 12:52:20 +07:00
0ac51ac06d Use grade instead of numeral notation 2025-10-20 19:25:48 +07:00
30f774c1fb Expose analyzer 2025-10-20 15:13:53 +07:00
Renamed from internal/analyzer/content_test.go (Browse further)