On Thu, Jun 29, 2000 at 12:17:24AM -0500, Dan Liston wrote:
> If you are good at perl, you might check the scripts for header
> parsing. On a message that does not contain an "approved:" header line,
> the message is supposed to begin "after" the first blank line. The unix
> version of text files contain only a line feed at the end of every line,
> where dos/windows (maybe OS/2) will expect an additional character of
> carrige return. If your temp file has a blank line with just a line
> feed character between the headers and the body, the OS may be supposing
> the next character to be the carrige return and ignoring it.
>
> I am not enough of a programmer or perl guru to answer your question,
> and have replied to you via the majordomo-users list for others to
> possibly benefit from your question, or even provide help where I can't.
I was combing through the code - not easy as T'm not a Perl
programmer, but I found the problem was due to the use of 'seek'.
In a number of instances a particular line is re-read. The position
of the read is determined by the current position and the length of
the last string. On systems such as OS/2, DOS, NT the current position
is one byte further along than on Unix because of the CRLF line ending.
Not sure how the code could be amended to make it platform indepedent.
Any suggestions would be appreciated.
> Dan Liston
>
> John Poltorak wrote:
> >
> > On Wed, Jun 28, 2000 at 03:30:39PM -0500, Dan Liston wrote:
> > > But you cannot take perl out of the equation. Majordomo is ALL perl
> > > scripts, with the exception of wrapper, which is an attempt at keeping
> > > those scripts in their own sandbox.
> >
> > Actually I'm quite close to having some of 1.94.5 working on OS/2
> > with very little in the way of changes. The only problem seems to
> > involve file locking.
> >
> > One minor hiccup is that I've just posted a msg to a list and the
> > recipients lose the first character of the msg although it appears
> > in full in the temporary file.
>
> --
> -- Dan Liston --------------------- dliston@netscape.com --
> -- Netscape Consultant ------------------ (605) 232-3170 --
> -- iPlanet E-Commerce Solutions, A Sun Netscape Alliance --
>
--
John
References:
|
|