@@ -35,7 +35,7 @@ def populate_headers
3535 # headers, i think because one recipient was external. the only place the senders email address
3636 # exists is in the transport headers. so its maybe not good to overwrite from.
3737 # recipients however usually have smtp address available.
38- # maybe we'll do it for all addresses that are smtp? (is that equivalent to
38+ # maybe we'll do it for all addresses that are smtp? (is that equivalent to
3939 # sender_email_address !~ /^\//
4040 name , email = props . sender_name , props . sender_email_address
4141 if props . sender_addrtype == 'SMTP'
@@ -105,7 +105,7 @@ def populate_headers
105105 # i have no timezone info anyway.
106106 # in gmail, i see stuff like 15 Jan 2007 00:48:19 -0000, and it displays as 11:48.
107107 # can also add .localtime here if desired. but that feels wrong.
108- headers [ 'Date' ] = [ Time . iso8601 ( time . to_s ) . rfc2822 ] if time
108+ headers [ 'Date' ] = [ time . rfc2822 ] if time
109109 end
110110
111111 # some very simplistic mapping between internet message headers and the
@@ -266,9 +266,8 @@ def populate_headers
266266 # can employ other methods for getting a time. heres one in a similar vein to msgconvert.pl,
267267 # ie taking the time from an ole object
268268 time = @root . ole . dirents . map { |dirent | dirent . modify_time || dirent . create_time } . compact . sort . last
269- headers [ 'Date' ] = [ Time . iso8601 ( time . to_s ) . rfc2822 ] if time
269+ headers [ 'Date' ] = [ time . rfc2822 ] if time
270270 end
271271 end
272272 end
273273end
274-
0 commit comments