You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems there are instance variables in this method where there shouldn't be. Replace each so the method looks like this and you won't get any whiny nil errors about nil.header calls:
def from_tmail(tmail)
raise ArgumentError, "Expecting a TMail::Mail object." unless tmail.is_a?(TMail::Mail)
@headers ||= Hash.new {|h,k| tmail.header[k].to_s }
if multipart?
@content = tmail.parts.collect { |tpart| Entity.new.from_tmail(tpart) }
else
set_content tmail.body # TMail has already decoded it, but we need it still encoded
end
end
The text was updated successfully, but these errors were encountered:
Seems there are instance variables in this method where there shouldn't be. Replace each so the method looks like this and you won't get any whiny nil errors about nil.header calls:
The text was updated successfully, but these errors were encountered: