Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailwrapper.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailwrapper.cpp b/noncore/net/mail/libmailwrapper/mailwrapper.cpp index c71d69f..9bf2fd3 100644 --- a/noncore/net/mail/libmailwrapper/mailwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/mailwrapper.cpp | |||
@@ -134,45 +134,45 @@ QString IMAPFolder::decodeFolderName( const QString &name ) | |||
134 | i = 3; | 134 | i = 3; |
135 | } else { | 135 | } else { |
136 | utf8[0] = 0xf0 | (ucs4 >> 18); | 136 | utf8[0] = 0xf0 | (ucs4 >> 18); |
137 | utf8[1] = 0x80 | ((ucs4 >> 12) & 0x3f); | 137 | utf8[1] = 0x80 | ((ucs4 >> 12) & 0x3f); |
138 | utf8[2] = 0x80 | ((ucs4 >> 6) & 0x3f); | 138 | utf8[2] = 0x80 | ((ucs4 >> 6) & 0x3f); |
139 | utf8[3] = 0x80 | (ucs4 & 0x3f); | 139 | utf8[3] = 0x80 | (ucs4 & 0x3f); |
140 | i = 4; | 140 | i = 4; |
141 | } | 141 | } |
142 | /* copy it */ | 142 | /* copy it */ |
143 | for (c = 0; c < i; ++c) { | 143 | for (c = 0; c < i; ++c) { |
144 | dst += utf8[c]; | 144 | dst += utf8[c]; |
145 | } | 145 | } |
146 | } | 146 | } |
147 | } | 147 | } |
148 | /* skip over trailing '-' in modified UTF-7 encoding */ | 148 | /* skip over trailing '-' in modified UTF-7 encoding */ |
149 | if (src[srcPtr] == '-') | 149 | if (src[srcPtr] == '-') |
150 | ++srcPtr; | 150 | ++srcPtr; |
151 | } | 151 | } |
152 | } | 152 | } |
153 | 153 | ||
154 | return QString::fromUtf8( dst.data() ); | 154 | return QString::fromUtf8( dst.data() ); |
155 | } | 155 | } |
156 | 156 | ||
157 | Mail::Mail() | 157 | Mail::Mail() |
158 | :Opie::oref_count(),name(""), mail(""), to(""), cc(""), bcc(""), reply(""), subject(""), message("") | 158 | :Opie::ORefCount(),name(""), mail(""), to(""), cc(""), bcc(""), reply(""), subject(""), message("") |
159 | { | 159 | { |
160 | } | 160 | } |
161 | 161 | ||
162 | MHFolder::MHFolder(const QString&disp_name,const QString&mbox) | 162 | MHFolder::MHFolder(const QString&disp_name,const QString&mbox) |
163 | : Folder( disp_name,"/" ) | 163 | : Folder( disp_name,"/" ) |
164 | { | 164 | { |
165 | separator = "/"; | 165 | separator = "/"; |
166 | name = mbox; | 166 | name = mbox; |
167 | if (!disp_name.startsWith("/") && disp_name.length()>0) | 167 | if (!disp_name.startsWith("/") && disp_name.length()>0) |
168 | name+="/"; | 168 | name+="/"; |
169 | name+=disp_name; | 169 | name+=disp_name; |
170 | if (disp_name.length()==0) { | 170 | if (disp_name.length()==0) { |
171 | nameDisplay = separator; | 171 | nameDisplay = separator; |
172 | } | 172 | } |
173 | prefix = mbox; | 173 | prefix = mbox; |
174 | } | 174 | } |
175 | 175 | ||
176 | MHFolder::~MHFolder() | 176 | MHFolder::~MHFolder() |
177 | { | 177 | { |
178 | } | 178 | } |