🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #158031

Re: Any XANA news experts need some answers :)

#158031
From: Colin Wilson
Date: Mon, 08 Nov 2004 08:54
55 lines
3098 bytes
Michael Vondung wrote:

> Agent can export groups in the Unix standard format, and XanaNews
> saves data in a clean looking format. If all fails, I might be able
> to write a Ruby script that converts Agent's exported data to
> something that XanaNews can process (Colin will need to explain what
> X-Msg:

XanaNews can import from a text file in the same 'RFC' format as a
server would send them - ie.  A bunch of header lines; a blank line; a
bunch of message body lines; a line with a single dot.  (File/Import
Articles).  Make sure the header lines contain a correctly formatted
X-Trace header - so that XanaNews can give the message an article
number,

So it's probably easiest to use that.  But if you need it, here's the
internal format details:

XanaNews stores messages in two files for each newsgroup.  Articles.dat
is a text file.  Each line contains - tab separated...

  Article Number
  Subject
  From
  Date
  Message Id 
  References
  Bytes
  Lines
  Flags          (XanaNews internal flags indicating things like the
                  message has been read, etc.  Set it to '0' if you're
                  generating the files yourself.  XanaNews updates this
                  dynamically)

  Offset         (If the message body is available, this contains the 
                  offset in 'messages.dat' where the message starts.  If
                  the body is not available, this field is missing)

Messages.dat is a binary file containing the following for each message:

  Indicator string    (The string 'X-Msg:')
  Body Length         (8 hex digits)
  
  For each 'extra header' line (ie, the ones not included in 
  articles.dat)

    Header line length   (2 byte (word) binary)
    Header               (eg. X-Priority: 3)
    
  End of header indicator (2 byte (word) binary zero)
  Message Body            ('Body Length' characters)


-- 
Colin - Author of XanaNews
Technical Details
Message-ID: <1099904053.10785.0@spandrell.news.uk.clara.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!spandrell.news.uk.clara.net
References: <cuggo0tm7tqnd5qsfudqeuqf9lifc3miq2@4ax.com> <xn0dpbwlzj2e0id002CPW@xananews> <2v40lmF2gtmivU1@uni-berlin.de> <MPG.1bf6ee6c45243882989741@fallen.marreka.no-ip.com> <xn0dpg5nud323b000@news.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <1099904053.10785.0@spandrell.news.uk.clara.net>
Subject: Re: Any XANA news experts need some answers :)
Date: Mon, 08 Nov 2004 08:54:13 +0000
From: "Colin Wilson" <colin@wilsonc.demon.co.uk>
References: <cuggo0tm7tqnd5qsfudqeuqf9lifc3miq2@4ax.com> <xn0dpbwlzj2e0id002CPW@xananews> <2v40lmF2gtmivU1@uni-berlin.de> <MPG.1bf6ee6c45243882989741@fallen.marreka.no-ip.com> <xn0dpg5nud323b000@news.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!mephistopheles.news.clara.net!news.clara.net!spandrell.news.uk.clara.net
Newsgroups: news.software.readers
User-Agent: XanaNews/1.16.4.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
X-Complaints-To: abuse@clara.net (please include full headers)
X-Trace: a776e030c863ca60c4d7761bd370399886723404f06202af590c340d418f3435
NNTP-Posting-Date: Mon, 08 Nov 2004 08:54:13 +0000
Lines: 55