| 2778 /* look up the content id */ |
2778 /* look up the content id */ |
| 2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID"); |
2779 cid = (char *) purple_mime_part_get_field(part, "Content-ID"); |
| 2780 cid = make_cid(cid); |
2780 cid = make_cid(cid); |
| 2781 |
2781 |
| 2782 /* add image to the purple image store */ |
2782 /* add image to the purple image store */ |
| 2783 img = purple_imgstore_add_with_id(d_dat, d_len, cid); |
2783 img = purple_imgstore_new_with_id(d_dat, d_len, cid); |
| 2784 |
2784 |
| 2785 /* map the cid to the image store identifier */ |
2785 /* map the cid to the image store identifier */ |
| 2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img)); |
2786 g_hash_table_insert(img_by_cid, cid, GINT_TO_POINTER(img)); |
| 2787 |
2787 |
| 2788 /* recall the image for dereferencing later */ |
2788 /* recall the image for dereferencing later */ |