On Tue, Nov 16, 1999 at 11:09:08AM -0500, [EMAIL PROTECTED] wrote:
> Is the newlines patch available at the normal qmail sites?  I gotta get me
> one if it fixes the problem!!!

A precursory search didn't find it. I've included it below (it's only 27
lines):

--- cut here ---
--- qmail-smtpd.c.orig  Mon Jun 15 20:53:16 1998
+++ qmail-smtpd.c       Thu Sep 24 13:33:25 1998
@@ -300,13 +300,23 @@
   int flagmaybex; /* 1 if this line might match RECEIVED, if fih */
   int flagmaybey; /* 1 if this line might match \r\n, if fih */
   int flagmaybez; /* 1 if this line might match DELIVERED, if fih */
+  int seencr;
  
   state = 1;
   *hops = 0;
   flaginheader = 1;
-  pos = 0; flagmaybex = flagmaybey = flagmaybez = 1;
+  pos = 0; flagmaybex = flagmaybey = flagmaybez = 1; seencr = 0;
   for (;;) {
     substdio_get(&ssin,&ch,1);
+    if (ch == '\n')
+     {
+      if (seencr == 0)
+       {
+        substdio_seek(ssin,-1);
+        ch = '\r';
+       }
+     }
+    if (ch == '\r') seencr = 1; else seencr = 0;
     if (flaginheader) {
       if (pos < 9) {
         if (ch != "delivered"[pos]) if (ch != "DELIVERED"[pos]) flagmaybez = 0;
--- cut here ---

HTH,

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]

Reply via email to