🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
25 messages
25 total messages Started by Anthony Campbell Wed, 24 Feb 1999 00:00
slrn: how to modify headers in posts?
#46802
Author: Anthony Campbell
Date: Wed, 24 Feb 1999 00:00
20 lines
1372 bytes
When I either post or follow-up to messages, slrn puts things in the header
which don't seem to be wanted. Here it has Followup-To: , Keywords, and
Summary, and when I follow-up I get a long reference line (which slrn then
complains about) and also the above (blank) Follow-up To:

Where are these things being set? I can't see them either in .slrnrc or in
any of the docs. Can they, or should they, be eliminated?


Anthony

-- 
Anthony Campbell  -  running Linux Debian 2.0
acampbell@achc.demon.co.uk  http://www.achc.demon.co.uk

"The Moving Finger writes; and, having writ,
Moves on..."   - Edward Fitzgerald (Rubaiat of Omar Khayyam)


Re: slrn: how to modify headers in posts?
#46791
Author: John Moreno
Date: Wed, 24 Feb 1999 00:00
25 lines
1915 bytes
Christian Kurz <shorty@jupiter.rhein-neckar.de> wrote:

> Anthony Campbell <acampbell@achc.demon.co.uk> wrote:
> > When I either post or follow-up to messages, slrn puts things in the
> > header which don't seem to be wanted. Here it has Followup-To: ,
> > Keywords, and Summary, and when I follow-up I get a long reference line
> > (which slrn then complains about) and also the above (blank) Follow-up
> > To:
> 
> They are coded in the source, so you need to modify the source. In your
> posting is no header named Keywords or Summary, so slrn drops this
> headers, because they are empty. If the Reference-Line is longer than
> 995 chars slrn complains about it, because this is the maximumm
> gnksa-recommendation. So you need to drop some mids and then you can
> post the article. Maybe this can be done automatically, but I haven't
> found a automatical solution. 

slrn is supposed to be dropping the id's automatically -- but it didn't
do so in 9.4.3, so what is probably happening is that his SERVER is
complaining and slrn is just passing the message along.

-- 
John Moreno

Re: slrn: how to modify headers in posts?
#46815
Author: Anthony Campbell
Date: Wed, 24 Feb 1999 00:00
47 lines
2936 bytes
On Wed, 24 Feb 1999 14:40:55 GMT, Phil Boutros <philb@total.net> wrote:
>On Wed, 24 Feb 1999 10:27:28 GMT, Anthony Campbell
><acampbell@achc.demon.co.uk> wrote:
>>When I either post or follow-up to messages, slrn puts things in the header
>>which don't seem to be wanted. Here it has Followup-To: , Keywords, and
>>Summary, and when I follow-up I get a long reference line (which slrn then
>>complains about) and also the above (blank) Follow-up To:
>>
>>Where are these things being set? I can't see them either in .slrnrc or in
>>any of the docs. Can they, or should they, be eliminated?
>
>	First of all, do not panic.  The "Followup-To:" header is in case
>you want replies to your post to go to a specific newsgroup (for example,
>if you post the original to many newsgroups, but want to continue the
>discussion in only one of them).  If you leave it blank, it won't be sent,
>AFAIK.  For example, I see no such header in your post.   I don't know how
>come you have "Summary" and "Keywords", because I have no such thing in
>mine, although it may have been a default under 0.9.4.6.  You may want to
>consider upgrading to 0.9.5.4
>
I shall upgrade later, but I have the .deb version and will probably do it
as part of a major upgrade when the next version of debian comes out.


>	The "Reference" line is in order to tell threaded newsreaders (such
>as slrn, and almost all other "modern" newsreaders) what you are replying
>to, so it can put the message in the proper thread.  SLRN should *not*
>complain about it being over 80 characters long, since it is a header.  Do
>you, perhaps have any blank lines before your headers (or before this
>particular header)?  You shouldn't.  What do you use for an editor?
>
>

I think you may be right about the blank lines; I made sure there weren't
this time and it didn't complain. Thanks for this tip.

Anthony

-- 
Anthony Campbell  -  running Linux Debian 2.0
acampbell@achc.demon.co.uk  http://www.achc.demon.co.uk

