• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SpamScope / mail-parser / 23719007291
100%

Build:
DEFAULT BRANCH: develop
Ran 29 Mar 2026 09:05PM UTC
Jobs 1
Files 12
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Mar 2026 09:03PM UTC coverage: 99.796% (+0.6%) from 99.232%
23719007291

push

github

web-flow
Refactor received header parsing: replace regex list with RFC 5321 to… (#150)

* Refactor received header parsing: replace regex list with RFC 5321 tokenizer

Replace the 10 separate regex patterns (each duplicating boundary
lookaheads) with a keyword-based tokenizer aligned with RFC 5321 §4.4
grammar. Key improvements:

- Tokenize on clause keywords (from/by/via/with/id/for) in a single
  pass instead of running 10 independent regex searches
- Handle IBM "for <addr> from <sender>" by accepting only the first
  'from' clause per header
- Extract envelope-from/sender from parenthesized comments in clause
  values
- Validate IPv4 octets (0-255) instead of matching any digits; add
  IPv6 support via REGXIP6
- Simplify JUNK_PATTERN to only collapse tabs/newlines, preserving
  parenthesized comments and bracketed IPs
- Add 27-test corpus covering Postfix, Exim, Exchange, Gmail,
  SendGrid, IBM/Domino, AWS SES, and edge cases

https://claude.ai/code/session_01CwmwWkvZGLpTBY6ApKFi79

* Refactor markdown linting configuration and improve MailParser error handling

* Enhance date parsing and logging in MailParser; add tests for envelope-from handling

---------

Co-authored-by: Claude <noreply@anthropic.com>

109 of 109 branches covered (100.0%)

1957 of 1961 relevant lines covered (99.8%)

1.0 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
99.11
1.6% mailparser/utils.py
Jobs
ID Job ID Ran Files Coverage
1 23719007291.1 29 Mar 2026 09:05PM UTC 12
99.8
GitHub Action Run
Source Files on build 23719007291
  • Tree
  • List 12
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #23719007291
  • 5f96ce01 on github
  • Prev Build on develop (#19150185963)
  • Next Build on develop (#23979160371)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc