Article View: news.software.nn
Article #956USER POLL: Changes to folder splitting
From: Kim F. Storm
Date: Sat, 29 Sep 1990 01:40
Date: Sat, 29 Sep 1990 01:40
70 lines
3216 bytes
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!
Technical Details
Message-ID:
<686@texas.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!stormShow Full Headers
Complete Article Headers
Message-ID: <686@texas.dk> Subject: USER POLL: Changes to folder splitting Date: Sat, 29 Sep 1990 01:40:23 +0000 From: storm@texas.dk (Kim F. Storm) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmdzi!unido!mcsun!sunic!dkuug!tidk!storm Newsgroups: news.software.nn Summary: Strict folder splitting Keywords: folders split save Organization: Texas Instruments, Denmark Lines: 70 Posted: Sat Sep 29 02:40:23 1990