Witam, proszę o wyjaśnienie jak jest zakodowany temat emaila (=?UTF-8?B?xIXFm8SHxbzEh8W6xbw=?=) i jak go odkodować.

Zamieszczam również podgląd całego emaila:

Kod
Zend_Mail_Message Object
(
    [_flags:protected] => Array
        (
        )

    [_headers:protected] => Array
        (
            [return-path] =>
            [envelope-to] => xx@xx
            [delivery-date] => Sun, 03 Oct 2010 14:55:58 +0200
            [received] => Array
                (
                    [0] => from mail by xx.com with spam-scanned (Exim 4.72) (envelope-from ) id 1P2O6f-0001k8-9j for xx@xx; Sun, 03 Oct 2010 14:55:58 +0200
                    [1] => from localhost ([127.0.0.1]) by xxl.com with esmtpa (Exim 4.72) (envelope-from ) id 1P2O6f-0001k0-1f for xx@xx; Sun, 03 Oct 2010 14:55:57 +0200
                )

            [x-spam-checker-version] => SpamAssassin 3.3.1 (2010-03-16) on s10.linuxpl.com
            [x-spam-level] =>
            [x-spam-status] => No, score=-2.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1
            [message-id] => <4CA87D4E.1050902@xxx.com>
            [date] => Sun, 03 Oct 2010 14:55:42 +0200
            [from] => =?UTF-8?B?QmFydMWCb21pZWogTm9zYWw=?=
            [user-agent] => Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4
            [mime-version] => 1.0
            [to] => xx@xx
            [subject] => =?UTF-8?B?xIXFm8SHxbzEh8W6xbw=?=
            [content-type] => text/plain; charset=UTF-8; format=flowed
            [content-transfer-encoding] => 8bit
            [x-antivirus] => Array
                (
                    [0] => avast! (VPS 101002-2, 2010-10-02), Outbound message
                    [1] => avast! (VPS 101013-1, 2010-10-13), Inbound message
                )

            [x-antivirus-status] => Array
                (
                    [0] => Clean
                    [1] => Clean
                )

        )

    [_content:protected] =>
    [_topLines:protected] =>
    [_parts:protected] => Array
        (
        )

    [_countParts:protected] =>
    [_iterationPos:protected] => 1
    [_mail:protected] => Zend_Mail_Storage_Pop3 Object
        (
            [_protocol:protected] => Zend_Mail_Protocol_Pop3 Object
                (
                    [hasTop] => 1
                    [_socket:protected] => Resource id #22
                    [_timestamp:protected] =>
                )

            [_has:protected] => Array
                (
                    [uniqueid] =>
                    [delete] =>
                    [create] =>
                    [top] =>
                    [fetchPart] =>
                    [flags] =>
                )

            [_iterationPos:protected] => 0
            [_iterationMax:protected] =>
            [_messageClass:protected] => Zend_Mail_Message
        )

    [_messageNum:protected] => 4
)


Problem rozwiązany.
Temat zakodowany jest base64. Przed dekodowaniem należy usunąć =?UTF-8?B?.
Tak więc działa base64_decode('xIXFm8SHxbzEh8W6xbw=?=');