procmail
[Top] [All Lists]

Re: procmail 3.22: ':0 B:' misbehaves on solaris

2006-12-06 17:04:51
Dallman Ross wrote:
Rado S wrote:
Dallman Ross wrote:

However, since H is the default, normally one rarely has a need
actually to state it.

No, only when looking for special spam, which is the case here
when I was needing :0B:, but since B ?? ... worked, I'm not
stuck.

Exactly.

Let's go back one step.  There's no problem with :0B.  The problem is,
some recipe used :0H.  As H is the default, that recipe must have used
:0HB.  So, to fix the problem at the source, change that recipe to use
" * HB ?? ".  Doesn't that make more sense?

FYI, to check for the fix in Debian and Red Hat, here's where to look:

diff -r -U3 procmail-3.22/src/procmail.c procmail-3.23pre/src/procmail.c
--- procmail-3.22/src/procmail.c        Mon Sep 10 21:59:14 2001
+++ procmail-3.23pre/src/procmail.c     Sat Sep 15 12:42:42 2001
@@ -14,7 +14,7 @@
  ************************************************************************/
 #ifdef RCS
 static /*const*/char rcsid[]=
- "$Id: procmail.c,v 1.183 2001/08/31 04:57:36 guenther Exp $";
+ "$Id: procmail.c,v 1.184 2001/09/14 05:54:19 guenther Exp $";
 #endif
 #include "../patchlevel.h"
 #include "procmail.h"
@@ -652,8 +652,7 @@
              nrcond= -1;
           if(tolock)            /* clear temporary buffer for lockfile name */
              free(tolock);
-          for(i=maxindex(flags);i;i--)                   /* clear the flags */
-             flags[i]=0;
+          bbzero(flags,maxindex(flags));                 /* clear the flags */
           for(tolock=0,locknext=0;;)
            { chp=skpspace(chp);
              switch(i= *chp++)

I believe there's another fix out there that simply sets "flags[0]=0",
after the existing loop, as opposed to replacing the loop with bbzero.

HTH,
-mdp


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail