Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found 0 attachments #27

Closed
mrchang0815 opened this issue Sep 28, 2020 · 3 comments
Closed

Found 0 attachments #27

mrchang0815 opened this issue Sep 28, 2020 · 3 comments

Comments

@mrchang0815
Copy link

mrchang0815 commented Sep 28, 2020

Contents of eml-file:

...
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_50C3F72A ..."
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
...
X-Mailer: Apple Mail (2.3608.120.23.2.1) 
...
--Apple-Mail=_2C37B240 ...
Content-Disposition: inline;
	filename="111111 XXXXXXX-XXXXXX.pdf"
Content-Type: application/pdf;
	x-unix-mode=0644;
	name="111111 XXXXXXX-XXXXXX.pdf"
Content-Transfer-Encoding: base64

JVBERi0xLjMK...
...SVFT0YK
--Apple-Mail=_2C37B240-...
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8
...

The pdf is generated successfully, but the attachment is missing. From Thunderbird I can normally save the attachment.

Started the coverter in debug-mode:

Mime Structure of blabla
-----------Mime Message-----------
> multipart/alternative
> |  text/plain
> |  multipart/mixed
> |  |  text/html
> |  |  application/pdf; inline
> |  |  text/html
----------------------------------
...
[MimeMessageConverter.convertToPdf()#319]: Start extracting attachments
Extract attachments to blablabla
[MimeMessageConverter.convertToPdf()#333]: Found 0 attachments
Conversion finished

Edit 28.09.2020, 18:01:
If I change the Content-Disposition from "inline" to "attachment", the attachment is extracted successfully. This observation may be helpful for you.

@nickrussler
Copy link
Owner

Since only images are embedded in the HTML as of now, it makes sense to extract any other attachments. Following this reasoning, extracting unreferenced images makes sense too.

@nickrussler
Copy link
Owner

Should be fixed in 2.4.0, please check it @mrchang0815

@mrchang0815
Copy link
Author

mrchang0815 commented Oct 6, 2020 via email

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

No branches or pull requests

2 participants