In comp.unix.shell, Lew Pitcher <
lew.p...@digitalfreehold.ca> wrote:
> Kenny McCormack wrote:
>> Speaking as a long time user of procmail - and one who has gotten
>> acclimated to its many quirks - I can say that the only way to know the
>> answer to your question is to test it and see. procmail is just plain
>> buggy in some respects, and you just have to learn to live with this.
I find that is very rarely the case. The documentation is very poor in
some places,and the syntax is a nightmare, but buggy to the point of try
it and see only, no.
>> I've read somewhere that the code has become unmaintainable, so whatever
>> bugs are there will remain there for eternity.
The code is a nightmare to work with, eschewing every standard syntax
style, C with minimal white space, few comments, repeated use of
`goto`s, many functions that work on substring plus length instead of C
strings. I asked around in comp.lang.c if anyone knew a pretty printer
that could cope with it and got no good responses.
Here's a short sample function:
struct field**addfield(pointer,text,totlen)struct field**pointer;
const char*const text;const size_t totlen; /* add field to a linked list */
{ register struct field*p,**pp;int idlen;
for(pp=pointer;*pp;pp= &(*pp)->fld_next); /* skip to the end of the list */
(*pp=p=malloc(FLD_HEADSIZ+totlen))->fld_next=0;idlen=breakfield(text,totlen);
p->id_len=idlen>0?idlen:pp==&rdheader?0:-idlen; /* copy contents */
tmemmove(p->fld_text,text,p->Tot_len=totlen);
return pp;
}
With some effort I made the procmail helper tool formail able to decode
MIME-encoded words in headers, but never got that working in procmail
proper:
https://github.com/Eli-the-Bearded/procmail-formail
> Apparently, while procmail development went dormant for over a decade,
> it has restarted. In May 2020, Stephen R. van den Berg resumed
> development of procmail and released v3.24 in Februry 2022.
Huh, I did not know that.
Snorted at tag "Two decades of fixes". I see that warrants a version
number bump from 3.22 to 3.24.
Elijah
------
has been using procmail well over two decades