The email sent out by yum-updatesd is a bit boring and gives very little information about what is going to be updated. Suggested patch to get things a bit more exciting: --- /usr/libexec/yum-updatesd-helper.orig 2007-11-16 17:06:15.000000000 +0100 +++ /usr/libexec/yum-updatesd-helper 2007-11-16 17:40:09.000000000 +0100 @@ -24,6 +24,8 @@ import smtplib from optparse import OptionParser from email.MIMEText import MIMEText +import socket +import rfc822 import yum @@ -147,18 +149,30 @@ return output = """ - Hi, - There are %d package updates available. Please run the system - updater. - - Thank You, - Your Computer - """ % num +Hi, +This is the automatic update system on %s. + +There are %d package updates available. Please run the system +updater. + +Packages available for update: + +""" % (socket.gethostname(), num) + + for package in updateInfo: + output += " %-30s %-10s\n" % (package[0]['name'], package[0]['type']) + + output += """ + +Thank You, +Your Computer +""" msg = MIMEText(output) - msg['Subject'] = "%d Updates Available" %(num,) + msg['Subject'] = "%d Updates Available on %s" %(num, socket.gethostname()) msg['From'] = self.sender msg['To'] = self.rcpts + msg['Date'] = rfc822.formatdate() s = smtplib.SMTP() if self.smtp_server: s.connect(self.smtp_server)
Looks reasonable, but can you attach rather than cut and paste the patch so that it doesn't get mangled by bugzilla?
Created attachment 261801 [details] more email.patch Looking a bit further at the code, I realised that it was lacking some central functionality. So I increased the patch to also include email notification for when yum-updatesd also installs the packets.
Applied. Thanks for the patch!
yum-updatesd-0.8-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-updatesd'
yum-updatesd-0.9-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-updatesd'
yum-updatesd-0.9-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.
Any special reason this bug is not closed? :)