Article View: news.software.nn
Article #4454Re: make save overwrite vs. append?
From: Nancy McGough
Date: Thu, 08 Jul 1993 23:38
Date: Thu, 08 Jul 1993 23:38
34 lines
2260 bytes
2260 bytes
dennis@woodstock.nosc.mil (Dennis Cottel) writes: >Is there a handy way to make a save operation which will overwrite >the contents of the selected file rather than appending to it? This >is useful for saving the most recent version of FAQ files, etc. Here's a macro (invoked with ;F) that will save the current article to a file named +FAQs/newsgroup.name.FAQ where + stands for your news directory (default is ~/News) and FAQs is the name of a subdirectory in that directory. # Next 2 lines establish semicolon (;) as macro prefix key (aliased to mac). make map mac map both ; prefix mac # Overwrite and save FAQ in +FAQs/newsgroup.name.FAQ map mac F ( ?show save-full "| cat > +FAQs/$G.FAQ" ) You might want to reset some variables so that digesting and undigesting will work on the saved article. I'm not sure what's needed because I can't find any digests to test this on, but my guess is that you might need to unset embedded-header-escape and mail-format -- does anyone know? Also, what is the definition of a digested article? Does it need to contain lines that begin with "From: " and "Subject: " in order for nn's "G %" to work on it? Ideally no one would need to save FAQs because they would be sitting in news.answers and the appropriate newsgroup not expiring until an update came along. Unfortunately this isn't the way things work... Nancy
Technical Details
Message-ID:
<21ib5n$lir@news.u.washington.edu>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!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!ux1.cso.uiuc.edu!uwm.edu!ogicse!netnews.nwnet.net!news.u.washington.edu!stein.u.washington.edu!nancymReferences:
<dennis.741540209@woodstock>Show Full Headers
Complete Article Headers
Message-ID: <21ib5n$lir@news.u.washington.edu> Subject: Re: make save overwrite vs. append? Date: Thu, 08 Jul 1993 23:38:31 +0000 From: nancym@stein.u.washington.edu (Nancy McGough) References: <dennis.741540209@woodstock> 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!gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!ux1.cso.uiuc.edu!uwm.edu!ogicse!netnews.nwnet.net!news.u.washington.edu!stein.u.washington.edu!nancym Newsgroups: news.software.nn Article-I.D.: news.21ib5n$lir Reply-To: nancym@u.washington.edu (Nancy McGough) Organization: University of Washington Lines: 34 NNTP-Posting-Host: stein.u.washington.edu X-Newsreader: NN [version 6.4.16]