[BlueOnyx:11541] Re: yum update mail producing .bin attachment
David Thacker
David at ThackerNet.com
Tue Oct 16 10:55:34 -05 2012
> 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.
...
> 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
Thanks for the fix Jason, I am seeing this same behaviour on BX 5107.
Add my vote for making this an official fix in yum-update.sh !
Regards,
dAvid tHacker Email: David at ThackerNet.com
Thacker Network Technologies Inc. Http://www.ThackerNet.com
More information about the Blueonyx
mailing list