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
1 2001-07-05 Alain Magloire 1 2001-07-05 Alain Magloire
2 2
3 * mail/send.c(mail_send0): Put the mailer in debug mode
4 if util_find_env("verbose")->set, good for debuging.
5
6 2001-07-05 Alain Magloire
7
3 According to the man page: 8 According to the man page:
4 "sendmail contains a command, possibly with options, that mailx 9 "sendmail contains a command, possibly with options, that mailx
5 invokes to send mail. You must manually set the default for this 10 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) ...@@ -369,6 +369,12 @@ mail_send0 (struct send_environ *env, int save_to)
369 status = mailer_create (&mailer, sendmail); 369 status = mailer_create (&mailer, sendmail);
370 if (status == 0) 370 if (status == 0)
371 { 371 {
372 if (util_find_env ("verbose")->set)
373 {
374 debug_t debug = NULL;
375 mailer_get_debug (mailer, &debug);
376 debug_set_level (debug, MU_DEBUG_TRACE|MU_DEBUG_PROT);
377 }
372 status = mailer_open (mailer, MU_STREAM_RDWR); 378 status = mailer_open (mailer, MU_STREAM_RDWR);
373 if (status == 0) 379 if (status == 0)
374 { 380 {
......