does not send mail despite Unattended-Upgrade::Mail set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unattended-upgrades (Ubuntu) |
Fix Released
|
Undecided
|
Michael Vogt |
Bug Description
Binary package hint: unattended-upgrades
(feisty)
I have configured Unattended-
$ apt-config dump| grep Mail
Unattended-
Unattended-
But after a run of /etc/cron.
2007-09-02 10:08:30,532 INFO All upgrades installed
Then I looked at usr/bin/
code into a python shell:
# python
Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt_pkg
>>> email = apt_pkg.
>>> print email
The output is empty! For other configuration items the command works, like apt_pkg.
There seems to be something wrong with the access to the configuration variables.
Changed in unattended-upgrades: | |
status: | Fix Committed → Fix Released |
I'm not an expert on the unattended-upgrades package or the Python apt module, so some of this could be wrong.
How have you defined the mail variable in the /etc/apt/ apt.conf. d/ files?
It is like this? Upgrade: :Mail {
Unattended-
"<email address hidden>";
};
If so then I think this problem is that syntax defines a list, which is supposed to be read by the apt_pkg. Config. FindValueList function, eg: Config. FindValueList( "Unattended- Upgrade: :Allowed- Origins" )
apt_pkg.
The unattended-upgrades python code expects the Unattended- Upgrade: :Mail variable to be a single value and not a list, so I think it should look like this: Upgrade: :Mail "<email address hidden>";
Unattended-
Using the second form produces the correct values, but I've not yet tested that it will send any email.
Would you be able to try again using that style and let me know if it works or not?