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

Plugin show_additional_header no mime decode header #3803

Closed
rcubetrac opened this issue Jun 4, 2012 · 4 comments
Closed

Plugin show_additional_header no mime decode header #3803

rcubetrac opened this issue Jun 4, 2012 · 4 comments

Comments

@rcubetrac
Copy link

Reported by lefoyer on 4 Jun 2012 12:17 UTC as Trac ticket #1488511

If i use show_additional_header plugin, and add header included text in rfc2047 format, sample:
X-Spam-Message: =?UTF-8?Q?HELO=3D=5BTFLSKRMQ=5D_=D0=BD=D0=B5_=D1=81=D0=BE=D0=B4=D0=B5=D1?=

show_additional_header not decode this message, and show unmodifed message

patch: file rcube_imap_generic.php or in github rev 9ad0810 = rcube_message_header.php

class rcube_mail_header //or in github rev 9ad08104 = class rcube_message_header
+    private $mime;


    public function get($name)
    {
        $name = strtolower($name);

+        $this->mime = new rcube_mime($this->charset);

        if (isset($this->obj_headers[{
-            return $this->{$this->obj_headers[$name]($name])))};
+            return $this->{$this->mime->decode_header($this->obj_headers[       }

-        return $this->others[$name]($name])};
);
+        return $this->mime->decode_header($this->others[$name]);
    }

Migrated-From: http://trac.roundcube.net/ticket/1488511

@rcubetrac
Copy link
Author

Milestone changed by @alecpl on 4 Jun 2012 12:33 UTC

later => 0.8-stable

@rcubetrac
Copy link
Author

Comment by lefoyer on 4 Jun 2012 12:37 UTC

in git branch master too

@rcubetrac
Copy link
Author

Comment by @alecpl on 6 Jun 2012 07:31 UTC

Fixed in 0f5dee0, eede510 (master) and 0e58211 (release-0.8).

@rcubetrac
Copy link
Author

Status changed by @alecpl on 6 Jun 2012 07:31 UTC

new => closed

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

No branches or pull requests

1 participant