| 257 |
257 |
| 258 jm->from = g_strdup(xmlnode_get_attrib(packet, "from")); |
258 jm->from = g_strdup(xmlnode_get_attrib(packet, "from")); |
| 259 jm->to = g_strdup(xmlnode_get_attrib(packet, "to")); |
259 jm->to = g_strdup(xmlnode_get_attrib(packet, "to")); |
| 260 |
260 |
| 261 for(child = packet->child; child; child = child->next) { |
261 for(child = packet->child; child; child = child->next) { |
| 262 if(child->type != NODE_TYPE_TAG) |
262 if(child->type != XMLNODE_TYPE_TAG) |
| 263 continue; |
263 continue; |
| 264 |
264 |
| 265 if(!strcmp(child->name, "subject")) { |
265 if(!strcmp(child->name, "subject")) { |
| 266 if(!jm->subject) |
266 if(!jm->subject) |
| 267 jm->subject = xmlnode_get_data(child); |
267 jm->subject = xmlnode_get_data(child); |