[Xfce4-commits] <postler:master> Decode attachment filenames as well
Christian Dywan
noreply at xfce.org
Sun Mar 27 17:34:02 CEST 2011
Updating branch refs/heads/master
to 3bd72158af33adc6ab7844c0ee0dcf4e943dd79c (commit)
from 0f195da174dd4f64297c1e719d2c5f44d6430d68 (commit)
commit 3bd72158af33adc6ab7844c0ee0dcf4e943dd79c
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Mar 27 13:59:40 2011 +0200
Decode attachment filenames as well
postler/postler-content.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 5f0b3d6..839849c 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -583,6 +583,11 @@ public class Postler.Content : WebKit.WebView {
mime_type = ascii_strdown (part);
}
+ if (filename != null) {
+ string filename_charset;
+ filename = parse_encoded (filename, out filename_charset);
+ }
+
if (mime_type == "application/octet-stream" && filename != null) {
uchar[] data = {};
bool uncertain;
More information about the Xfce4-commits
mailing list