procmail
[Top] [All Lists]

Re: procmail 3.10 dumping core on large address lists

1996-09-18 05:12:53
-----BEGIN PGP SIGNED MESSAGE-----

On Tue, 17 Sep 1996, Ken Marsh wrote:

When receiving e-mail that contains a lot of address in To: or Cc: ,
procmail dumps core. This continues until the message bounces. I  
get a "procmail.core' file in the Mail directory. Is this a known
problem? I used gcc to compile on BSDI BSD/OS 2.1.
 
It could be a limitation in your regexp library. According to the man 
page, procmail does not set any limitations to the length of the lines in 
a message. (It does limit the lines in the rcfiles to $LINEBUF)

Anyway, is there an easy way or rule that would allow me to maintain
a list of reject addresses, say in an external ASCII text file? My
egrep lines are getting quite long.

Yes, try something like this:

from=`formail -rxTo:` # extract sender's address
:0hi
| echo "$FROM" | egrep -f reject.file

Each line of the file reject.file contains one regular expression. If the 
sender's address matches one of them, mail processing stops here and the 
message is deleted.

- --
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>: Ph.D. 
student at ELIS -- TFCG / IMEC 
Home Page: http://www.elis.rug.ac.be/ELISgroups/tfcg/staff/gg.html 
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

I hate this damn machine, I wish they would sell it.
It never does what I want, But only what I tell it.




-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: pgp fingerprints in message headers

iQBVAwUBMj/mmXwHoCha5QR1AQHBWwH+OgrPUY5BpJ8qwKJJRltKriWdC+pHHOMD
jG/bQQwPKSqbzuIQVOkU8Tr2Yig6v8nYV7RLTC8jeZY1Xha/2C49Bw==
=CY1S
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>