Commit 937341af 937341af92cae7cca1318878f5f15c6f44576a3c by Alain Magloire

* mail/send.c(mail_send0): Put the mailer in debug mode

	if util_find_env("verbose")->set, good for debuging.
1 parent b3937510
2001-07-05 Alain Magloire
* mail/send.c(mail_send0): Put the mailer in debug mode
if util_find_env("verbose")->set, good for debuging.
2001-07-05 Alain Magloire
According to the man page:
"sendmail contains a command, possibly with options, that mailx
invokes to send mail. You must manually set the default for this
......
......@@ -369,6 +369,12 @@ mail_send0 (struct send_environ *env, int save_to)
status = mailer_create (&mailer, sendmail);
if (status == 0)
{
if (util_find_env ("verbose")->set)
{
debug_t debug = NULL;
mailer_get_debug (mailer, &debug);
debug_set_level (debug, MU_DEBUG_TRACE|MU_DEBUG_PROT);
}
status = mailer_open (mailer, MU_STREAM_RDWR);
if (status == 0)
{
......