Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Email boundary failing - InvalidMultipartContentTransferEncodingDefect #115

Open
victorromeo opened this issue Feb 7, 2020 · 1 comment

Comments

@victorromeo
Copy link

I'm trying to create an automated PDF from my receipts using email2pdf via getmail, however I'm getting a boundary error on my first email. May I please get your thoughts? Does email2pdf support merging pdfs, when an email already contains a pdf?

getmail conversion failing due to boundary

Delivery error (command email2pdf 26909 error (2, ERROR: Defects parsing email: [InvalidMultipartContentTransferEncodingDefect(),
InvalidMultipartContentTransferEncodingDefect()]))
msg 1/2 (73288 bytes) from [email protected], delivery error (command email2pdf 26909 error (2, ERROR: Defects parsing email: [InvalidMultipartContentTransferEncodingDefect(),
InvalidMultipartContentTransferEncodingDefect()]))
Delivery error (command email2pdf 26915 error (2, ERROR: Defects parsing email: [InvalidMultipartContentTransferEncodingDefect(),

Where the boundaries appear fine

Head Boundary

Content-Type: multipart/mixed;
 boundary="=_72dd989526b129478b16620bd1f9726f"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
MIME-Version: 1.0
X-getmail-retrieved-from-mailbox: Receipts
X-GMAIL-LABELS: =?utf-8?b?IlxcSW1wb3J0YW50IiAiXFxJbmJveCI=?=
X-GMAIL-THRID: =?utf-8?q?1647315770560521704?=
X-GMAIL-MSGID: =?utf-8?q?1647315770560521704?=

This is a message in Mime Format.  If you see this, your mail reader does not support this format.

Body Boundary

--=_72dd989526b129478b16620bd1f9726f
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

PDF attachment boundary

--=_72dd989526b129478b16620bd1f9726f
Content-Type: application/pdf
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="invoice2019-10-14_08.pdf"

Closing boundary
`
--=_72dd989526b129478b16620bd1f9726f--

`

@andrewferrier
Copy link
Owner

andrewferrier commented Feb 9, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants