class Mail::Header

def has_content_id?

Returns true if the header has a Content-ID defined (empty or not)
def has_content_id?
  fields.has_field? 'Content-ID'
end