"The Moving Finger writes; and, having writ,
Moves on..."   - Edward Fitzgerald (Rubaiat of Omar Khayyam)


Re: slrn: how to modify headers in posts?
#46818
Author: Christian Kurz
Date: Wed, 24 Feb 1999 00:00
22 lines
1789 bytes
Anthony Campbell <acampbell@achc.demon.co.uk> wrote:
> When I either post or follow-up to messages, slrn puts things in the header
> which don't seem to be wanted. Here it has Followup-To: , Keywords, and
> Summary, and when I follow-up I get a long reference line (which slrn then
> complains about) and also the above (blank) Follow-up To:

They are coded in the source, so you need to modify the source. In your
posting is no header named Keywords or Summary, so slrn drops this
headers, because they are empty. If the Reference-Line is longer than
995 chars slrn complains about it, because this is the maximumm
gnksa-recommendation. So you need to drop some mids and then you can
post the article. Maybe this can be done automatically, but I haven't
found a automatical solution. 

Ciao
     Christian
-- 
Menschen, die blo� arbeiten, finden keine Zeit zum Tr�umen. Nur wer 
tr�umt gelangt zur Weisheit.                   SMOHALLA (Nez Perce)
/* http://www.rhein-neckar.de/~jupiter/                Christian Kurz */

Re: slrn: how to modify headers in posts?
#46821
Author: Phil Boutros
Date: Wed, 24 Feb 1999 00:00
34 lines
2463 bytes
On Wed, 24 Feb 1999 10:27:28 GMT, Anthony Campbell
<acampbell@achc.demon.co.uk> wrote:
>When I either post or follow-up to messages, slrn puts things in the header
>which don't seem to be wanted. Here it has Followup-To: , Keywords, and
>Summary, and when I follow-up I get a long reference line (which slrn then
>complains about) and also the above (blank) Follow-up To:
>
>Where are these things being set? I can't see them either in .slrnrc or in
>any of the docs. Can they, or should they, be eliminated?

	First of all, do not panic.  The "Followup-To:" header is in case
you want replies to your post to go to a specific newsgroup (for example,
if you post the original to many newsgroups, but want to continue the
discussion in only one of them).  If you leave it blank, it won't be sent,
AFAIK.  For example, I see no such header in your post.   I don't know how
come you have "Summary" and "Keywords", because I have no such thing in
mine, although it may have been a default under 0.9.4.6.  You may want to
consider upgrading to 0.9.5.4

	The "Reference" line is in order to tell threaded newsreaders (such
as slrn, and almost all other "modern" newsreaders) what you are replying
to, so it can put the message in the proper thread.  SLRN should *not*
complain about it being over 80 characters long, since it is a header.  Do
you, perhaps have any blank lines before your headers (or before this
particular header)?  You shouldn't.  What do you use for an editor?


Phil
-- 
AH#61  Wolf#14  KoB/CoT#75
http://www.total.net/~philb            philb@total.net
"Power To The People" - BPP      EKIII will ride with me again.

Re: slrn: how to modify headers in posts?
#46823
Author: John Moreno
Date: Wed, 24 Feb 1999 00:00
28 lines
2039 bytes
Phil Boutros <philb@total.net> wrote:

> On Wed, 24 Feb 1999 10:27:28 GMT, Anthony Campbell
> <acampbell@achc.demon.co.uk> wrote:
> >When I either post or follow-up to messages, slrn puts things in the header
> >which don't seem to be wanted. Here it has Followup-To: , Keywords, and
> >Summary, and when I follow-up I get a long reference line (which slrn then
> >complains about) and also the above (blank) Follow-up To:
> >
> >Where are these things being set? I can't see them either in .slrnrc or in
> >any of the docs. Can they, or should they, be eliminated?
> 
-snip-
>       The "Reference" line is in order to tell threaded newsreaders (such
> as slrn, and almost all other "modern" newsreaders) what you are replying
> to, so it can put the message in the proper thread.  SLRN should *not*
> complain about it being over 80 characters long, since it is a header.  Do
> you, perhaps have any blank lines before your headers (or before this
> particular header)?  You shouldn't.  What do you use for an editor?

