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

content-transfer-encoding check broken #12

Open
mgkimsal opened this issue Feb 8, 2013 · 3 comments
Open

content-transfer-encoding check broken #12

mgkimsal opened this issue Feb 8, 2013 · 3 comments

Comments

@mgkimsal
Copy link

mgkimsal commented Feb 8, 2013

The content-transfer-encoding check is broken - it's only scanning in the rawBodyLines array, but the CTE would be in the headers not the raw body lines. Thus, CTE is never determined - this is hosing up base64 checking on incoming mail.

@mgkimsal
Copy link
Author

mgkimsal commented Feb 8, 2013

Ahh... more specifically, this isn't working when an entire message is base64 only, not base64 attachments in the body.

@leoetlino
Copy link

Do you mean, we can't check for fully base64 encoded (including the headers) emails using the CTE check/header?

@tomdoo
Copy link

tomdoo commented Oct 30, 2015

Hello
I corrected this issue by replacing this into getBody method because if you do a foreach on the body lines you never find the content type header and you never go to elseif to find content-transfer-encoding.

    //foreach (explode("\n", $this->emailRawContent) as $line) {
    foreach ($this->rawBodyLines as $line) {

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

3 participants