Thread View: news.software.nntp
4 messages
4 total messages
Started by Ravi
Tue, 30 Sep 2003 06:22
problem with line length for web to usenet feed
Author: Ravi
Date: Tue, 30 Sep 2003 06:22
Date: Tue, 30 Sep 2003 06:22
14 lines
1831 bytes
1831 bytes
Hello.... I'm trying to perfect my web (phpBB) to Usenet gateway and am having problems getting posts generated by web users to format correctly for usenet. Specifically, if I don't wrap the lines at 70 characters, usenet readers see long lines of unwrappable text, but if I add returns at appropriate points (\n) the messages then have 'hard returns' which format irregularly. Any ideas on how I need to format my message text to get it to display just like any other usenet post? I'm basically using php to submit posts directly to a news server using NNTP. Thanks...Ravi
Re: problem with line length for web to usenet feed
Author: Dr.Ruud
Date: Tue, 30 Sep 2003 09:42
Date: Tue, 30 Sep 2003 09:42
20 lines
1682 bytes
1682 bytes
Toen ik Ravi kietelde, kwam er dit uit:
> I'm trying to perfect my web (phpBB) to Usenet gateway and am having
> problems getting posts generated by web users to format correctly for
> usenet. Specifically, if I don't wrap the lines at 70 characters,
> usenet readers see long lines of unwrappable text, but if I add
> returns at appropriate points (\n) the messages then have 'hard
> returns' which format irregularly.
Folded lines need whitespace (use \t) at the start:
Some-header: Long line part-1
part-2
part-3
Next-header:
--
Affijn, Ruud
Re: problem with line length for web to usenet feed
Author: Jeffrey M. Vinocur
Date: Tue, 30 Sep 2003 10:38
Date: Tue, 30 Sep 2003 10:38
25 lines
1997 bytes
1997 bytes
In article <blbqdv.sk.1@news.isolution.nl>, Dr.Ruud <rvtol+news@hacktic.nl.is.not.invalid> wrote: >Toen ik Ravi kietelde, kwam er dit uit: > >> I'm trying to perfect my web (phpBB) to Usenet gateway and am having >> problems getting posts generated by web users to format correctly for >> usenet. Specifically, if I don't wrap the lines at 70 characters, >> usenet readers see long lines of unwrappable text, but if I add >> returns at appropriate points (\n) the messages then have 'hard >> returns' which format irregularly. Well, usenet messages clasically *are* delimited by "hard returns" -- I'm not sure what is irregular about yours. Perhaps you need a better wordwrap algorithm? >Folded lines need whitespace (use \t) at the start: This is true, but only for header lines. It isn't important for the body text. -- Jeffrey M. Vinocur jeff@litech.org
Re: problem with line length for web to usenet feed
Author: Curt Welch
Date: Tue, 30 Sep 2003 13:41
Date: Tue, 30 Sep 2003 13:41
27 lines
2350 bytes
2350 bytes
Ravi <ravi@NOSPAMliferank.com> wrote: > Hello.... > > I'm trying to perfect my web (phpBB) to Usenet gateway and am having > problems getting posts generated by web users to format correctly for > usenet. Specifically, if I don't wrap the lines at 70 characters, > usenet readers see long lines of unwrappable text, but if I add > returns at appropriate points (\n) the messages then have 'hard > returns' which format irregularly. When the message is sent to the server over NNTP, lines are terminated with CR LF paris. A "return" is \r. A newline on Unix/C is \n which is a line feed (LF). You might be using tools which turn newlines into CR LF paris when it's transmitted over NNTP, or maybe you have to do it yourself. If you are inserting a "return", aka \r, then it's not going to get turned into CR LF. If you are inserting newlines \n, and it's not working, then you probably need to insert CR LFs. Also keep in mind that lines with leading dots need to have the dot doubled. So if you break a line and create a line with a leading dot in the processes, you need to also insert an extra dot. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
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