ActionMailer receive function does not parse header properly when sent from Apple Mail
a basic ActionMailer::Base.receive function...
def receive(email)
puts email.to_yaml
end
If I send a mail from Thunderbird, I can access methods like
.from or .from_addrs
the to_yaml show is content properly.
from: !ruby/object:TMail::AddressHeader
addrs:
- !ruby/object:TMail::Address
domain:
- firehall
local:
- mathieujobin
name: Mathieu Jobin
routes: []
body: "Mathieu Jobin <mathieujobin@firehall>
"
comments: []
config: *id001
illegal: false
parsed: true
when sending mail from AppleMail, it does not parse the from information and who knows what else it is missing.
from: !ruby/object:TMail::AddressHeader
addrs: []
body: "mathieujobin@firehall <mathieujobin@firehall>
"
comments: []
config: *id001
illegal: true
parsed: true
thank you.