Your message dated Mon, 9 Nov 2009 10:06:47 +0100
with message-id <20091109090647.gd3...@tas>
and subject line Re: Bug#554627: [PATCH] Add the server hostname in the mail 
subject
has caused the Debian Bug report #554627,
regarding [PATCH] Add the server hostname in the mail subject
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
554627: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=554627
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: unattended-upgrades
Version: 0.25.1debian1-0.1
Severity: wishlist

    I have unattended-upgrades installed over several machines and
every time a package is updated, I receive lots of emails with the
subject "unattended-upgrades result" and I have to check the from
header to know what server of mine was updated. I think it would be
great (and easier to check from what server this message from) if the
hostname was added in the mail subject.

    I'm adding to this message a patch that adds the hostname to mail
subject and makes it looks like "unattended-upgrades result for
HOSTNAME".


-- 
Atenciosamente,

Arthur Furlan
arthur.fur...@gmail.com
--- unattended-upgrade	2009-11-05 15:56:21.000000000 -0200
+++ unattended-upgrade-patched	2009-11-05 15:56:34.000000000 -0200
@@ -6,7 +6,7 @@
 # Released under the GPL
 
 import apt_pkg, apt_inst
-import sys, os, string, datetime
+import sys, os, string, datetime, socket
 from optparse import OptionParser
 from subprocess import Popen, PIPE
 
@@ -258,8 +258,8 @@
     if email != "":
         logging.debug("Sending mail with '%s' to '%s'" % (logfile_dpkg, email))
         mail = subprocess.Popen(["mail",
-                                 "-s","unattended-upgrades result",email],
-                                stdin=subprocess.PIPE)
+                                 "-s","unattended-upgrades result for " + socket.gethostname(),
+				 email], stdin=subprocess.PIPE)
         s = "Unattended upgrade returned: %s\n\n" % (res != pm.ResultFailed)
         s += open(logfile_dpkg).read()
         mail.stdin.write(s)

--- End Message ---
--- Begin Message ---
On Thu, Nov 05, 2009 at 04:27:12PM -0200, Arthur Furlan wrote:
> Package: unattended-upgrades
> Version: 0.25.1debian1-0.1
> Severity: wishlist

Thanks for your mail and your patch!
 
>     I have unattended-upgrades installed over several machines and
> every time a package is updated, I receive lots of emails with the
> subject "unattended-upgrades result" and I have to check the from
> header to know what server of mine was updated. I think it would be
> great (and easier to check from what server this message from) if the
> hostname was added in the mail subject.
> 
>     I'm adding to this message a patch that adds the hostname to mail
> subject and makes it looks like "unattended-upgrades result for
> HOSTNAME".

This is already part of the 0.36 (and later) version of
unattended-upgrade (unfortunately only available in squeeze or sid).

Cheers,
 Michael



--- End Message ---

Reply via email to