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

multipart boundaries #5

Closed
schaebo opened this issue Nov 11, 2014 · 1 comment
Closed

multipart boundaries #5

schaebo opened this issue Nov 11, 2014 · 1 comment
Labels

Comments

@schaebo
Copy link

schaebo commented Nov 11, 2014

There seems to be a problem with multipart boundaries.

The mail is sent from an Oxid E-Shop using the PHPMailer library and it works on postfix/dovecot and mailcatcher without errors.

Excerpt:

Message-ID: <d6bf06db17fada1a3a8e3a8fab3c83f0@localhost>
MIME-Version: 1.0
Content-Type: multipart/alternative;
    boundary="b1_d6bf06db17fada1a3a8e3a8fab3c83f0"


--b1_d6bf06db17fada1a3a8e3a8fab3c83f0
Content-Type: text/plain; charset = "UTF-8"
Content-Transfer-Encoding: 8bit

2014/11/11 10:27:31 Found invalid header: ' boundary="b1_d6bf06db17fada1a3a8e3a8fab3c83f0"'
2014/11/11 10:27:31 Parsing MIME body
2014/11/11 10:27:31 Boundary not found: %!s(MISSING)
panic: runtime error: index out of range

goroutine 30 [running]:
runtime.panic(0x851f00, 0xb2afdc)
    /usr/local/Cellar/go/1.3.1/libexec/src/pkg/runtime/panic.c:279 +0xf5
github.com/ian-kent/Go-MailHog/mailhog/data.(*Content).ParseMIMEBody(0xc2080b0390, 0x11)
    /Users/ikent/dev/src/github.com/ian-kent/Go-MailHog/mailhog/data/message.go:90 +0x577
github.com/ian-kent/Go-MailHog/mailhog/data.ParseSMTPMessage(0xc20801b680, 0x8e4310, 0xf, 0x5)
    /Users/ikent/dev/src/github.com/ian-kent/Go-MailHog/mailhog/data/message.go:63 +0x3ad
github.com/ian-kent/Go-MailHog/mailhog/smtp.(*Session).Parse(0xc2080c23c0)
    /Users/ikent/dev/src/github.com/ian-kent/Go-MailHog/mailhog/smtp/session.go:86 +0x350
...
github.com/ian-kent/Go-MailHog/mailhog/smtp.StartSession(0xc20803a1e8, 0xc208070380)
    /Users/ikent/dev/src/github.com/ian-kent/Go-MailHog/mailhog/smtp/session.go:42 +0x190
created by main.smtp_listen
    /Users/ikent/dev/src/github.com/ian-kent/Go-MailHog/main.go:125 +0x42e

I put the whole shell output into a gist, hope it helps you to fix this.

https://gist.github.com/schaebo/d7c3fd3b32a4dbe5a024

Thanks for your work. Go-MailHog is a really useful and awesome piece of software and I do like the approach of not having to install a shitload of dependencies with it.

Greetings,
schaebo

@sean-abbott
Copy link

Actually, looks like my error is the same as this after all: http://pastebin.com/33M576Ze

Mail sent from jenkins, works fine with exim4.

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

No branches or pull requests

3 participants