| 95 | Array * relatedAttachments); |
| 96 | |
| 97 | static bool isTextPart(AbstractPart * part, htmlRendererContext * context) |
| 98 | { |
| 99 | String * mimeType = part->mimeType()->lowercaseString(); |
| 100 | MCAssert(mimeType != NULL); |
| 101 | |
| 102 | if (!part->isInlineAttachment()) { |
| 103 | if (part->isAttachment() || ((part->filename() != NULL) && context->firstRendered)) { |
| 104 | return false; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | if (mimeType->isEqual(MCSTR("text/plain"))) { |
| 109 | return true; |
| 110 | } |
| 111 | else if (mimeType->isEqual(MCSTR("text/html"))) { |
| 112 | return true; |
| 113 | } |
| 114 | else { |
| 115 | return false; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | |
| 120 | static AbstractPart * preferredPartInMultipartAlternative(AbstractMultipart * part) |
no test coverage detected