>===== Original Message From Marshal Newrock <[EMAIL PROTECTED]> =====
>On Mon, 1 Sep 2003, Jason Stubbs wrote:
>
>> The only other thing which I haven't had time to really check into yet - 
too
>> much time spent reading man pages! - is that it seems 1 element of 
@bodytext
>> has more than one line of text; that is to say, each of element of 
@bodytext
>> has >=1 newline. This results in @bodytext[1..5] returning about 30 lines 
of
>> text with the test email I was using. How can I use perl to get just 5 (or
>> 10) lines of text?
>
>The problem here is you have to define a "line".  A line of email can have
>up to 1000 (I think) characters.  Postfix will split the line at 990
>characters by default.  And then there's all the extra information added
>by using HTML.
 
All the extra HTML information is removed by the script already - except for 
the stylesheet 
information in certain situations due to the bug. To be more specific about my 
question 
above, what I want to do is:
 
@sometext = ("text\n\with\nmore\nthan\none\nnewline\n", 
"some\nother\nline\n"); 
@newtext = ("text\n", "with\n", "more\n", "than\n", "one\n", "newline\n", 
"some\n", 
"other\n", "line\n"); 
#Do something magic to @sometext here to make it turn into @newtext

 
Probably have to write a routine to do searches of \n to make a new array and 
then 
replace the old one with it, right? I was thinking that it would be a little 
slow like that, 
however, and was wondering if there was some better way.
 
Regards, 
Jason

 
-----------------------------------------------------
                     Shanje.NET
 The webmaster's 1st choice for Windows 2003 Hosting
               http://www.Shanje.NET/
-----------------------------------------------------


--
[EMAIL PROTECTED] mailing list

Reply via email to