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

Parsing partial attachment panics fatally #16

Closed
HeinOldewage opened this issue Sep 22, 2015 · 1 comment
Closed

Parsing partial attachment panics fatally #16

HeinOldewage opened this issue Sep 22, 2015 · 1 comment

Comments

@HeinOldewage
Copy link

Panics with error panic: Expected attachment to contain a header section and a body section.
when a client disconnects before completing a send.

The simplest way to reproduce is to run the example in gopkg.in/gomail.v2 and attaching a file that does not exist( the library panics after the send starts and disconnects before completing the send).

I do realize that the incoming email is part of the problem, but it would be nice to use this application in an environment where email messages are hostile.

@adampresley
Copy link
Contributor

Yeah I see your point. I agree it will be better for MailSlurper to not freak out when the client misbehaves. I'll put this on my list to fix. Thanks!

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

No branches or pull requests

2 participants