--- qmail-1.03/qmail-inject.c	Mon Jun 15 12:53:16 1998
+++ qmail-1.03-azou/qmail-inject.c	Fri Nov  2 18:10:30 2001
@@ -563,6 +563,8 @@
 
 void finishheader()
 {
+ stralloc extras = {0};
+
  flagresent =
    htypeseen[H_R_SENDER] || htypeseen[H_R_FROM] || htypeseen[H_R_REPLYTO]
    || htypeseen[H_R_TO] || htypeseen[H_R_CC] || htypeseen[H_R_BCC]
@@ -633,6 +635,18 @@
      puts("Cc: recipient list not shown: ;\n");
    finishmft();
   }
+
+  if (control_readfile(&extras,"control/extraheaders",1) != 1)
+  { puts("alert: unable to reread control/extraheaders\n"); }
+  else
+  { char *p=extras.s;
+    long  l=0;
+    while(l<extras.len)
+    { if(!*p)
+        *p='\n';
+      p++;
+      l++; }
+    put(extras.s,extras.len); }
 
  savedh_print();
 }
