Skip to content
Snippets Groups Projects
Commit ff27fb2c authored by Jared Hancock's avatar Jared Hancock
Browse files

email: Some bounce notices actually have rich content

Here's an example email structure:
```
multipart/mixed
 - multipart/report; delivery-status
   - multipart/alternative
     - text/plain
     - text/html
   - message/delivery-status
   - message/rfc822
```

The previous code would only find the body if the email main headers had:
Content-Type: multipart/report; report-type="delivery-status". In such a
case it would scan for a plain/text body.

This patch will scan for the usual body if the scan for the body as usual if
the report scan did not find anything.

Also, output errors to stderr when running API from the command line
parent 237e0077
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment