Package: cron
Version: 3.0pl1-124
Severity: normal

Hello,

I use procmail to sort my mail, and to make sure failed cron jobs were directed
to my Inbox, I grepped for the expression '^Subject:.*\(failed\)$' in my
emails. After upgrading to Debian Wheezy, I was surprised when I did not see
failed cron jobs in my Inbox from applications I had not yet setup on my new
Debian installation. Upon investigating, I learned that "(failed)" was no
longer being appended to the email subjects of failed cron jobs:

    ~% crontab -l | head -n2
    SHELL="/bin/bash"
    * * * * * echo Test; exit 1
    ~% date
    Sun Mar 10 10:52:50 CDT 2013
    ~% ls -lh ~/mail/.Alerts.Cron/new/*
    -rw-r--r-x 1 jameseric jameseric 751 Mar 10 10:53 
/home/jameseric/mail/.Alerts.Cron/new/1362930781.943_0.sinister
    ~% fgrep Subject !$
    fgrep Subject ~/mail/.Alerts.Cron/new/*
    Subject: Cron <jameseric@sinister> echo Test; exit 1

I reviewed "aptitude changelog cron," and I do not see this change mentioned,
and there also does not appear to be an option to enable having the text
appended listed in "man cron."

In reviewing the source code at
http://anonscm.debian.org/gitweb/?p=pkg-cron/pkg-cron.git;a=blob;f=do_command.c#l565,
it appears the text is still there. The "strings" command also shows it present
in my compiled binary:

    ~% strings /usr/sbin/cron | fgrep '(failed)'
     (failed)

So it is not immediately obvious to me why the text is not being appended.

Eric

-- Package-specific info:
--- EDITOR:
not set

--- /usr/bin/editor:
/usr/bin/vim.gtk

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 35880 Jul  3  2012 /usr/bin/crontab

--- /var/spool/cron:
drwxr-xr-x 5 root root 4096 Mar  9 17:16 /var/spool/cron

--- /var/spool/cron/crontabs:
drwx-wx--T 2 root crontab 4096 Mar  9 21:16 /var/spool/cron/crontabs

--- /etc/cron.d:
drwxr-xr-x 2 root root 4096 Mar  9 17:06 /etc/cron.d

--- /etc/cron.daily:
drwxr-xr-x 2 root root 4096 Mar  9 17:17 /etc/cron.daily

--- /etc/cron.hourly:
drwxr-xr-x 2 root root 4096 Mar  9 17:06 /etc/cron.hourly

--- /etc/cron.monthly:
drwxr-xr-x 2 root root 4096 Mar  9 17:06 /etc/cron.monthly

--- /etc/cron.weekly:
drwxr-xr-x 2 root root 4096 Mar 10 03:37 /etc/cron.weekly


-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cron depends on:
ii  adduser         3.113+nmu3
ii  debianutils     4.3.2
ii  dpkg            1.16.9
ii  libc6           2.13-38
ii  libpam-runtime  1.1.3-7.1
ii  libpam0g        1.1.3-7.1
ii  libselinux1     2.1.9-5
ii  lsb-base        4.1+Debian8

Versions of packages cron recommends:
ii  exim4                                      4.80-7
ii  exim4-daemon-light [mail-transport-agent]  4.80-7

Versions of packages cron suggests:
pn  anacron        <none>
pn  checksecurity  <none>
ii  logrotate      3.8.1-4

Versions of packages cron is related to:
pn  libnss-ldap   <none>
pn  libnss-ldapd  <none>
pn  libpam-ldap   <none>
pn  libpam-mount  <none>
pn  nis           <none>
pn  nscd          <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to