Well I fixed it by piping the file yum.update through sed to remove the \r characters from the file before sending the mail.
So Line 16 of /usr/sausalito/handlers/base/swupdate/yum-update.sh Now reads: /bin/cat /tmp/yum.update | /bin/sed 's/\r//' | /bin/mail -s "`/bin/hostname` Yum Update output for `/bin/date +\%m`-`/bin/date +\%d`-`/bin/date +\%y`" $EMAILRECIPIENT However, I assume that this change will be written over the next time the team decide to update yum-update.sh ? If so is there a way for me to make it permanent or can the team add it as a fix? Jason -----Original Message----- From: blueonyx-boun...@mail.blueonyx.it [mailto:blueonyx-boun...@mail.blueonyx.it] On Behalf Of bluequa...@ozin.com Sent: 17 June 2012 12:09 To: blueonyx@mail.blueonyx.it Subject: [BlueOnyx:10812] yum update mail producing .bin attachment Since moving to 5107R my yum update emails are no longer plain text and instead have the /tmp/yum.update text added as an attachment called ATT00001.bin. Thus iPhones/iPads refuse to read it. I notice in the headers of the email message that mail has decided the message is: Content-Type: application/octet-stream So I either want to have this attachment come through as a .txt attachment or better still have the text of /tmp/yum.update added as plain text in-line and not as an attachment, as it was previously. I note that the file to edit is almost certainly going to be: /usr/sausalito/handlers/base/swupdate/yum-update.sh Any ideas? Thanks in advance. Jason _______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx _______________________________________________ Blueonyx mailing list Blueonyx@mail.blueonyx.it http://mail.blueonyx.it/mailman/listinfo/blueonyx