He's not using the latest version of slrn (which trims the References
header to under 1000) so maybe it's not slrn complaining but the
newsserver when he goes to post?

-- 
John Moreno

Re: slrn: how to modify headers in posts?
#46832
Author: Heikki Kantola
Date: Wed, 24 Feb 1999 00:00
26 lines
1926 bytes
Anthony Campbell <acampbell@achc.demon.co.uk> informed
news.software.readers with the following:
>When I either post or follow-up to messages, slrn puts things in the header
>which don't seem to be wanted. Here it has Followup-To: , Keywords, and
>Summary, and when I follow-up I get a long reference line (which slrn then
>complains about) and also the above (blank) Follow-up To:

You can get rid of those complaints by upgrading to the latest version, 
which weeds References:-line sensibly when it exceeds certain length 
(998 characters IIRC).

>Where are these things being set? I can't see them either in .slrnrc or in
>any of the docs. Can they, or should they, be eliminated?

I think you had to hack the source to remove those, but actually IMHO
it doesn't hurt to have them shown on the editor in case you want to
use them as if those headers stay empty, Slrn doesn't include those in
the final posting.

-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Re: slrn: how to modify headers in posts?
#46833
Author: John Moreno
Date: Thu, 25 Feb 1999 00:00
22 lines
1671 bytes
Thomas Schultz <tststs@gmx.de> wrote:

> On Wed, 24 Feb 1999, John Moreno <phenix@interpath.com> wrote:
> 
> > slrn is supposed to be dropping the id's automatically -- but it
> > didn't do so in 9.4.3, so what is probably happening is that his
> > SERVER is complaining and slrn is just passing the message along.
> 
> I am using slrn 0.9.5.4 and it does not seem to drop Message-IDs
> automatically (I get an error message and have to return to my editor
> to shorten the 'References:' myself when this header field is too
> long). What am I doing wrong?


I don't know -- acording the release announcements it was changed in
version 0.9.5.2 to keep it within the limit.  Do you have the id of a
message that gave you the problem?

-- 
John Moreno

Re: slrn: how to modify headers in posts?
#46843
Author: Thomas Schultz
Date: Thu, 25 Feb 1999 00:00
15 lines
1425 bytes
On Wed, 24 Feb 1999, John Moreno <phenix@interpath.com> wrote:

> slrn is supposed to be dropping the id's automatically -- but it
> didn't do so in 9.4.3, so what is probably happening is that his
> SERVER is complaining and slrn is just passing the message along.

I am using slrn 0.9.5.4 and it does not seem to drop Message-IDs
automatically (I get an error message and have to return to my editor
to shorten the 'References:' myself when this header field is too
long). What am I doing wrong?
-- 
Kind regards,
    Thomas Schultz

Re: slrn: how to modify headers in posts?
#46864
Author: Thomas Schultz
Date: Fri, 26 Feb 1999 00:00
37 lines
2057 bytes
On Thu, 25 Feb 1999, John Moreno <phenix@interpath.com> wrote:

> I don't know -- acording the release announcements it was changed in
> version 0.9.5.2 to keep it within the limit.  Do you have the id of a
> message that gave you the problem?

I think that the problem appears whenever the 'References:' header
becomes too long. This rarely happens in 'normal' groups, but I
frequently encounter it in de.talk.jugend - an example would be

Message-ID: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>

When I try to followup to this article, I get the following error
message:

<--->
Your message is not acceptable for the following reason:

        Expecting a header.  This is not a header line.

This message was generated while looking at line 4:

ler.ddns.org>



Perhaps this error was generated because you did not separate the header
section from the body by a BLANK line.
<--->

The string "ler.ddns.org>" seems to be the part of the 'References:'
header that did not fit in the 998 chars maximum.
-- 
Kind regards,
    Thomas Schultz

Re: slrn: how to modify headers in posts?
#46870
Author: John Moreno
Date: Fri, 26 Feb 1999 00:00
52 lines
2701 bytes
Thomas Schultz <tststs@gmx.de> wrote:

