-rw-r--r-- | noncore/net/mail/libmailwrapper/abstractmail.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/net/mail/libmailwrapper/abstractmail.cpp b/noncore/net/mail/libmailwrapper/abstractmail.cpp index d71d35c..ac6f380 100644 --- a/noncore/net/mail/libmailwrapper/abstractmail.cpp +++ b/noncore/net/mail/libmailwrapper/abstractmail.cpp | |||
@@ -83,21 +83,21 @@ QString AbstractMail::convert_String(const char*text) | |||
83 | { | 83 | { |
84 | size_t index = 0; | 84 | size_t index = 0; |
85 | char*res = 0; | 85 | char*res = 0; |
86 | int err = MAILIMF_NO_ERROR; | ||
86 | 87 | ||
87 | /* attention - doesn't work with arm systems! */ | 88 | QString result(text); |
88 | int err = mailmime_encoded_phrase_parse("iso-8859-1", | 89 | |
89 | text, strlen(text),&index, "iso-8859-1",&res); | 90 | /* due a bug in libetpan it isn't usable this moment */ |
90 | if (err != MAILIMF_NO_ERROR) { | 91 | /* int err = mailmime_encoded_phrase_parse("iso-8859-1", |
91 | if (res) free(res); | 92 | text, strlen(text),&index, "iso-8859-1",&res);*/ |
92 | return QString(text); | 93 | //qDebug("Input: %s",text); |
94 | if (err == MAILIMF_NO_ERROR && res && strlen(res)) { | ||
95 | // result = QString(res); | ||
96 | // qDebug("Res: %s, length: %i",res,strlen(res)); | ||
93 | } | 97 | } |
94 | if (res) { | 98 | if (res) free(res); |
95 | QString result(res); | ||
96 | free(res); | ||
97 | return result; | 99 | return result; |
98 | } | 100 | } |
99 | return QString(text); | ||
100 | } | ||
101 | 101 | ||
102 | /* cp & paste from launcher */ | 102 | /* cp & paste from launcher */ |
103 | QString AbstractMail::gen_attachment_id() | 103 | QString AbstractMail::gen_attachment_id() |