Article View: news.software.nn
Article #2702dealing with nn folders and emacs rmail compatibility
From: David A. Duff
Date: Tue, 28 Apr 1992 20:25
Date: Tue, 28 Apr 1992 20:25
70 lines
4489 bytes
4489 bytes
i'm an nn user but not a wizard. what i'm trying to do seems like a simple thing, but i can't seem to figure out the right combination of variables to make it happen. i use folders to save articles in nn. in my nn init file i have some assignments of groups to folder names (e.g. comp.sys.mac and all of its subgroups go to one folder). i end up with a lot of articles accumulated in these folders and i'd like to have a good way to browse through them and selectively weed out old unwanted articles. nn lets me see the articles but doesn't seem to provide a way of deleting them from a folder. am i correct about this? if not i'd appreciate someone telling me how to do this. an approach that i considered was getting nn to save articles in some kind of format that is compatible with mail-handling software and then using a mail reader to browse, sort, and weed out the folders. this seems like a plausible idea, but is complicated by the fact that my preferred mail reading/browsing/pruning software is rmail mode of gnu emacs, which uses babyl format mail files. now, i realize it might be asking a lot for nn to support babyl format... however, rmail is supposed to be tolerant of other mail programs appending mail on the end of it's files, when you re-run rmail on the file, it parses the newly appended messages and converts them to rmail format. so, this *should* work. in fact it does work, up to a point. when i run rmail on an nn folder for the first time, everything is fine. rmail recognizes that the messages are in "mail" format (also works with mmdf) and it converts them to rmail format. i can view them in emacs, delete messages, etc and all is well. however, if i subsequently go back and use nn and save more articles to the file, nn no longer seems to use the "normal" mail format. that is, nn seems to be somehow detecting a difference between a file that has been processed with rmail and one that hasn't. in one case it outputs a line of the form "From <group> <date>" in the other case it doesn't. that seems strange, but i'm pretty sure that's what was happening. anyway, rmail can't recognize this format and the messages don't show up in rmail. someone please tell me if i am wrong about this.... (i can't lay my hands on the source right now). this can be a particularly confusing problem, because it is not until you have saved, used rmail and saved in emacs, gone back to nn and saved addtional articles, then finally gone back to emacs again to look at the additional messages that the problem shows up. i may not be crystal clear on all of this, but it would seem that "mail" format consists of messages separated by blank lines. new messages begin with a line like "^From " (that's a regexp). rmail has a bit more complicated file format (babyl), but the basically, it separates is messages with the character ^_ (control-underscore, ascii 31). when opening an rmail file, it looks after the last occurrence of this character to see if there are any mail format messages following. how do i force nn to use mail format all the time? yet another approach i thought of was to pipe the messages to rmail to be saved rather than just appending them, but i couldn't figure out how to communicate the default folder (i.e. the one that nn prompts you with) to the saving program. for example i could use "|rmail-news-saver $G" or something, except $G isn't exactly what i want - i want the default folder that i specified for the current group from my init file. is there a way to do this? thanks, dave duff mitre corporation 703-883-7731 duff@mitre.org ai technical center mclean, va usa
Technical Details
Message-ID:
<duff.704492705@starbase>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!sparky!uunet!sun-barr!ames!agate!linus!linus.mitre.org!starbase!duffShow Full Headers
Complete Article Headers
Message-ID: <duff.704492705@starbase> Subject: dealing with nn folders and emacs rmail compatibility Date: Tue, 28 Apr 1992 20:25:05 GMT From: duff@starbase.mitre.org (David A. Duff) 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!sparky!uunet!sun-barr!ames!agate!linus!linus.mitre.org!starbase!duff Newsgroups: news.software.nn Keywords: nn folders emacs rmail babyl mail mmdf format append Sender: news@linus.mitre.org (News Service) Nntp-Posting-Host: starbase.mitre.org Organization: The MITRE Corporation Lines: 70