Of course, most of these anomalies are probably inherent in most other
versions of LEAF/LRP; but, this is the version I am using to debug and
solve these issues.

[1] If the first line of the mail body begins with at least one (1)
    non-whitespace, non-colon (:) character and is followed by a
    colon (:) and anything else, then *NO* body will be received
    with the Email !?!?  For example:

        host: Odin
        date: Fri Oct 26 20:35:13 CDT 2001
        src : trout

    This can be alleviated by prepending *all* bodies with a blank
    line (echo).

[2] /etc/cron.daily/multicron-d, although run as root, has a very
    limited PATH and *cannot* find /usr/sbin/mail, among other
    programs it may be asked to run.

    Therefore, I suggest adding the following, similarly as
    /etc/crontab is configured:

    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

    The only question is, in which file ought this to be placed:
    /etc/lrp.conf or /etc/cron.daily/multicron-d ???

[3] /var/log/mail.log exists; but, I've not yet seen anything
    write to it.  In order to facilitate debugging Email issues,
    as well as to keep track of outgoing Email attempts, I suggest
    adding the following subroutine to /lib/POSIXness/POSIXness.mail:

        log () {
                LOG=/var/log/mail.log
                STR=`date '+%b %d %T'`
                STR="${STR} ${HOSTNAME} mail[$$]: $user => [$envelopes]: $subject"
                echo $STR >> $LOG
        }

    I suggest calling log prior to that final `exit 0' and the last
    `done'; but, there maybe a more sane location ;>

What do you think?

-- 

Best Regards,

mds
mds resource
888.250.3987

Dare to fix things before they break . . .

Our capacity for understanding is inversely proportional to how much we
think we know.  The more I know, the more I know I don't know . . .

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to