Hi!

On 20:59, Andrew Baines wrote:
> Package: apticron
> Version: 1.1.42
> Severity: important
> 
> 
> I was not receiving emails from apticron, so I took a look at the
> script it is using, found something strange...
> 
> In the script at /usr/sbin/apticron the command for sending the
> email is used as "Mailx". When this is typed at the command line -->
> Command not found." What the true command should be is "mailx"
> without the capital "M".
> 
> Surprising is I cant find anyone else who has come accross this
> issue.

Mailx is a shell-function which is used in the script:

# Character set handling differs between the different mailx
# implementations in Debian. Make sure we send proper headers, and a
# text/plain content type.
Mailx() {
        if [ "x`readlink -e /usr/bin/mailx`" = "x/usr/bin/heirloom-mailx" ]
        then
                # heirloom-mailx creates correct headers, but needs help
                # if the terminal charset (LC_CTYPE) is no UTF-8 locale
                /usr/bin/mailx -S ttycharset=utf-8 "$@"
        else
                # bsd-mailx/mailutils' mailx don't do character set
                # conversion, but do not support MIME either.
                /usr/bin/mailx -a "MIME-Version: 1.0" \
                        -a "Content-type: text/plain; charset=UTF-8" \
                        -a "Content-transfer-encoding: 8bit" \
                        "$@"
        fi
}

The reason why you didn't receive emails from apticron should be
something else...

Regards,
 - Darsha

Tags: wontfix



-- 
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