class Net::IMAP
def self.decode_date(string)
Double quotes are optional. Day of month may be padded with zero or
Decodes +string+ as an IMAP formatted "date".
:call-seq: decode_date(string) -> Date
def self.decode_date(string) string = string.delete_prefix('"').delete_suffix('"') Date.strptime(string, STRFDATE) end