procmail
[Top] [All Lists]

Re: Variable size limit?

1997-09-24 01:05:58
On Wed, 24 Sep 1997, era eriksson wrote:

On Tue, 23 Sep 1997 17:11:54 -0700 (MST), Wotan <wotan(_at_)netcom(_dot_)com>
wrote:
 > What I am trying to do is put some information into variables like so:
 > VAR1=|sed command

Judging from the Subject line, I'm guessing you are concerned that the
output from sed might grow too big to fit in a variable. 

Exactly  :)  Although I do plan to use cat and grep as well.

The way I
read the documentation for Procmail, there should in principle be no
hard limit other than the amount of virtual memory :-) but in
practice, of course, you're doomed as soon as the size exceeds LINEBUF
but that will hit you slightly later, when you want to say $VAR1.

This is what brought the question to mind.  Some of my test messages
generated output well above default LINEBUFF (what I use) with no problem.  
(8-9K characters stored).  

If that's not what you mean, Stevens contains a table with common
limits for several types of Unices. I can dig up the page number for
you if you like, but I have the book at home.

Cool.  That might proveuseful as well.  :)

--
A dozen, a gross, and a score,
Plus three times the square root of four,
        Divided by seven,
        Plus five time eleven,
Equals nine squared plus zero, no more.

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