> On Thu, 25 Feb 1999, John Moreno <phenix@interpath.com> wrote:
> 
> > I don't know -- acording the release announcements it was changed in
> > version 0.9.5.2 to keep it within the limit.  Do you have the id of a
> > message that gave you the problem?
> 
> I think that the problem appears whenever the 'References:' header
> becomes too long. This rarely happens in 'normal' groups, but I
> frequently encounter it in de.talk.jugend - an example would be
> 
> Message-ID: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
> 
> When I try to followup to this article, I get the following error
> message:
> 
> <--->
> Your message is not acceptable for the following reason:
> 
>         Expecting a header.  This is not a header line.
> 
> This message was generated while looking at line 4:
> 
> ler.ddns.org>
> 
> 
> 
> Perhaps this error was generated because you did not separate the header
> section from the body by a BLANK line.
> <--->
> 
> The string "ler.ddns.org>" seems to be the part of the 'References:'
> header that did not fit in the 998 chars maximum.

That was an old article -- I had to look it up by dejanews.  Anyway, the
References header that replying to that article would produce isn't
anywhere /near/ the maxium:

References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
<369463c3.5426808@news.cis.dfn.de> <770ffq$4hk$1@fu-berlin.de>
<9901076F224115@ancalagon.rhein-neckar.de>
<alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>

(with the carriage returns replaced with spaces of course).

In fact your References header for this article was longer.

-- 
John Moreno

Re: slrn: how to modify headers in posts?
#46873
Author: Anthony Campbell
Date: Fri, 26 Feb 1999 00:00
34 lines
2183 bytes
On 25 Feb 1999 20:52:22 GMT, Thomas Schultz <tststs@gmx.de> wrote:
>On Wed, 24 Feb 1999, John Moreno <phenix@interpath.com> wrote:
>
>> slrn is supposed to be dropping the id's automatically -- but it
>> didn't do so in 9.4.3, so what is probably happening is that his
>> SERVER is complaining and slrn is just passing the message along.
>
>I am using slrn 0.9.5.4 and it does not seem to drop Message-IDs
>automatically (I get an error message and have to return to my editor
>to shorten the 'References:' myself when this header field is too
>long). What am I doing wrong?
>-- 
>Kind regards,
>    Thomas Schultz


Are you quite sure it is the References line that is being complained about?
I thought it was too, but following some helpful comments here (thanks to
all who replied BTW) I found that it was actually a line in the body of the
message that was causing the problem ("On [date], J Bloggs wrote:.."). When
I wrapped this line the References line no longer caused a problem.

Anthony


-- 
Anthony Campbell  -  running Linux Debian 2.0 (Windows-free zone)
Book Reviews: www.achc.demon.co.uk/bookreviews/bookreviews.html

"The Moving Finger writes; and, having writ,
Moves on..."   - Edward Fitzgerald (Rubaiat of Omar Khayyam)


Re: slrn: how to modify headers in posts?
#46892
Author: Felix Schueller
Date: Sat, 27 Feb 1999 00:00
43 lines
2994 bytes
At Fri, 26 Feb 1999 19:41:23 -0500 John Moreno says:

>> Message-ID: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
>> The string "ler.ddns.org>" seems to be the part of the 'References:'
>> header that did not fit in the 998 chars maximum.
>That was an old article -- I had to look it up by dejanews. Anyway, the
>References header that replying to that article would produce isn't
>anywhere /near/ the maxium:

>References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
[4 Msg-IDs]
>(with the carriage returns replaced with spaces of course).
>In fact your References header for this article was longer.

Is it possible that Dejanews don't show the whole References?
On my server the posting has the following References:

