Diffstat (limited to 'noncore/net/mail/libmailwrapper/abstractmail.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/abstractmail.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noncore/net/mail/libmailwrapper/abstractmail.cpp b/noncore/net/mail/libmailwrapper/abstractmail.cpp index 92a46f1..b7e5eaa 100644 --- a/noncore/net/mail/libmailwrapper/abstractmail.cpp +++ b/noncore/net/mail/libmailwrapper/abstractmail.cpp | |||
@@ -43,6 +43,29 @@ encodedString* AbstractMail::decode_String(const encodedString*text,const QStrin | |||
43 | if (err == MAILIMF_NO_ERROR) { | 43 | if (err == MAILIMF_NO_ERROR) { |
44 | result->setContent(result_text,target_length); | 44 | result->setContent(result_text,target_length); |
45 | } | 45 | } |
46 | qDebug("Decode string finished"); | 46 | qDebug("Decode string finished"); |
47 | return result; | 47 | return result; |
48 | } | 48 | } |
49 | |||
50 | QString AbstractMail::convert_String(const char*text) | ||
51 | { | ||
52 | #if 0 | ||
53 | size_t index = 0; | ||
54 | char*res = 0; | ||
55 | |||
56 | qDebug("encode start %s",text); | ||
57 | /* attention - doesn't work with arm systems! */ | ||
58 | int err = mailmime_encoded_phrase_parse("iso-8859-1", | ||
59 | text, strlen(text),&index, "iso-8859-1",&res); | ||
60 | qDebug("encode end"); | ||
61 | if (err != MAILIMF_NO_ERROR) { | ||
62 | if (res) free(res); | ||
63 | return QString(text); | ||
64 | } | ||
65 | QString result(res); | ||
66 | free(res); | ||
67 | return result; | ||
68 | #else | ||
69 | return QString(text); | ||
70 | #endif | ||
71 | } | ||