Thread View: news.software.readers
19 messages
19 total messages
Started by Thomas Stroesslin
Tue, 23 May 2000 00:00
slrn and wrapping long header lines
Author: Thomas Stroesslin
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
25 lines
1282 bytes
1282 bytes
sometimes when i do a follow-up, eg. the References: header line is longer than 80 chars (of course). in .slrnrc: set wrap_flags 7 does that affect only the wrap when displaying, or when posting? WHEN does slrn wrap the article? only when reading? or when posting? headers shouldn't be wrapped, should they? so how do i make slrn not to comlain about long header lines? are the answers to my questions in the doc/faq? (that doesn't mean that i haven't read them, i just didn't find anything about that ;-)) cheers, tom --------------------------------------- T. Stroesslin DI-MANTRA (INF 130) EPFL
Re: slrn and wrapping long header lines
Author: Eric Edwards
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
22 lines
1709 bytes
1709 bytes
On 23 May 2000 10:09:10 GMT, Thore Tams <t.tams@gmx.de> wrote: >Thomas Stroesslin <thomas.stroesslin@epfl.ch> schrieb: >> sometimes when i do a follow-up, eg. the References: header line is >> longer than 80 chars (of course). > >The References: header line may be up to 998 characters long >IIRC. I don't think there is a limit, so long as you use continuations. But slrn doesn't use continuations and NNTP limits single lines to no more than 1000 characters. In the past, possibly with an older version of Slrn, I have encountered cases where I had to manually edit the References line in order to post. The line exceeded 1000 characters and Slrn would neither break up it up into multiple lines with continuations or delete any message id's. -- Real courtesy requires human effort and understanding. Never let your machine or your habit send courtesy copies.
Re: slrn and wrapping long header lines
Author: Martijn van Buul
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
28 lines
1754 bytes
1754 bytes
It occurred to me that Thomas Stroesslin wrote in news.software.readers:
> sometimes when i do a follow-up, eg. the References: header line is
> longer than 80 chars (of course).
>
> in .slrnrc:
> set wrap_flags 7
> does that affect only the wrap when displaying, or when posting?
wrap_flags only affects how the article is displayed. Slrn does not wrap
before sending an article to your editor, nor does it wrap things
before posting it.
> headers shouldn't be wrapped, should they?
Headers may be wrapped. RFC 1036(?) (Could have been 822 too..) describes
a method for this. That said, agents should not wrap when there is no
need for it.
> so how do i make slrn not to comlain about long header lines?
Slrn does not complain about long header lines. SLRN only complains about
long lines in the *body*, not in the header.
--
Martijn van Buul - Pino@dohd.cx - http://www.stack.nl/~martijnb/
Visit OuterSpace: mud.stack.nl 3333
Re: slrn and wrapping long header lines
Author: Thomas Stroesslin
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
18 lines
1379 bytes
1379 bytes
>> so how do i make slrn not to comlain about long header lines? > >Slrn does not complain about long header lines. SLRN only complains about >long lines in the *body*, not in the header. hmm, i use pico to edit my postings. while editing, i see the headers, and they are too long. when i save and get back to slrn to post, slrn tells me that a specific line is too long, and when i check, it is the header line "References: ...". so it IS the header, NOT the body (which i wrap to 72 chars anyway). --------------------------------------- T. Stroesslin DI-MANTRA (INF 130) EPFL
Re: slrn and wrapping long header lines
Author: Thomas Stroesslin
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
27 lines
1807 bytes
1807 bytes
>> hmm, i use pico to edit my postings. while editing, i see the headers, >> and they are too long. when i save and get back to slrn to post, slrn >> tells me that a specific line is too long, and when i check, it is the >> header line "References: ...". so it IS the header, NOT the body (which >> i wrap to 72 chars anyway). > >Hmm.. > >I just tested this (slrn 0.9.6.2, with pico 3.0), follow-upping to a posting >in a massive flamewar (The reference line was 848 characters, FYI). Slrn >did not complain. > >You don't accidently add an empty line to your headers? That turns the >rest of the header into body, causing the symptoms you just described.. in fact the problem has gone. i have changed so many (other) things at the same time that i don't know what happened. never mind, it works now, thx tom --------------------------------------- T. Stroesslin DI-MANTRA (INF 130) EPFL
Re: slrn and wrapping long header lines
Author: Thore Tams
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
41 lines
1734 bytes
1734 bytes
Thomas Stroesslin <thomas.stroesslin@epfl.ch> schrieb: > sometimes when i do a follow-up, eg. the References: header line is > longer than 80 chars (of course). The References: header line may be up to 998 characters long IIRC. > in .slrnrc: > set wrap_flags 7 > does that affect only the wrap when displaying, or when posting? This is for displaying only. > WHEN does slrn wrap the article? only when reading? or when posting? slrn wraps the article when displaying it. The article to be posted should be wrapped by your editor. > headers shouldn't be wrapped, should they? No, but slrn should take care of the length of the References: line. > so how do i make slrn not to comlain about long header lines? Is it really slrn complaining or is it your news server? You might want to try removing entries from the References: line. But don't touch the first (left) entry or the last few (right) entries. Insert an additional space where you removed the entries. eg. References: <a> <b> <c> <d> <e> <f> becomes References: <a> <e> <f> Thore
Re: slrn and wrapping long header lines
Author: J. B. Moreno
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
21 lines
1631 bytes
1631 bytes
Thomas Stroesslin <thomas.stroesslin@epfl.ch> wrote: > in fact the problem has gone. i have changed so many (other) things at > the same time that i don't know what happened. never mind, it works now, > thx > > tom > > --------------------------------------- > T. Stroesslin > DI-MANTRA (INF 130) > EPFL Well, while you're changing things -- how about adding or letting slrn add, a real sigdash (a line consisting of just "-- " without the quotes). -- John B. Moreno
Re: slrn and wrapping long header lines
Author: Martijn van Buul
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
26 lines
1945 bytes
1945 bytes
It occurred to me that Thomas Stroesslin wrote in news.software.readers:
> >> so how do i make slrn not to comlain about long header lines?
> >
> >Slrn does not complain about long header lines. SLRN only complains about
> >long lines in the *body*, not in the header.
>
> hmm, i use pico to edit my postings. while editing, i see the headers,
> and they are too long. when i save and get back to slrn to post, slrn
> tells me that a specific line is too long, and when i check, it is the
> header line "References: ...". so it IS the header, NOT the body (which
> i wrap to 72 chars anyway).
Hmm..
I just tested this (slrn 0.9.6.2, with pico 3.0), follow-upping to a posting
in a massive flamewar (The reference line was 848 characters, FYI). Slrn
did not complain.
You don't accidently add an empty line to your headers? That turns the
rest of the header into body, causing the symptoms you just described..
--
Martijn van Buul - Pino@dohd.cx - http://www.stack.nl/~martijnb/
Visit OuterSpace: mud.stack.nl 3333
Re: slrn and wrapping long header lines
Author: Martijn van Buul
Date: Thu, 25 May 2000 00:00
Date: Thu, 25 May 2000 00:00
32 lines
2297 bytes
2297 bytes
It occurred to me that s. keeling wrote in news.software.readers:
> On 23 May 2000 11:23:20 GMT, Martijn van Buul \
> <pino+news_software_readers@dohd.cx> wrote:
> > Slrn does not complain about long header lines. SLRN only complains about
> > long lines in the *body*, not in the header.
>
> Namely the "On 23 May 2000 11:23:20 GMT, Martijn ..." I get called on
> that everytime. Perhaps a workaround is to show real name, not name +
> <pino+news...
The attribution is part of the body, not on the header. Slrn does not wrap
that line, so basicly, you've got 4 options:
1) set 'followup' to something which won't generate such long lines
2) Insert explicit newlines (\n) at points where a wrap should occur.
can lead to silly attributions, though.
3) Wrap manually
4) Make your editor wrap that specific line for you. I use VIM, and my
my editor_command is "vim '%s' +%d -s /home/martijnb/.slrn/gq$",
with /home/martijnb/.slrn/gq$ a file containing only the string 'gq$'
I know that this is not nice, but it was the only way I could find to have
VIM execute some keystrokes at startup (-c gq$ doesn't work, since -c only
accepts Genuine Ed (tm) commands. Anyway, this wraps the attribution line
(and only the attribution line).
--
Martijn van Buul - Pino@dohd.cx - http://www.stack.nl/~martijnb/
Visit OuterSpace: mud.stack.nl 3333
Re: slrn and wrapping long header lines
Author: J. B. Moreno
Date: Thu, 25 May 2000 00:00
Date: Thu, 25 May 2000 00:00
40 lines
2895 bytes
2895 bytes
Martijn van Buul <pino+news_software_readers@dohd.cx> wrote: > It occurred to me that s. keeling wrote in news.software.readers: > > On 23 May 2000 11:23:20 GMT, Martijn van Buul \ > > <pino+news_software_readers@dohd.cx> wrote: > > > > Slrn does not complain about long header lines. SLRN only complains about > > > long lines in the *body*, not in the header. > > > > Namely the "On 23 May 2000 11:23:20 GMT, Martijn ..." I get called on > > that everytime. Perhaps a workaround is to show real name, not name + > > <pino+news... > > The attribution is part of the body, not on the header. Slrn does not wrap > that line, so basicly, you've got 4 options: > > 1) set 'followup' to something which won't generate such long lines > 2) Insert explicit newlines (\n) at points where a wrap should occur. > can lead to silly attributions, though. > 3) Wrap manually > 4) Make your editor wrap that specific line for you. I use VIM, and my > my editor_command is "vim '%s' +%d -s /home/martijnb/.slrn/gq$", > with /home/martijnb/.slrn/gq$ a file containing only the string 'gq$' > > I know that this is not nice, but it was the only way I could find to have > VIM execute some keystrokes at startup (-c gq$ doesn't work, since -c only > accepts Genuine Ed (tm) commands. Anyway, this wraps the attribution line > (and only the attribution line). I wonder if you could change this using slang? It wouldn't be that hard to wrap the line if it needed it -- simply insert a newline in the appropriate spot(s) if it exceeded the line length (this is better than having the editor do it because the editor will try to keep the line at a certain length, which may not be appropriate depending upon how your attribution looks). -- John B. Moreno
Re: slrn and wrapping long header lines
Author: s. keeling
Date: Thu, 25 May 2000 00:00
Date: Thu, 25 May 2000 00:00
19 lines
1632 bytes
1632 bytes
On 23 May 2000 11:23:20 GMT, Martijn van Buul \
<pino+news_software_readers@dohd.cx> wrote:
> It occurred to me that Thomas Stroesslin wrote in news.software.readers:
> > sometimes when i do a follow-up, eg. the References: header line is
> > longer than 80 chars (of course).
>
> Slrn does not complain about long header lines. SLRN only complains about
> long lines in the *body*, not in the header.
Namely the "On 23 May 2000 11:23:20 GMT, Martijn ..." I get called on
that everytime. Perhaps a workaround is to show real name, not name +
<pino+news...
--
keelingNO@SPAM.spots.ab.ca (Stephen) TopQuark Software & Serv. Enquire within.
[sed 's/NO@SPAM./@/g'] Contract programmer, server bum.
Any technology distinguishable from magic is insufficiently advanced.
Re: slrn and wrapping long header lines
Author: J. B. Moreno
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
32 lines
2225 bytes
2225 bytes
Martijn van Buul <pino+news_software_readers@dohd.cx> wrote: > It occurred to me that J. B. Moreno wrote in news.software.readers: > > (this is better than having the editor do it because the editor will try to > > keep the line at a certain length, which may not be appropriate depending > > upon how your attribution looks). > > Ehm? Why would a newsclient be better in wrapping a certain text than a > text editor? It's not just "text" it's the attribution, which is a little different. Take for example: In article <quitelongidtakinguplotsofspace> J. B. Moreno <planb@newsreaders.com> wrote: Ok, that's how the editor breaks it up. Now, the newsclient, knowing that there is a certain structure to the attribution can instead "break" that as: In article <quitelongidtakinguplotsofspace> J. B. Moreno <planb@newsreaders.com> wrote: This isn't perfect, lots of pine id's are quite simply too long to put on a line with anything else, but it's at least better most of the time. -- John B. Moreno
Re: slrn and wrapping long header lines
Author: Martijn van Buul
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
13 lines
1460 bytes
1460 bytes
It occurred to me that J. B. Moreno wrote in news.software.readers:
> (this is better than having the editor do it because the editor will try to
> keep the line at a certain length, which may not be appropriate depending
> upon how your attribution looks).
Ehm? Why would a newsclient be better in wrapping a certain text than a
text editor?
--
Martijn van Buul - Pino@dohd.cx - http://www.stack.nl/~martijnb/
Visit OuterSpace: mud.stack.nl 3333
Re: slrn and wrapping long header lines
Author: Dawn Owens-Nicholson
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
13 lines
1663 bytes
1663 bytes
Martijn van Buul wrote: > Ehm? Why would a newsclient be better in wrapping a certain text than a > text editor? Because the line to wrap is being generated by the newsclient. It would be better to have slrn (via S-Lang) put an already wrapped attribution line into the followup. This is certainly feasible to do with a macro, one that executes just before and after editing a followup or reply (just before to put the newlines in the right place to accomplish the wrapping; just after to reset the attribution setting to what it was before the wrapping).
Re: slrn and wrapping long header lines
Author: Martijn van Buul
Date: Fri, 26 May 2000 00:00
Date: Fri, 26 May 2000 00:00
26 lines
2122 bytes
2122 bytes
It occurred to me that Dawn Owens-Nicholson wrote in news.software.readers:
> Martijn van Buul wrote:
> > Ehm? Why would a newsclient be better in wrapping a certain text than a
> > text editor?
>
> Because the line to wrap is being generated by the newsclient. It would be
> better to have slrn (via S-Lang) put an already wrapped attribution line
> into the followup.
That is a "clean up your own garbage" argument I fully support, but which
has nothing to do with the question why a newsclient could be wrapping
-better- than an editor.
> This is certainly feasible to do with a macro, one that
> executes just before and after editing a followup or reply (just before to
> put the newlines in the right place to accomplish the wrapping;
> just after to reset the attribution setting to what it was before the
> wrapping).
Hmm. I kind of overlooked the followup_ and reply_hook(s)..
--
Martijn van Buul - Pino@dohd.cx - http://www.stack.nl/~martijnb/
Visit OuterSpace: mud.stack.nl 3333
Re: slrn and wrapping long header lines
Author: Dawn Owens-Nicholson
Date: Sat, 27 May 2000 00:00
Date: Sat, 27 May 2000 00:00
12 lines
1720 bytes
1720 bytes
Martijn van Buul wrote: > That is a "clean up your own garbage" argument I fully support, but which > has nothing to do with the question why a newsclient could be wrapping > -better- than an editor. The newsreader knows what the elements are in an attribution, the editor looks at it as just another line of text. This allows the newsreader to wrap it in a way that makes more sense than the editor. Of course if all you want are wrapping based on whitespace separated words, any wrapping agent will do just fine.
Re: slrn and wrapping long header lines
Author: J. B. Moreno
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
33 lines
2499 bytes
2499 bytes
Thomas Stroesslin <thomas.stroesslin@epfl.ch> wrote: > >> Ehm? Why would a newsclient be better in wrapping a certain text than a > >> text editor? > > > > >Take for example: > > > >In article <quitelongidtakinguplotsofspace> J. B. Moreno > ><planb@newsreaders.com> wrote: > > or even simpler: take the body of a posting which has no wraps (i think > netscape doesn't always wrap?). if you follow-up and the editor wraps, > there would be only one quoting char (by slrn), and the editor would > wrap without adding more quoting chars. > > in fact that happened to me with slrn. can slrn to be set up to wrap, > and then quote, and only then call the editor? No, this is precisely the sort of thing that the editor can handle better than the newsreader -- proper wrapping requires either something like format=flowed or user interaction. But wrapping the attribution isn't comparable to a generalized wrapping function -- it is specialized, because of the structure. In fact the situation is reversed from the normal -- instead of the editor doing a better job because of user interaction, the newsreader can do a better job because it knows the structure. -- John B. Moreno
Re: slrn and wrapping long header lines
Author: Martijn van Buul
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
21 lines
1956 bytes
1956 bytes
It occurred to me that Thomas Stroesslin wrote in news.software.readers:
> or even simpler: take the body of a posting which has no wraps (i think
> netscape doesn't always wrap?). if you follow-up and the editor wraps,
> there would be only one quoting char (by slrn), and the editor would
> wrap without adding more quoting chars.
A decent editor can wrap while maintaining the formatting. For instance,
VIM would insert quoting charachters where appropriate. That's not
a unique feature of VIM - there are more editors that can do so.
> in fact that happened to me with slrn. can slrn to be set up to wrap,
> and then quote, and only then call the editor?
AFAIK, no.
--
Martijn van Buul - Pino@dohd.cx - http://www.stack.nl/~martijnb/
Visit OuterSpace: mud.stack.nl 3333
Re: slrn and wrapping long header lines
Author: Thomas Stroesslin
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
23 lines
1678 bytes
1678 bytes
>> Ehm? Why would a newsclient be better in wrapping a certain text than a >> text editor? > >Take for example: > >In article <quitelongidtakinguplotsofspace> J. B. Moreno ><planb@newsreaders.com> wrote: or even simpler: take the body of a posting which has no wraps (i think netscape doesn't always wrap?). if you follow-up and the editor wraps, there would be only one quoting char (by slrn), and the editor would wrap without adding more quoting chars. in fact that happened to me with slrn. can slrn to be set up to wrap, and then quote, and only then call the editor? -- T. Stroesslin DI-MANTRA (INF 130) EPFL
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