------
References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
<369463c3.5426808@news.cis.dfn.de> <770ffq$4hk$1@fu-berlin.de>
<9901076F224115@ancalagon.rhein-neckar.de>
<SchwabenMUT-am-16.-Januar.09-01-99.12-52-07.dtj.news.497@winki.de>
<LdMzkkiTcYKn-pn2-EzdfdVlZTrdq@os2.org>
<slrn79jthk.52.l.a.d.y.b.i.r.d@tststs.ddns.org>
<slrn79ncg4.su.tststs@tststs.ddns.org>
<alaff79q05p.14l.fschueller@felix.fschueller.ddns.org>
<slrn79rt8a.52.l.a.d.y.b.i.r.d@tststs.ddns.org>
<alaff79vdpo.3qq.fschueller@felix.fschueller.ddns.org>
<slrn7a1b3s.m2.l.a.d.y.b.i.r.d@tststs.ddns.org>
<alaff7a407o.hc.fschueller@felix.fschueller.ddns.org>
<slrn7a97n2.52.l.a.d.y.b.i.r.d@tststs.ddns.org>
<alaff7abhh8.9v.fschueller@felix.fschueller.ddns.org>
<slrn7aebg0.52.l.a.d.y.b.i.r.d@tststs.ddns.org>
<alaff7ahps5.jf.fschueller@felix.fschueller.ddns.org>
<slrn7ajffa.52.l.a.d.y.b.i.r.d@tststs.ddns.org>
<alaff7amk2p.a1.fschueller@felix.fschueller.ddns.org>
<slrn7apg0h.52.l.a.d.y.b.i.r.d@tststs.ddns.org>
------

Cu
  Felix

Slrn References problem (wes: slrn: how to modify headers in posts?)
#46898
Author: John Moreno
Date: Sat, 27 Feb 1999 00:00
36 lines
2249 bytes
Felix Schueller <fschueller@netcologne.de> wrote:

> At Fri, 26 Feb 1999 19:41:23 -0500 John Moreno says:
> 
> >> Message-ID: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
> >> The string "ler.ddns.org>" seems to be the part of the 'References:'
> >> header that did not fit in the 998 chars maximum.
> >That was an old article -- I had to look it up by dejanews. Anyway, the
> >References header that replying to that article would produce isn't
> >anywhere /near/ the maxium:
> 
> >References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
> [4 Msg-IDs]
> >(with the carriage returns replaced with spaces of course).
> >In fact your References header for this article was longer.
> 
> Is it possible that Dejanews don't show the whole References?
> On my server the posting has the following References:

It looks likely.  Something new?
 
