| 307 | } |
| 308 | |
| 309 | const char* mime_node::parent_header_value(const char* name) const { |
| 310 | if (m_pMimeNode->parent == NULL) { |
| 311 | return NULL; |
| 312 | } |
| 313 | |
| 314 | ACL_ITER iter; |
| 315 | |
| 316 | acl_foreach(iter, m_pMimeNode->parent->header_list) { |
| 317 | HEADER_NV* hdr = (HEADER_NV*) iter.data; |
| 318 | if (strcasecmp(hdr->name, name) == 0 && *hdr->value) { |
| 319 | return hdr->value; |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | return NULL; |
| 324 | } |
| 325 | |
| 326 | } // namespace acl |
| 327 |
nothing calls this directly
no test coverage detected