Class: RMail::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/whisper/mbox.rb

Overview

stolen from sup

Instance Method Summary collapse

Instance Method Details

#charsetObject



8
9
10
11
12
# File 'lib/whisper/mbox.rb', line 8

def charset
  if header.field?("content-type") && header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/i
    $1
  end
end