As you can see it attempts to forward an existing message to address (@message -- obtained from Mail.read) to another address...preserving all the parts of the original message. @recipient is obtained from a command-line parameter. @delivery is obtained from a configuration file (it's splatted because the config file can contain a complete parameter list for Mail.delivery_method).
The method creates a message just fine but when I preview the created message using an MUA, the text_part doesn't show up. When I view the preview as just text, the text_part is there and appears to be formatted correctly. I've previewed this messages with Apple Mail (Version 12.1 (3445.101.1)) and Gmail and the text_part doesn't show up in either of them.
I've tried several iterations of this (based on feedback from other reports here) but I always get the same result. This seems really straightforward to me... What am I missing?
First, the standard stuff:
Ruby version: 2.5.3 Mail gem version: 2.7.1 OS: Ubuntu Linux 18.04
I have this method that is part of a somewhat large and complex program:
As you can see it attempts to forward an existing message to
address
(@message
-- obtained fromMail.read
) to another address...preserving all the parts of the original message.@recipient
is obtained from a command-line parameter.@delivery
is obtained from a configuration file (it's splatted because the config file can contain a complete parameter list forMail.delivery_method
).The method creates a message just fine but when I preview the created message using an MUA, the
text_part
doesn't show up. When I view the preview as just text, thetext_part
is there and appears to be formatted correctly. I've previewed this messages with Apple Mail (Version 12.1 (3445.101.1)) and Gmail and thetext_part
doesn't show up in either of them.I've tried several iterations of this (based on feedback from other reports here) but I always get the same result. This seems really straightforward to me... What am I missing?
I've attached a preview.
Thanks in advance...
-- Steve Witten
foo.txt