Package: cron-apt
Version: 0.9.6
Severity: normal

When setting XHEADERS in the cron-apt config, cron-apt (or rather,
mailx) fails to send any messages.

Specifically, I have 
| XHEADER1="X-Cron-Apt: foo"
in /etc/cron-apt/config.  This causes errors when cron-apt tries to
send the mail.  The type of error depends on the version of mailx the
is installed (s-nail, mailutils, heirloom-mailx, bsd-mailx), and say
different things like "Cannot parse address <TAB> -a <TAB>", "failed
with error 1" (very descriptive, that one), "X-Cron-Apt: contains
invalid character ':'" and "X-Cron-Apt: foo: No such file or
directory".

I'm pretty sure this had to do with different versions of the mailx
alternatives using different syntaxes (and therefore not being real
alternatives in the first place).  I'll be filing a separate bug about
that issue.

To avoid this mess, it might be better for cron-apt just to send the
mails using sendmail -t directly, instead of relying on these mailx
tools.



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cron-apt depends on:
ii  apt  1.3.1

Versions of packages cron-apt recommends:
ii  bsd-mailx [mailx]   8.1.2-0.20160123cvs-3
ii  cron [cron-daemon]  3.0pl1-128
ii  liblockfile1        1.09-6
ii  mailutils [mailx]   1:2.99.99-1.1+b1
ii  s-nail [mailx]      14.8.14-1

cron-apt suggests no packages.

-- Configuration Files:
/etc/cron-apt/action.d/3-download changed [not included]
/etc/cron-apt/config changed [not included]
/etc/cron.d/cron-apt changed [not included]

-- no debconf information

Reply via email to