Article View: news.software.nn
Article #7270Re: How safe is nn with mail folders?
From: Bob MacDowell
Date: Sun, 05 Mar 1995 18:36
Date: Sun, 05 Mar 1995 18:36
64 lines
3933 bytes
3933 bytes
Nancy McGough <nancym@ii.com> writes: >fox@netcom.com (Fuzzy Fox) writes: >>I am beginning to use nn more and more for reading mail folders that I >>use for mailing lists. I like the way it works for that. Me too. I use it exclusively! >>However, I've been wondering about how nn works with *active* folders. >>That is, on a very active mailing list, mail could be inserted into the >>folder while I'm reading it. However, nn doesn't appear to try to >>sense this condition and update the folder, as most mailers would. Correct! nn doesn't know how to cope with dynamically changing folders. It simply won't show the new mail in the folder. This is no big deal, except... >>Furthermore, nn lets me "cancel" messages and remove them from the >>folder, which is something I want to do often in order to keep the >>folder from growing too large. When I do this, does nn do anything to >>try and lock the mail file, so that mail delivery programs won't try to >>insert mail? Absolutely not. It will overwrite the mail file with the articles it knows about, and it will destroy the new articles that have come in since you started reading. Further, if mail came in *while* it was writing, it could (I suppose) bollux the entire file! >I also would love to use nn to read my mailing list folders that are >receiving mail but I don't want to risk trashing the folder. What I'm >thinking about doing is something like this: >1. Use procmail (or another filter program) to put incoming msgs into > a folder named 'IN.list'. >2. Whenever I want to read that mailing list, use a program like movemail, > which does file locking, to append the messages in 'IN.list' to a folder > named 'list'. Why bother? I simply go 'mv IN.list list' I think it'll move the pointers quickly enough that it's not an issue. I'm (blissfully?) unaware of dropping a mail on the floor, yet! >3. Use nn to read 'list'. Since 'list' doesn't receive any mail there > shouldn't be any problem using nn to read it. Exactly. And when you're done reading 'list', delete the file. Save the articles you want to save, using either the "S" command (which preserves the full headers including all the Received: lines), or the "O" command (which preserves From:, Subject:, Date: [and whatever else you set in some variable somewhere], and in doing so, compresses the file nearly 2:1.) This is a useful trick if you have a mountain of mail, like an 800k mail list file. Rename it, open it with nn, select all (= ^ <enter>) then "O" it to a new file. Then delete the old file and compress the new one. Brings that 800k mail file down to 150-200k. There's a caveat to this: it will write short headers that contain only "From:" "Subject:" "Date:", which nn can open, but mail readers cannot. They need an additional line on the front of each header called "From ". (note a space, not a colon). You can get 'nn' to write files like that, that mailers could open, but it's tricky. -Bob
Technical Details
Message-ID:
<bobmacdD4zD1L.9wt@netcom.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.misc.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!zib-berlin.de!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!agate!library.ucla.edu!csulb.edu!csus.edu!netcom.com!bobmacdReferences:
<foxD42o7q.801@netcom.com> <ii.793407769@shell1.best.com>Show Full Headers
Complete Article Headers
Message-ID: <bobmacdD4zD1L.9wt@netcom.com> Subject: Re: How safe is nn with mail folders? Date: Sun, 5 Mar 1995 18:36:57 GMT From: bobmacd@netcom.com (Bob MacDowell) References: <foxD42o7q.801@netcom.com> <ii.793407769@shell1.best.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.misc.mbox.zip!nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!zib-berlin.de!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!agate!library.ucla.edu!csulb.edu!csus.edu!netcom.com!bobmacd Newsgroups: news.software.nn,comp.mail.misc Keywords: nn mail folders Organization: NETCOM On-line Communication Services (408 261-4700 guest) Lines: 63 Sender: bobmacd@netcom19.netcom.com