diff options
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r-- | composer/e-msg-composer-attachment-bar.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c index 6619a59597..71562e9692 100644 --- a/composer/e-msg-composer-attachment-bar.c +++ b/composer/e-msg-composer-attachment-bar.c @@ -816,42 +816,3 @@ e_msg_composer_attachment_bar_attach_mime_part (EMsgComposerAttachmentBar *bar, add_from_mime_part (bar, part); } - -CamelMimePart * -e_msg_composer_attachment_bar_find_message (EMsgComposerAttachmentBar *bar, char *url) -{ - EMsgComposerAttachmentBarPrivate *priv; - GList *p; - char *content_id = NULL; - - g_return_val_if_fail (E_IS_MSG_COMPOSER_ATTACHMENT_BAR (bar), NULL); - g_return_val_if_fail (url != NULL, NULL); - - if (!strncmp ("cid:", url, 4)) - content_id = url + 4; - - priv = bar->priv; - - for (p = priv->attachments; p != NULL; p = p->next) { - CamelMimePart *part; - const char *part_id; - const char *part_location; - - part = E_MSG_COMPOSER_ATTACHMENT (p->data)->body; - - part_id = camel_mime_part_get_content_id (part); - g_warning ("content_id: %s, part_id: %s\n", content_id, part_id); - - if (content_id && part_id && !strcmp (part_id, content_id)) - return part; - - part_location = camel_mime_part_get_content_location (part); - g_warning ("url: %s, part_id: %s\n", url, part_id); - - if (part_location && !strcmp (part_location, url)) - return part; - - } - - return NULL; -} |