Skip to content

Incorrect decoded sender name in non-utf8 header From #259

@hwilok

Description

@hwilok

In the email header I get this:

From: =?koi8-r?B?4czFzsE=?= <test@email.com>

Im trying to retrive email sender using $message->getFrom() and get:

array:1 [
  0 => {#2957
    +"personal": b"áÌÅÎÁ"
    +"mailbox": "test"
    +"host": "email.com"
    +"mail": "test@email.com"
    +"full": b"áÌÅÎÁ <test@email.com>"
  }
]

I'm expected to get: "Алена"

Laravel-imap version: 1.4.3
Laravel: 5.8.35
Php: 7.1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions