Turns out mailx isn't as intelligent as I thought. The save command simply copies the message from /var/
spool/mail/user to the file specified, no decoding is performed. I had previously thought the save command saved mail in a plain text format that could be viewed externally...
I solved my problem by using:
Code:
mailx > ~/.mail_reader <<EOF
1
d1
quit
EOF
instead of:
Code:
mailx <<EOF
s1 ~/.mail_reader
quit
EOF
and performed a little more text manipulation to remove the mailx login/listing stuff at the top of the file...
Hope this helps someone else someday.