Logging: add I= element to transport-defer lines. Bug 2675
[exim.git] / src / src / transports / smtp.c
index 9e337e93f8d65bc22042f6e639a418896750c607..a8ae606d197ddec39655a14afd2aab14f9e56192 100644 (file)
@@ -43,7 +43,7 @@ optionlist smtp_transport_options[] = {
   { "dane_require_tls_ciphers", opt_stringptr, LOFF(dane_require_tls_ciphers) },
 # endif
   { "data_timeout",         opt_time,     LOFF(data_timeout) },
-  { "delay_after_cutoff", opt_bool,       LOFF(delay_after_cutoff) },
+  { "delay_after_cutoff",   opt_bool,     LOFF(delay_after_cutoff) },
 #ifndef DISABLE_DKIM
   { "dkim_canon", opt_stringptr,          LOFF(dkim.dkim_canon) },
   { "dkim_domain", opt_stringptr,         LOFF(dkim.dkim_domain) },
@@ -4134,15 +4134,15 @@ if (!sx->ok)
 
         *message_defer = TRUE;
         }
-
+#ifdef TIOCOUTQ
       DEBUG(D_transport) if (sx->cctx.sock >= 0)
        {
        int n;
        if (ioctl(sx->cctx.sock, TIOCOUTQ, &n) == 0)
          debug_printf("%d bytes remain in socket output buffer\n", n);
        }
+#endif
       }
-
     /* Otherwise, we have an I/O error or a timeout other than after MAIL or
     ".", or some other transportation error. We defer all addresses and yield
     DEFER, except for the case of failed add_headers expansion, or a transport