| 219 | } |
| 220 | |
| 221 | static void parseAddressesFromRfc822(mailcore::String * filename, mailcore::Array ** pRecipients, mailcore::Address ** pFrom) |
| 222 | { |
| 223 | mailcore::MessageParser * parser = mailcore::MessageParser::messageParserWithContentsOfFile(filename); |
| 224 | |
| 225 | mailcore::Array * recipients = mailcore::Array::array(); |
| 226 | if (parser->header()->to() != NULL) { |
| 227 | recipients->addObjectsFromArray(parser->header()->to()); |
| 228 | } |
| 229 | if (parser->header()->cc() != NULL) { |
| 230 | recipients->addObjectsFromArray(parser->header()->cc()); |
| 231 | } |
| 232 | if (parser->header()->bcc() != NULL) { |
| 233 | recipients->addObjectsFromArray(parser->header()->bcc()); |
| 234 | } |
| 235 | *pRecipients = recipients; |
| 236 | *pFrom = parser->header()->from(); |
| 237 | } |
| 238 | |
| 239 | static void testSendingMessageFromFileViaSMTP(mailcore::Data * data) |
| 240 | { |
no test coverage detected