🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by David A. Duff Tue, 28 Apr 1992 20:25
dealing with nn folders and emacs rmail compatibility
#2702
Author: David A. Duff
Date: Tue, 28 Apr 1992 20:25
70 lines
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
Re: dealing with nn folders and emacs rmail compatibility
#2703
Author: Thomas Aaron Insel
Date: Wed, 29 Apr 1992 00:19
11 lines
1271 bytes
duff@starbase.mitre.org (David A. Duff) writes:

> 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.  

Try the cancel command.
-- 
Thomas Aaron Insel (tinsel@uiuc.edu)
  I speak for myself, and not for the State or University of Illinois.
  "We must not confuse dissent with disloyalty." -- Edward R. Murrow
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