🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Kim F. Storm Sat, 29 Sep 1990 01:40
USER POLL: Changes to folder splitting
#956
Author: Kim F. Storm
Date: Sat, 29 Sep 1990 01:40
70 lines
3216 bytes
Having completed some rather large modifications to the way folders
are handled (largely thanks to patches contributed by Bernd Wechner)
I have realized that there is a problem with backwards compatibility
which I would like to have an opinion from the nn users.

The reason I ask is that I can make some (ugly) hacks to make the code
90% backwards compatible, but I would prefer not to do it, so if the
changes don't cause actual problems, I don't want to fix them!


CHANGE 1:  Folder splitting

Current functionality:

When splitting a folder, nn will simply look for the next article
separator, either what looks like an article header or an MMDF ^A-line.
This has the problem that parsing for example a mailbox where some
letters have embedded headers or even an MMDF separator will result
in too many articles.

New functionality:

The format of the folder will be determined by looking at the first
article, and the rest of the folder will be parsed using an algorithm
which is specific for that type of folder.  For example, in a mailbox,
only properly formed "From xxx ..." lines will be recognized to separate
articles in the folder.

Problem:

If an existing folder has a mixture of formats, e.g. first a few mail-format
articles and the rest is in "standard" format, too FEW articles will be
found.  I don't know how common it is to have "mixed folders", but it would
be fairly easy to write a small script which changes a mixed folder into
the "standard" format (just replace "From ..." and ^A lines with blank lines).


CHANGE 2:  Saving in a folder

Current functionality:

When saving an article in a folder, the variables mmdf-format and
mail-format determines the format of the appended article.

New functionality:

When saving an article in an existing folder, the new article is
appended in the current format of the folder (determined by looking
at the first article in the folder).  The mmdf-format and mail-format
variables are only used to define the format of new folders.

Problem:

Well, none really except that there is no way you can change the format
of a folder once it is created with a given format.  (Such a function
will probably be implemented sometime in the future anyway).


QUESTIONS (don't reply if you don't care):

Will the new functionalities cause you problems which are not easily
solved?

If they do, what is the specific problem?

Do you have a suggestion about a solution to the problem?

-- 
Kim F. Storm  <storm@texas.dk>		No news is good news,
Texas Instruments A/S, Denmark		  but nn is better!
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