The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-30-2008
Squeakygoose Squeakygoose is offline
Registered User
 

Join Date: Jan 2008
Posts: 6
Followup Answer

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.
Reply With Quote