> ------
> References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
[19 additional id's]

Yep, that one would have gone over -- total length would have been
1036+crlf.

I wonder what's going on...


-- 
John Moreno


Re: slrn: how to modify headers in posts?
#46899
Author: Jan Hlavacek
Date: Sat, 27 Feb 1999 00:00
38 lines
2481 bytes
On 26 Feb 1999 21:16:00 GMT, Thomas Schultz <tststs@gmx.de> wrote:
> On Thu, 25 Feb 1999, John Moreno <phenix@interpath.com> wrote:
> 
> > I don't know -- acording the release announcements it was changed in
> > version 0.9.5.2 to keep it within the limit.  Do you have the id of a
> > message that gave you the problem?
> 
> I think that the problem appears whenever the 'References:' header
> becomes too long. This rarely happens in 'normal' groups, but I
> frequently encounter it in de.talk.jugend - an example would be
> 
> Message-ID: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
> 
> When I try to followup to this article, I get the following error
> message:
> 
> <--->
> Your message is not acceptable for the following reason:
> 
>         Expecting a header.  This is not a header line.
> 
> This message was generated while looking at line 4:
> 
> ler.ddns.org>

What editor do you use?  This looks like your editor wrapped the
references line.  

Does anybody know if slrn shortens the references line before or after
editing?

-- 
Jan Hlav\'{a}\v{c}ek <lahvak@math.mps.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Re: Slrn References problem
#46901
Author: Thomas Schultz
Date: Sat, 27 Feb 1999 00:00
23 lines
2006 bytes
On Sat, 27 Feb 1999, John Moreno <phenix@interpath.com> wrote:

>> ------
>> References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
> [19 additional id's]
> 
> Yep, that one would have gone over -- total length would have been
> 1036+crlf.
> 
> I wonder what's going on...

I am not really a programmer, but I believe I have found the source of
the problem: The string variables in post.c which are used to read the
file containing the posting seem to be 1024 characters long - in case
the 'References' header is too long, it probably won't fit in this
variable as well and the rest of the line is read as a seperate
header. IMO, this would also explain that strange error message I get.
Is anybody able to fix this?
-- 
Kind regards,
    Thomas Schultz

Re: Slrn References problem
#46926
Author: Thomas Schultz
Date: Sun, 28 Feb 1999 00:00
19 lines
2059 bytes
On Sun, 28 Feb 1999, John Moreno <phenix@interpath.com> wrote:

>> And now there's no Problem to post a followup to Msg-Id:
>> <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
> Hmn, if you post a followup to that message is the References header
> trimmed?  I.e. is the problem somehow in the handling or is it just not
> doing it?

As far as I see, the References header is correctly trimmed if the
variable is large enough for the original (long) header line, so the
code in post_references_header seems to be OK (I would BTW find it
helpful if it followed the proposal of Son-of-RFC 1036 and left three
blanks where Message-IDs were deleted --- I think this would be fairly
easy to implement).
-- 
Kind regards,
    Thomas Schultz

Re: Slrn References problem
#46927
Author: Felix Schueller
Date: Sun, 28 Feb 1999 00:00
32 lines
2244 bytes
At 27 Feb 1999 21:29:10 GMT Thomas Schultz says:

>>> References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
>> [19 additional id's]
>> Yep, that one would have gone over -- total length would have been
>> 1036+crlf.
>> I wonder what's going on...
>I am not really a programmer, but I believe I have found the source of
>the problem: The string variables in post.c which are used to read the
>file containing the posting seem to be 1024 characters long

hmm I've changed in post.c line 350 (funktion check_file_for_posting)

|< char line[1024], *the_line;
to
|> char line[1100], *the_line;

and line 635 (funktion slrn_post_file)

|< char line[1024], *linep; 
to
|> char line[1100], *linep;

And now there's no Problem to post a followup to 
Msg-Id: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>

But I don't know whether there's a better solution.

Cu
  Felix

Re: Slrn References problem
#46929
Author: Thomas Schultz
Date: Sun, 28 Feb 1999 00:00
23 lines
2054 bytes
On 28 Feb 1999, Felix Schueller <fschueller@netcologne.de> wrote:

> |< char line[1024], *the_line;
> to
> |> char line[1100], *the_line;
[...]
> But I don't know whether there's a better solution.

I did something similar as a workaround yesterday. However, I still
see a problem there: Not everybody is using software that trims the
Reference header and I am not sure if all news servers reject postings
with long lines, so you might come across Reference headers which are
even longer than 1100 chars.

You could make this extremely unlikely to happen by setting the limit
to 2048 or such, but I don't know enough about C to tell if there is a
solution that does not make it necessary to set a fixed limit at all
(which would IMO be even better).
-- 
Kind regards,
    Thomas Schultz

Re: Slrn References problem
#46940
Author: Felix Schueller
Date: Sun, 28 Feb 1999 00:00
29 lines
2605 bytes
At, 28 Feb 1999 14:43:58 -0500 John Moreno says:

>> >I am not really a programmer, but I believe I have found the source of
>> >the problem: The string variables in post.c which are used to read the
>> >file containing the posting seem to be 1024 characters long
>> hmm I've changed in post.c line 350 (funktion check_file_for_posting)
[...]
>> And now there's no Problem to post a followup to 
>> Msg-Id: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
>> But I don't know whether there's a better solution.
>Hmn, if you post a followup to that message is the References header
>trimmed?

Yes. The full 'References:' header ist ~974 characters long.

>I.e. is the problem somehow in the handling or is it just not doing it?

I think its as Thomas say. The old untrimmed header is to long for the
variable (line can only remeber 1024 characters so that slrn handel
all header lines which is longer den 1024 characters as two lines
one with characters from 1-1024 and one with the rest.) 

With a bigger Array for line (now 1100 at my slrn) a header can have
1100 caracters. But I don't know whether this could make problems.

Cu
  Felix

Re: Slrn References problem
#46948
Author: John Moreno
Date: Sun, 28 Feb 1999 00:00
38 lines
2410 bytes
Felix Schueller <fschueller@netcologne.de> wrote:

> At 27 Feb 1999 21:29:10 GMT Thomas Schultz says:
> 
> >>> References: <763mhv$7h1$1@fu-berlin.de> <76idls$f3b$1@fu-berlin.de>
> >> [19 additional id's]
> >> Yep, that one would have gone over -- total length would have been
> >> 1036+crlf.
> >> I wonder what's going on...
> >I am not really a programmer, but I believe I have found the source of
> >the problem: The string variables in post.c which are used to read the
> >file containing the posting seem to be 1024 characters long
> 
> hmm I've changed in post.c line 350 (funktion check_file_for_posting)
> 
> |< char line[1024], *the_line;
> to
> |> char line[1100], *the_line;
> 
> and line 635 (funktion slrn_post_file)
> 
> |< char line[1024], *linep; 
> to
> |> char line[1100], *linep;
> 
> And now there's no Problem to post a followup to 
> Msg-Id: <alaff7asbq8.a1.fschueller@felix.fschueller.ddns.org>
> 
> But I don't know whether there's a better solution.

Hmn, if you post a followup to that message is the References header
trimmed?  I.e. is the problem somehow in the handling or is it just not
doing it?

-- 
John Moreno

Re: Slrn References problem
#46960
Author: Christian Kurz
Date: Mon, 01 Mar 1999 00:00
30 lines
2274 bytes
Thomas Schultz <tststs@gmx.de> wrote:
> On 28 Feb 1999, Felix Schueller <fschueller@netcologne.de> wrote:

> > |< char line[1024], *the_line;
> > to
> > |> char line[1100], *the_line;
> [...]
> > But I don't know whether there's a better solution.

[...]
> You could make this extremely unlikely to happen by setting the limit
> to 2048 or such, but I don't know enough about C to tell if there is a
> solution that does not make it necessary to set a fixed limit at all
> (which would IMO be even better).

I'm learning C and the moment [self-teaching] and it seems as there's a
solution without a fixed limit. With the routine malloc you can request
more memory, if it's needed. But I don't know if this function could be
used without interactivity [It seems so] and if you could change the
source so, that this is possible. Maybe some one, who can more C than
me, could take a look at this.

Ciao
     Christian
-- 
Menschen, die blo� arbeiten, finden keine Zeit zum Tr�umen. Nur wer 
tr�umt gelangt zur Weisheit.                   SMOHALLA (Nez Perce)
/* http://www.rhein-neckar.de/~jupiter/                Christian Kurz */

Re: Slrn References problem
#46966
Author: John E. Davis
Date: Mon, 01 Mar 1999 00:00
17 lines
1998 bytes
On 28 Feb 1999 20:46:44 GMT, Thomas Schultz <tststs@gmx.de>
wrote:
>to 2048 or such, but I don't know enough about C to tell if there is a
>solution that does not make it necessary to set a fixed limit at all
>(which would IMO be even better).

The solution is to use the appropriate combinations of malloc,
realloc, and free.  An example of this is in the function
`server_read_and_malloc' in slrn/src/xover.c.  Ultimately, I am going
to replace all the code that uses the stdio functions such as fgets by
something else that allocates the correct amount of memory.  If you
have the jed editor source, look at jed/src/vfile.c to see what I
mean.

--John

Re: Slrn References problem
#46968
Author: Sylvan Butler
Date: Mon, 01 Mar 1999 00:00
22 lines
2133 bytes
On 1 Mar 1999 04:19:14 GMT, John E. Davis <davis@space.mit.edu> wrote:
>On 28 Feb 1999 20:46:44 GMT, Thomas Schultz <tststs@gmx.de>
>wrote:
>>to 2048 or such, but I don't know enough about C to tell if there is a
>>solution that does not make it necessary to set a fixed limit at all
>>(which would IMO be even better).
>
>The solution is to use the appropriate combinations of malloc,
>realloc, and free.  An example of this is in the function

Yup.  Or if the parser allows it, just read and parse chunks without
assuming a new chunk begins a new line.

sdb
-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Re: Slrn References problem
#47072
Author: Thomas Schultz
Date: Thu, 04 Mar 1999 00:00
13 lines
1670 bytes
On 1 Mar 1999, John E. Davis <davis@space.mit.edu> wrote:
[...]
> If you have the jed editor source, look at jed/src/vfile.c to see
> what I mean.

Thank you for the pointer. I'm not able to understand this code right
now, but I will look at it again when I have the time to read a bit
more about C.
-- 
Kind regards,
    Thomas Schultz

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