Article View: news.software.readers
Article #46149Re: [slrn] Saving new/unread articles?
From: to... tony summerfelt
Date: Sat, 30 Jan 1999 00:00
Date: Sat, 30 Jan 1999 00:00
66 lines
3537 bytes
3537 bytes
On 29 Jan 1999 23:39:04 GMT, John E. Davis wrote: > It depends upon your shell. For example, the bourne shell does not i'm using bash v2.01.0 here. i get a `permission denied' error. that's probably a good thing :) > understand the `~' variable, nor do many other programs. This means > that it is easy to create files or directories called `~'. i have the full path name in my own version of the program, i just threw in the `~' when posting. i didn't realize it would be a potential problem... > >> > @articles = sort grep(/\d+/, readdir(dir)); > >it gets all the files that are numeric only (ie. the articles) and sorts > >those numerically > > I am skeptical about this. > Isn't grep passing a list of strings the /\d+/ matches only filenames with one or more digits. in a newsgroup directory these will probably only be articles (i made a general assumption here). > strings to be sorted alphabetically and not numerically? i just wanted the list of articles, and figured that sorting them would be done numerically. is there a need to sort them alphabetecally? > A file may be deleted using the `remove' intrinsic function. i looked at that but IIRC, i thought it only removed from slrn's `internal' list of them, and not physically from the directory. that was really my only barrier as far as i could see > So, after they have been archive I do not understand why you re-create > them in the spool directory. it was a request from a friend here. he originally wanted to just delete the the read (or marked as read) articles. my misunderstanding of the `remove' instrinsic function led me to the perl solution. we are using drives with limited space (my linux setup is sitting on a 450meg hd. i don't know how my friend does it, but what i do when drive space gets a bit tight, is archive the unread articles run slrnpull in expire mode (i use 0 1 for defaults). this way i have just one day's (or none if i deleted the articles manually) articles, plus the unread articles. the perl program worked until i figured out the S-lang version. it looks like i have enough information now to do just that. i don't know how i missed the `remove' explanation in the docs... -- t *------------------------------------------------------------------------- | origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 | | `you want a toe? i can get you a toe' | | take myspleen out to reply via email *-------------------------------------
Technical Details
Message-ID:
<36b38c8d.0@news.kosone.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailReferences:
<CBdq2.114$yk7.461@news.get2net.dk> <36aaa085.0@news.kosone.com> <RONq2.59$sG5.292@news.get2net.dk> <36ae8466.0@news.kosone.com> <slrn7atdac.iie.davis@aluche.mit.edu> <36b23651.0@news.kosone.com> <slrn7b4hkg.sse.davis@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <36b38c8d.0@news.kosone.com> Subject: Re: [slrn] Saving new/unread articles? Date: Sat, 30 Jan 1999 00:00:00 +0000 From: to...@myspleen.kos.net (tony summerfelt) References: <CBdq2.114$yk7.461@news.get2net.dk> <36aaa085.0@news.kosone.com> <RONq2.59$sG5.292@news.get2net.dk> <36ae8466.0@news.kosone.com> <slrn7atdac.iie.davis@aluche.mit.edu> <36b23651.0@news.kosone.com> <slrn7b4hkg.sse.davis@aluche.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 438834627 X-Trace: newsfeed.slurp.net 917736673 199.246.3.130 (Sat, 30 Jan 1999 16:51:13 CDT) Organization: Kingston Online Services User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: to...@myspleenkos.net NNTP-Posting-Date: Sat, 30 Jan 1999 16:51:13 CDT Newsgroups: news.software.readers,alt.lang.s-lang