This commit is contained in:
@@ -915,6 +915,15 @@
|
||||
<nav class="md-nav" aria-label="body">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#mail_intake.parsers.body--summary" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
Summary
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#mail_intake.parsers.body-classes" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
@@ -1155,6 +1164,15 @@
|
||||
<nav class="md-nav" aria-label="body">
|
||||
<ul class="md-nav__list">
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#mail_intake.parsers.body--summary" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
Summary
|
||||
</span>
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#mail_intake.parsers.body-classes" class="md-nav__link">
|
||||
<span class="md-ellipsis">
|
||||
@@ -1224,7 +1242,8 @@
|
||||
|
||||
<div class="doc doc-contents first">
|
||||
|
||||
<p>Message body extraction utilities for Mail Intake.</p>
|
||||
<h3 id="mail_intake.parsers.body--summary">Summary</h3>
|
||||
<p>Message body extraction utilities for Mail Intake.</p>
|
||||
<p>This module contains helper functions for extracting a best-effort
|
||||
plain-text body from provider-native message payloads.</p>
|
||||
<p>The logic is intentionally tolerant of malformed or partial data and
|
||||
@@ -1256,11 +1275,13 @@ prefers human-readable text over fidelity to original formatting.</p>
|
||||
<div class="doc doc-contents ">
|
||||
|
||||
<p>Extract the best-effort message body from a Gmail payload.</p>
|
||||
<p>Priority:
|
||||
1. text/plain
|
||||
2. text/html (stripped to text)
|
||||
3. Single-part body
|
||||
4. empty string (if nothing usable found)</p>
|
||||
<p>Priority:</p>
|
||||
<ol>
|
||||
<li><code>text/plain</code></li>
|
||||
<li><code>text/html</code> (stripped to text)</li>
|
||||
<li>Single-part body</li>
|
||||
<li>Empty string (if nothing usable found)</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<p><span class="doc-section-title">Parameters:</span></p>
|
||||
@@ -1296,13 +1317,13 @@ prefers human-readable text over fidelity to original formatting.</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Name</th> <th>Type</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="doc-section-item">
|
||||
<td>
|
||||
<td><code>str</code></td> <td>
|
||||
<code>str</code>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user