RFC3461 support - MIME DSN messages. Bug 118
[exim.git] / src / src / exim.c
index ee2fd82de9e8732b9c05b11a688fb371cb22c4bb..09e9c1cba9159e2bc19ad791597c412e937801b6 100644 (file)
@@ -837,6 +837,9 @@ fprintf(f, "Support for:");
 #ifdef EXPERIMENTAL_CERTNAMES
   fprintf(f, " Experimental_Certnames");
 #endif
+#ifdef EXPERIMENTAL_DSN
+  fprintf(f, " Experimental_DSN");
+#endif
 fprintf(f, "\n");
 
 fprintf(f, "Lookups (built-in):");
@@ -2659,6 +2662,16 @@ for (i = 1; i < argc; i++)
       break;
       }
 
+    #ifdef EXPERIMENTAL_DSN
+    /* -MCD: set the smtp_use_dsn flag; this indicates that the host
+       that exim is connected to supports the esmtp extension DSN */
+    else if (strcmp(argrest, "CD") == 0)
+      {
+      smtp_use_dsn = TRUE;
+      break;
+      }
+    #endif
+
     /* -MCP: set the smtp_use_pipelining flag; this is useful only when
     it preceded -MC (see above) */