Format Time as rfc822
require 'time' mail_received = 'Tue, 1 Jul 2003 10:52:37 +0200' puts Time.rfc822(mail_received)