Tip for smart mailers and HDB admin crontab scripts

Thad P Floryan thad at cup.portal.com
Mon Feb 5 20:48:06 AEST 1990


Here's a tip you may find useful if you're running HDB and a smart mailer
(such as smail).  In the scripts:

	/usr/lib/uucp/uudemon.admin, and
	/usr/lib/uucp/uudemon.cleanu

which are run from crontab, you'll notice lines like:

	(echo "Subject: uu-status"; cat $TMP) | mail $MAILTO

If you append a "\n" to the echo string, forcing a blank line between the
"Subject:" and the mail body text, your mail headers won't get munged and
the mail text will appear in the proper place.  For example:

	(echo "Subject: uu-status\n"; cat $TMP) | mail $MAILTO
                                 ^^
                              add this

Some of the items in uudemon.cleanu are multi-line like the following:

	(echo "Subject: uudemon.cleanup: HELP! PANIC! FIRE!\n"
	 echo "$LOGDIR/$i not directory! - remaking") | mail $MAILTO

	(echo "Subject: uudemon.cleanup\n"
	 echo "unable to chdir to $LOGDIR/$i") | mail $MAILTO

So be sure you find and edit them all.

Thad Floryan [ thad at cup.portal.com (OR) ..!sun!portal!cup.portal.com!thad ]



More information about the Comp.sys.att mailing list