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

Plain text attachments are not identified as Attachment parts #341

Closed
Denitz opened this issue Apr 19, 2018 · 2 comments
Closed

Plain text attachments are not identified as Attachment parts #341

Denitz opened this issue Apr 19, 2018 · 2 comments
Labels

Comments

@Denitz
Copy link

Denitz commented Apr 19, 2018

Receiving email from gmail with plain text attachment file, here are the part details:

stdClass Object
(
    [type] => 0
    [encoding] => 3
    [ifsubtype] => 1
    [subtype] => PLAIN
    [ifdescription] => 0
    [ifid] => 0
    [lines] => 434
    [bytes] => 21690
    [ifdisposition] => 1
    [disposition] => ATTACHMENT
    [ifdparameters] => 1
    [dparameters] => Array
        (
            [0] => stdClass Object
                (
                    [attribute] => FILENAME
                    [value] => filename.txt
                )

        )

    [ifparameters] => 0
    [parameters] => stdClass Object
        (
        )

)

AbstractPart::isAttachment() does not detect it as attachment because subtype is 'PLAIN':

self::SUBTYPE_PLAIN !== \strtoupper($part->subtype)

@Slamdunk Slamdunk added the bug label Apr 20, 2018
@Denitz
Copy link
Author

Denitz commented Aug 21, 2018

Still a problem on current 1.5.4, any news?

@Slamdunk
Copy link
Collaborator

Bugfix released in 1.5.5

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

2 participants