Thread View: news.software.nn
9 messages
9 total messages
Started by Georg Schwarz
Mon, 06 Jan 1997 00:00
Pico and nn: cutting off long lines?
Author: Georg Schwarz
Date: Mon, 06 Jan 1997 00:00
Date: Mon, 06 Jan 1997 00:00
21 lines
1649 bytes
1649 bytes
I'm using Pico 2.9 (because unlike many other editors it does automatic line wrapping) as my default editor for nn 6.5.1. Now when I'm writing an article which contains a header line longer than 255 or 256 characters (I'm not exactly sure) this line gets cut off, meaning only the first 255 or 256 characters are imported into the editor. Such a situation can occur for exaple for the References: line when doing a followuop to a faily long thread. Needless to say it's not nice to have that line being chopped off. What can I do about it short of using a different editor? Maybe recompiling pine? Is there any version of pine which does not have a fixed maximum of characters per line? What do the RFCs say about the maximum length a Usenet news or email header line is supposed to have? -- Georg Schwarz (schwarz@physik.tu-berlin.de, kuroi@cs.tu-berlin.de, PGP 2.6ui) Institut f�r Theoretische Physik +49 30 314-24254 FAX -21130 IRC kuroi Technische Universit�t Berlin http://home.pages.de/~schwarz/
Re: Pico and nn: cutting off long lines?
Author: David L Miller
Date: Mon, 06 Jan 1997 00:00
Date: Mon, 06 Jan 1997 00:00
46 lines
2435 bytes
2435 bytes
On 6 Jan 1997, Sven Guckes wrote: > schwarz@physik.tu-berlin.de (Georg Schwarz): > > I'm using Pico 2.9 (because [...] it does automatic line wrapping) [*] as my > > default editor for nn 6.5.1. Now when I'm writing an article which contains > > a header line longer than 255 characters [...] this line gets cut off, so > > only the first 255 characters are imported into the editor. > Actually, the long line is split onto the next line on input. It can handle any (?) length line on output. If you reassemble the line in pico, it will get written out correctly. > > Maybe recompiling pine? Is there any version of pine > > which does not have a fixed maximum of characters per line? > > Pine does not have a built-in editor - it uses pico. Not quite correct. Both Pine and Pico use the same libpico library, but they are separate programs. It would be possible to replace libpico and compile Pine with a different editor, but I don't know anyone who has tried this... > Changing PINE will have no effect - it's the editor you must change! > > > What do the RFCs say about the maximum length a Usenet news > > or email header line is supposed to have? > > Nothing (I think). => Any length should be allowed. The RFCs say you need to handle 1000 characters. --DLM -- |\ | |\/| David L. Miller dlm@cac.washington.edu (206) 685-6240 |/ |_ | | Software Engineer, Pine Development Team (206) 685-4045 (FAX) University of Washington, Networks & Distributed Computing, Box 354841 4545 15th Ave NE, Seattle WA 98105, USA Stardate: [-31]8690.43
Re: Pico and nn: cutting off long lines?
Author: Sven Guckes
Date: Tue, 07 Jan 1997 00:00
Date: Tue, 07 Jan 1997 00:00
31 lines
1956 bytes
1956 bytes
dlm@cac.washington.edu (David L Miller): [pico cuts lines after byte 255] > Actually, the long line is split onto the next line on input. > It can handle any (?) length line on output. Is that a question? ;-) > If you reassemble the line in pico, it will get written out correctly. Sure, you just keep in mind which lines were cut up and fix them. Somehow I don't think this is ll become a favourite feature of PICO. > > Pine does not have a built-in editor - it uses pico. > Not quite correct. Both Pine and Pico use the same libpico library, but > they are separate programs. It would be possible to replace libpico and > compile Pine with a different editor, but I don't know anyone who has tried > this... Maybe the kitchen-sink people have done that? Naah - they already have turned their editor into a newsreader. > > > What do the RFCs say about the maximum length a Usenet news > > > or email header line is supposed to have? > The RFCs say you need to handle 1000 characters. Which RFC says that? Please give a reference! Sven [too lazy to search himself]
Re: Pico and nn: cutting off long lines?
Author: Bernd Felsche
Date: Tue, 07 Jan 1997 00:00
Date: Tue, 07 Jan 1997 00:00
34 lines
2022 bytes
2022 bytes
In <5artas$85k@brachio.zrz.TU-Berlin.DE>
schwarz@physik.tu-berlin.de (Georg Schwarz) writes:
>I'm using Pico 2.9 (because unlike many other editors it does automatic
>line wrapping) as my default editor for nn 6.5.1.
>Now when I'm writing an article which contains a header line longer than
>255 or 256 characters (I'm not exactly sure) this line gets cut off,
>meaning only the first 255 or 256 characters are imported into the editor.
>Such a situation can occur for exaple for the References: line when doing
>a followuop to a faily long thread. Needless to say it's not nice to have
>that line being chopped off.
>What can I do about it short of using a different editor? Maybe
>recompiling pine? Is there any version of pine which does not have a fixed
>maximum of characters per line?
>What do the RFCs say about the maximum length a Usenet news or email
>header line is supposed to have?
AFAIK, no maximum length is specified by any RFC.
Pico is a bit stupid about line-wrapping. It should only be
wrapping the lines you type ... but that's probably too sensible.
But you never know; maybe there's an option in pico.
If pico truncates the lines as they are read in, then that is a
case of pico brain-death.
--
Bernd Felsche {speaking for himself}
MetaPro Systems Pty Ltd, 130 Fauntleroy Avenue,
Redcliffe, Western Australia 6104
Phone: +61 9 479 3722 Fax: +61 9 479 3720
Re: Pico and nn: cutting off long lines?
Author: Sven Guckes
Date: Tue, 07 Jan 1997 00:00
Date: Tue, 07 Jan 1997 00:00
15 lines
1322 bytes
1322 bytes
bernie@metapro.com.au (Bernd Felsche): > [...] standard vi has a wrap-margin setting. > "set wm=10" will wrap 10 characters from the end of line - > allowing you to be requoted ad nauseum in followups without > the line wrapping around annoyingly. But then you will get different results when you resize the screen/window of Vi while it is running when the "last character" have moved position. That's why I find VIM's "textwidth" variable so handy - you can set an explicit and to a line. :-) Sven
Re: Pico and nn: cutting off long lines?
Author: Bernd Felsche
Date: Tue, 07 Jan 1997 00:00
Date: Tue, 07 Jan 1997 00:00
29 lines
1861 bytes
1861 bytes
In <slrn5d30ov.9hf.guckes@euler.math.fu-berlin.de>
guckes@euler.math.fu-berlin.de (Sven Guckes) writes:
>schwarz@physik.tu-berlin.de (Georg Schwarz):
>> I'm using Pico 2.9 (because [...] it does automatic line wrapping) [*] as my
>> default editor for nn 6.5.1. Now when I'm writing an article which contains
>> a header line longer than 255 characters [...] this line gets cut off, so
>> only the first 255 characters are imported into the editor.
>Yup, that's one of PICO's MISfeatures.
>See my page http://www.math.fu-berlin.de/~guckes/pico/
>My suggestion is to trash PICO and use a good[tm] editor - VIM, eg:
>[*] VIM does text wrapping - simple "set tw=79" in your vimrc.
>My vimrc should get you started fast:
> http://www.math.fu-berlin.de/~guckes/vim/vimrc
VIM *is* very nice. However, I should add that standard vi has a
wrap-margin setting. "set wm=10" will wrap 10 characters from the end
of line - allowing you to be requoted ad nauseum in followups without
the line wrapping around annoyingly.
--
Bernd Felsche {speaking for himself}
MetaPro Systems Pty Ltd, 130 Fauntleroy Avenue,
Redcliffe, Western Australia 6104
Phone: +61 9 479 3722 Fax: +61 9 479 3720
Re: Pico and nn: cutting off long lines?
Author: Bernd Felsche
Date: Wed, 08 Jan 1997 00:00
Date: Wed, 08 Jan 1997 00:00
28 lines
1834 bytes
1834 bytes
In <slrn5d4b23.ajg.guckes@euler.math.fu-berlin.de>
guckes@euler.math.fu-berlin.de (Sven Guckes) writes:
>bernie@metapro.com.au (Bernd Felsche):
>> [...] standard vi has a wrap-margin setting.
>> "set wm=10" will wrap 10 characters from the end of line -
>> allowing you to be requoted ad nauseum in followups without
>> the line wrapping around annoyingly.
>But then you will get different results when you resize the screen/window
>of Vi while it is running when the "last character" have moved position.
>That's why I find VIM's "textwidth" variable so handy -
>you can set an explicit and to a line. :-)
This is of course, correct. At the time when vi was "authored", the
only way to re-size your glass tty was with a very large hammer! It
does however handle re-sizing though doing so while preserving text
wrap requires one or two sacrificial goats.
I'm pleased to say that this is no longer necessary.
--
Bernd Felsche {speaking for himself}
MetaPro Systems Pty Ltd, 130 Fauntleroy Avenue,
Redcliffe, Western Australia 6104
Phone: +61 9 479 3722 Fax: +61 9 479 3720
Re: Pico and nn: cutting off long lines?
Author: Bill Wohler
Date: Wed, 08 Jan 1997 00:00
Date: Wed, 08 Jan 1997 00:00
21 lines
1583 bytes
1583 bytes
guckes@euler.math.fu-berlin.de (Sven Guckes) writes: >schwarz@physik.tu-berlin.de (Georg Schwarz): >> What do the RFCs say about the maximum length a Usenet news >> or email header line is supposed to have? >Nothing (I think). => Any length should be allowed. While I don't think that RFC 1036 (Usenet) mentions anything about header line length, RFC 821 (SMTP) limits all lines of a mail message to 1000 characters, including the carriage return/line-feed. It would be prudent to adhere to the RFC 821 and RFC 822 standards as news messages are often gatewayed to mailing lists or forwarded as mail. In fact, RFC 1036 is explicit in this regard with RFC 822. -- Bill Wohler <wohler@newt.com> ph: +1-415-854-1857 fax: +1-415-854-3195 Say it with MIME. Maintainer of comp.mail.mh and news.software.nn FAQs. If you're passed on the right, you're in the wrong lane.
Re: Pico and nn: cutting off long lines?
Author: Kristian Köhntopp
Date: Thu, 09 Jan 1997 00:00
Date: Thu, 09 Jan 1997 00:00
27 lines
1921 bytes
1921 bytes
Bill Wohler <wohler@newt.com> writes: > While I don't think that RFC 1036 (Usenet) mentions anything about > header line length, RFC 821 (SMTP) limits all lines of a mail message > to 1000 characters, including the carriage return/line-feed. It would > be prudent to adhere to the RFC 821 and RFC 822 standards as news > messages are often gatewayed to mailing lists or forwarded as mail. > In fact, RFC 1036 is explicit in this regard with RFC 822. Son-of-1036 addresses the issue of line lengths in articles. RFC 821, SMTP, and the NNTP RFC (don't know which number) limit the maximum line length that must be accepted by the transport protocol. Strictly speaking this is a bug in the spec, because the message formats themselves (RFC 822 for mail, RFC 1036 for news) do not include any such limitations, so conformant SMTP and NNTP are unable to transport conformant mail and news messages. Kristian -- Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897 "Eigentlich waere ich eher fuer die Einrichtung von de.soc.apathie, aber so wichtig ist mir das auch nicht..." -- ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads