rem: ip = soap_hlookup(soap, id); #ifndef WITH_LEANER if (!ip && *id != '#' && !strchr(id, ':'))  { char cid[SOAP_TAGLEN]; strcpy(cid, "cid:"); strncat(cid + 4, id, sizeof(cid) - 5); cid[sizeof(cid) - 1] = '\0'; ip = soap_hlookup(soap, cid); } #endif return ip;
add: for (ip = soap->iht[soap_hash(id)]; ip; ip = ip->next) if (!strcmp(ip->id, id)) return ip; return NULL;
context: soap_lookup(struct soap *soap, const char *id){ register struct soap_ilist *ip;  ip = soap_hlookup(soap, id);#ifndef WITH_LEANER  if (!ip && *id != '#' && !strchr(id, ':')) /* try content id "cid:" with DIME attachments */  { char cid[SOAP_TAGLEN];    strcpy(cid, "cid:");    strncat(cid + 4, id, sizeof(cid) - 5);    cid[sizeof(cid) - 1] = '\0';    ip = soap_hlookup(soap, cid);  }#endif  return ip;}