summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/genericwrapper.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/noncore/net/mail/libmailwrapper/genericwrapper.cpp b/noncore/net/mail/libmailwrapper/genericwrapper.cpp
index 0ac842d..6fcc701 100644
--- a/noncore/net/mail/libmailwrapper/genericwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/genericwrapper.cpp
@@ -150,3 +150,2 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
150 clistiter * cur = 0; 150 clistiter * cur = 0;
151 QString b;
152 RecPartP part = new RecPart(); 151 RecPartP part = new RecPart();
@@ -161,5 +160,7 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
161 part->setPositionlist(countlist); 160 part->setPositionlist(countlist);
162 b = gen_attachment_id();
163 part->setIdentifier(b);
164 fillSingleBody(part,message,mime); 161 fillSingleBody(part,message,mime);
162 if (part->Identifier().isEmpty()) {
163 part->setIdentifier(gen_attachment_id());
164 }
165
165 if (part->Type()=="text" && target->Bodytext().isNull()) { 166 if (part->Type()=="text" && target->Bodytext().isNull()) {
@@ -169,3 +170,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
169 if (countlist.count()>2) { 170 if (countlist.count()>2) {
170 bodyCache[b]=rs; 171 bodyCache[part->Identifier()]=rs;
171 target->addPart(part); 172 target->addPart(part);
@@ -174,2 +175,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
174 } 175 }
176 QString b;
175 b = QString(res->Content()); 177 b = QString(res->Content());
@@ -179,3 +181,3 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
179 } else { 181 } else {
180 bodyCache[b]=new encodedString(data,len); 182 bodyCache[part->Identifier()]=new encodedString(data,len);
181 target->addPart(part); 183 target->addPart(part);
@@ -216,7 +218,6 @@ void Genericwrapper::traverseBody(RecBodyP&target,mailmessage*message,mailmime*m
216 part->setPositionlist(countlist); 218 part->setPositionlist(countlist);
217 b = gen_attachment_id(); 219 part->setIdentifier(gen_attachment_id());
218 part->setIdentifier(b);
219 part->setType("message"); 220 part->setType("message");
220 part->setSubtype("rfc822"); 221 part->setSubtype("rfc822");
221 bodyCache[b]=new encodedString(data,len); 222 bodyCache[part->Identifier()]=new encodedString(data,len);
222 target->addPart(part); 223 target->addPart(part);