Great Circle Associates Majordomo-Users
(June 2000)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Majordomo version for NT System or similar software?
From: John Poltorak <jp @ mail . eyup . org>
Date: Thu, 29 Jun 2000 12:31:14 +0100
To: Majordomo Users <majordomo-users @ GreatCircle . COM>
In-reply-to: <395ADBE4.A789F31D@netscape.com>; from Dan Liston on Thu, Jun 29, 2000 at 12:17:24AM -0500
References: <0iielsclnq8tkr5d0o64o82p2dprl4ldtg@4ax.com> <395783AE.50905987@netscape.com> <20000627211126.I430@mail.eyup.org> <395A606F.7992CC16@netscape.com> <20000629011007.G6752@eyup.org> <395ADBE4.A789F31D@netscape.com>

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:
Indexed By Date Previous: Digests
From: "Denton McGregor" <DMcGregor@investec.co.za>
Next: Re: Majordomo version for NT System or similar software?
From: Curtis Maurand <curtis@lamere.net>
Indexed By Thread Previous: Re: Majordomo version for NT System or similar software?
From: Dan Liston <dliston@netscape.com>
Next: Re: Majordomo version for NT System or similar software?
From: Curtis Maurand <curtis@lamere.net>

Google
 
Search Internet Search www.greatcircle.com