-/* extract the first substring that looks like a message-id */
-static char *extract_message_id(const char *s)
-{
- const char *p;
-
- if ((s = strchr(s, '<')) == NULL || (p = strchr(s, '>')) == NULL)
- return NULL;
- return p_dupstr(s, (p - s) + 1);
-}
-
-void mutt_parse_mime_message (CONTEXT * ctx, HEADER * cur)
-{
- MESSAGE *msg;
- int flags = 0;
-
- do {
- if (cur->content->type != TYPEMESSAGE
- && cur->content->type != TYPEMULTIPART)
- break; /* nothing to do */
-
- if (cur->content->parts)
- break; /* The message was parsed earlier. */
-
- if ((msg = mx_open_message (ctx, cur->msgno))) {
- mutt_parse_part (msg->fp, cur->content);
-
- cur->security = crypt_query (cur->content);
-
- mx_close_message (&msg);
- }
- } while (0);
- mutt_count_body_parts (cur, flags | M_PARTS_RECOUNT);
-}
-