| 432 | } |
| 433 | |
| 434 | static String * htmlForAbstractMessagePart(AbstractMessagePart * part, htmlRendererContext * context) |
| 435 | { |
| 436 | if (context->pass == 0) { |
| 437 | return NULL; |
| 438 | } |
| 439 | String * substring = htmlForAbstractPart(part->mainPart(), context); |
| 440 | if (substring == NULL) |
| 441 | return NULL; |
| 442 | |
| 443 | HashMap * values = context->htmlCallback->templateValuesForHeader(part->header()); |
| 444 | String * headerString = renderTemplate(context->htmlCallback->templateForEmbeddedMessageHeader(part->header()), values); |
| 445 | |
| 446 | HashMap * msgValues = new HashMap(); |
| 447 | msgValues->setObjectForKey(MCSTR("HEADER"), headerString); |
| 448 | msgValues->setObjectForKey(MCSTR("BODY"), substring); |
| 449 | String * result = renderTemplate(context->htmlCallback->templateForEmbeddedMessage(part), msgValues); |
| 450 | msgValues->release(); |
| 451 | |
| 452 | return result; |
| 453 | } |
| 454 | |
| 455 | String * htmlForAbstractMultipartAlternative(AbstractMultipart * part, htmlRendererContext * context) |
| 456 | { |
no test coverage detected