-rw-r--r-- | noncore/net/mail/imapwrapper.cpp | 3 | ||||
-rw-r--r-- | noncore/net/mail/libmailwrapper/imapwrapper.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/noncore/net/mail/imapwrapper.cpp b/noncore/net/mail/imapwrapper.cpp index ae196bb..b437df0 100644 --- a/noncore/net/mail/imapwrapper.cpp +++ b/noncore/net/mail/imapwrapper.cpp | |||
@@ -639,25 +639,26 @@ void IMAPwrapper::fillSingleMsgPart(RecPart&target_part,mailimap_body_type_msg*w | |||
639 | return; | 639 | return; |
640 | } | 640 | } |
641 | target_part.setSubtype("rfc822"); | 641 | target_part.setSubtype("rfc822"); |
642 | qDebug("Message part"); | 642 | qDebug("Message part"); |
643 | /* we set this type to text/plain */ | 643 | /* we set this type to text/plain */ |
644 | target_part.setLines(which->bd_lines); | 644 | target_part.setLines(which->bd_lines); |
645 | fillBodyFields(target_part,which->bd_fields); | 645 | fillBodyFields(target_part,which->bd_fields); |
646 | } | 646 | } |
647 | 647 | ||
648 | void IMAPwrapper::fillMultiPart(RecPart&target_part,mailimap_body_type_mpart*which) | 648 | void IMAPwrapper::fillMultiPart(RecPart&target_part,mailimap_body_type_mpart*which) |
649 | { | 649 | { |
650 | if (!which) return; | 650 | if (!which) return; |
651 | target_part.setSubtype(which->bd_media_subtype); | 651 | QString sub = which->bd_media_subtype; |
652 | target_part.setSubtype(sub.lower()); | ||
652 | if (which->bd_ext_mpart && which->bd_ext_mpart->bd_parameter && which->bd_ext_mpart->bd_parameter->pa_list) { | 653 | if (which->bd_ext_mpart && which->bd_ext_mpart->bd_parameter && which->bd_ext_mpart->bd_parameter->pa_list) { |
653 | clistcell*cur = 0; | 654 | clistcell*cur = 0; |
654 | mailimap_single_body_fld_param*param=0; | 655 | mailimap_single_body_fld_param*param=0; |
655 | for (cur = clist_begin(which->bd_ext_mpart->bd_parameter->pa_list);cur!=NULL;cur=clist_next(cur)) { | 656 | for (cur = clist_begin(which->bd_ext_mpart->bd_parameter->pa_list);cur!=NULL;cur=clist_next(cur)) { |
656 | param = (mailimap_single_body_fld_param*)cur->data; | 657 | param = (mailimap_single_body_fld_param*)cur->data; |
657 | if (param) { | 658 | if (param) { |
658 | target_part.addParameter(QString(param->pa_name).lower(),QString(param->pa_value)); | 659 | target_part.addParameter(QString(param->pa_name).lower(),QString(param->pa_value)); |
659 | } | 660 | } |
660 | } | 661 | } |
661 | } | 662 | } |
662 | } | 663 | } |
663 | 664 | ||
diff --git a/noncore/net/mail/libmailwrapper/imapwrapper.cpp b/noncore/net/mail/libmailwrapper/imapwrapper.cpp index ae196bb..b437df0 100644 --- a/noncore/net/mail/libmailwrapper/imapwrapper.cpp +++ b/noncore/net/mail/libmailwrapper/imapwrapper.cpp | |||
@@ -639,25 +639,26 @@ void IMAPwrapper::fillSingleMsgPart(RecPart&target_part,mailimap_body_type_msg*w | |||
639 | return; | 639 | return; |
640 | } | 640 | } |
641 | target_part.setSubtype("rfc822"); | 641 | target_part.setSubtype("rfc822"); |
642 | qDebug("Message part"); | 642 | qDebug("Message part"); |
643 | /* we set this type to text/plain */ | 643 | /* we set this type to text/plain */ |
644 | target_part.setLines(which->bd_lines); | 644 | target_part.setLines(which->bd_lines); |
645 | fillBodyFields(target_part,which->bd_fields); | 645 | fillBodyFields(target_part,which->bd_fields); |
646 | } | 646 | } |
647 | 647 | ||
648 | void IMAPwrapper::fillMultiPart(RecPart&target_part,mailimap_body_type_mpart*which) | 648 | void IMAPwrapper::fillMultiPart(RecPart&target_part,mailimap_body_type_mpart*which) |
649 | { | 649 | { |
650 | if (!which) return; | 650 | if (!which) return; |
651 | target_part.setSubtype(which->bd_media_subtype); | 651 | QString sub = which->bd_media_subtype; |
652 | target_part.setSubtype(sub.lower()); | ||
652 | if (which->bd_ext_mpart && which->bd_ext_mpart->bd_parameter && which->bd_ext_mpart->bd_parameter->pa_list) { | 653 | if (which->bd_ext_mpart && which->bd_ext_mpart->bd_parameter && which->bd_ext_mpart->bd_parameter->pa_list) { |
653 | clistcell*cur = 0; | 654 | clistcell*cur = 0; |
654 | mailimap_single_body_fld_param*param=0; | 655 | mailimap_single_body_fld_param*param=0; |
655 | for (cur = clist_begin(which->bd_ext_mpart->bd_parameter->pa_list);cur!=NULL;cur=clist_next(cur)) { | 656 | for (cur = clist_begin(which->bd_ext_mpart->bd_parameter->pa_list);cur!=NULL;cur=clist_next(cur)) { |
656 | param = (mailimap_single_body_fld_param*)cur->data; | 657 | param = (mailimap_single_body_fld_param*)cur->data; |
657 | if (param) { | 658 | if (param) { |
658 | target_part.addParameter(QString(param->pa_name).lower(),QString(param->pa_value)); | 659 | target_part.addParameter(QString(param->pa_name).lower(),QString(param->pa_value)); |
659 | } | 660 | } |
660 | } | 661 | } |
661 | } | 662 | } |
662 | } | 663 | } |
663 | 664 | ||