uuencode /tmp/myfile myfile | mail -s "Attachemnt" email@example.com
won't work any more after migrated to RHEL6. All the uuencoded message will display as body contents rather than an attachment.
If you have a script like above, for sure you will get impacted:
Redhat seems to have some kind of workaround but it only opens to its registered users.
The fix is pretty simply but you'll still need to make changes to your so-far-working-well scripts.
mail -a /tmp/myfile -s "Attachement" firstname.lastname@example.org.
The problem seems coming from the headers the new version introduced.
Content-Type: text/plain; charset="us-ascii"
Old version headers just have:
There might be options to disable the new headers, let me know if anybody find them out.