class Mail::Header

def has_message_id?

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