apticron does not sen $NUM_PACKAGES with custom subject set

Bug #1308430 reported by bog on 2014-04-16
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apticron (Ubuntu)
Undecided
Unassigned

Bug Description

Hello ,

If CUSTOM_SUBJECT is set in /etc/apticron/apticron.conf on Ubuntu 12.04, then $NUM_PACKAGES is not part of the mail subject. If i mofify /usr/sbin/apticron with my subject settings, then it works fine.

My subjekt i used was: $NUM_PACKAGES $DISTRIB_ID $DISTRIB_RELEASE $DISTRIB_CODENAME updates for $SYSTEM

Cheers

Martin

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apticron (Ubuntu):
status: New → Confirmed
Cesc Llagostera (cescllp) wrote :

I have the same problem.

and $SYSTEM doesn't works too.

Thanks

Cesc

Krzysztof Raczkowski (raczkow) wrote :

I found this bug too. Even after 3 years.
Here's a solution:
All variables passed to CUSTOM_SUBJECT need to be escaped with a backslash:
CUSTOM_SUBJECT="[apticron] \$SYSTEM \$NUM_PACKAGES \$DISTRIB_ID package update(s)"

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers