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

SpamScope / mail-parser
99%
develop: 99%

Build:
Build:
LAST BUILD BRANCH: feature/message-structure
DEFAULT BRANCH: develop
Repo Added 09 Mar 2017 12:37PM UTC
Files 31
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

LAST BUILD ON BRANCH feature/message-structure
branch: feature/message-structure
CHANGE BRANCH
x
Reset
  • feature/message-structure
  • 4.1.2
  • 4.1.3
  • 4.1.4
  • 4.10.0
  • 4.11.0
  • 4.2.0
  • 4.2.1
  • 4.3.0
  • 4.4.0
  • 4.5.0
  • 4.6.0
  • 4.6.1
  • 4.6.2
  • 4.6.3
  • 4.6.4
  • 4.6.5
  • 4.7.0
  • 4.8.0
  • 4.9.0
  • attributeerror_bugfix
  • bugfix/issue_#175
  • bugfix/issue_#177
  • claude/improve-header-regex-vCFLu
  • dependabot/github_actions/dot-github/workflows/pypa/gh-action-pypi-publish-1.13.0
  • dependabot/uv/certifi-2026.10.19
  • dependabot/uv/cryptography-46.0.7
  • dependabot/uv/httpcore2-2.10.0
  • dependabot/uv/httpx2-2.12.0
  • dependabot/uv/idna-3.15
  • dependabot/uv/pygments-2.20.0
  • dependabot/uv/uv-0.11.15
  • dependabot/uv/uv-0.13.4
  • dependabot/uv/virtualenv-21.14.13
  • develop
  • feature/185-subject-unfolding
  • feature/add-uv
  • feature/codex-security-reviewer
  • feature/general-improvements
  • feature/issue_#139
  • fix-ported-string-header-objects
  • fix/getaddresses-strict-kwarg-compat
  • fix/issue-808-getaddresses-strict
  • fix/quoted-printable-attachment-literal
  • hotfix/1.1.9
  • improve/rfc-standards
  • issue146
  • issue_#136
  • issue_133
  • issue_152
  • master
  • new-outlook
  • project-url-source
  • py315
  • remove-ipaddress-from-setup.cfg
  • sec-issue
  • security-bug
  • security-issues
  • security-policy
  • security-subagent
  • update
  • upgrade
  • upgrade-libraries
  • v1.1.10
  • v1.1.6
  • v1.1.7
  • v1.1.8
  • v1.1.9
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.5
  • v1.2.6
  • v2.0.1
  • v2.1.0
  • v3.0.0
  • v3.0.1
  • v3.1.0
  • v3.10.0
  • v3.11.0
  • v3.12.0
  • v3.13.0
  • v3.14.0
  • v3.15.0
  • v3.2.0
  • v3.2.1
  • v3.2.2
  • v3.2.3
  • v3.2.4
  • v3.2.5
  • v3.2.6
  • v3.2.7
  • v3.3.0
  • v3.3.1
  • v3.3.2
  • v3.3.3
  • v3.4.0
  • v3.4.1
  • v3.5.0
  • v3.5.1
  • v3.6.0
  • v3.6.1
  • v3.7.0
  • v3.7.1
  • v3.8.0
  • v3.8.1
  • v3.9.0
  • v3.9.1
  • v3.9.2
  • v3.9.3

22 Nov 2026 05:42PM UTC coverage: 99.432% (+0.07%) from 99.364%
45072886361

Pull #188

github

fedelemantuano
feat: MIME tree and message structure drawing

Add MailParser.mime_tree and mime_tree_json: a flat list with one entry
per MIME part, in wire order, each naming its parent (ADR 0002). The
tree is built on first read from one small record per part, and is kept
out of mail and mail_json, whose output does not change.

Add mailparser.render_structure(), a text drawing of the main headers,
the delivery path and the MIME tree. Every value taken from the message
is escaped before it reaches the output: control, ANSI, bidirectional,
zero-width and blank characters are made visible.

Add the command-line flags --structure (-st) and --mime-tree.

A multipart boundary that an RFC 2231 charset decodes to a lone
surrogate is now escaped and recorded as a MimeHeaderDefect.

Walk the parts iteratively instead of with Message.walk(): nesting
depth is chosen by the sender.
Pull Request #188: feat: MIME tree and message structure drawing

1039 of 1070 branches covered (97.1%)

5952 of 5986 relevant lines covered (99.43%)

0.99 hits per line

Relevant lines Covered
Build:
Build:
5986 RELEVANT LINES 5952 COVERED LINES
0.99 HITS PER LINE
Source Files on feature/message-structure
  • Tree
  • List 31
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
45072886361 feature/message-structure feat: MIME tree and message structure drawing Add MailParser.mime_tree and mime_tree_json: a flat list with one entry per MIME part, in wire order, each naming its parent (ADR 0002). The tree is built on first read from one small record per part,... Pull #188 22 Nov 2026 09:37PM UTC fedelemantuano github
99.43
See All Builds (485)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc