🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
85 messages
85 total messages Page 2 of 2 Started by Chris Game Tue, 13 Feb 2007 10:10
Page 2 of 2 • 85 total messages
Re: [slrn]How to...?
#195625
Author: Troy Piggins
Date: Thu, 15 Feb 2007 02:50
67 lines
3742 bytes
* Blinky the Shark is quoted & my replies are inline below :
> Troy Piggins wrote:
> [---=| Quote block shrinked by t-prot: 54 lines snipped |=---]
>>> S-Lang Error: Undefined Name: view_my_saves is undefined
>>>
>>>> And try: 
>>>>
>>>> evalfile("mutthook.sl")
>>>
>>> S-Lang Error: Syntax Error: Expecting quote-character: found '??',
>>> line 1, file: /usr/share/slrn/macros/muttview.sl
>>
>> Hope that's it :)
>
> Added the doublequotes to each file
>
> my_hook.sl
> ----------_
>
> % This macro will bind slrn help to <F1>. 
>
> define view_manual ()
> {
>    system ("zless /usr/share/doc/slrn/manual.txt.gz");
> }
> definekey ("view_manual", "<F1>", "article");
> definekey ("view_manual", "<F1>", "group");
>
> % Allows reading slrn-saved posts with Mutt - within slrn 
> % DOESN'T WORK
>
> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves)"; }

define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
                                                                      ^^^

> definekey ("view_my_saves", "^o", "article");
> definekey ("view_my_saves", "^o", "group");
>
> muttview.sl
> -----------
>
> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
> definekey ("view_my_saves", "^o", "article");
> definekey ("view_my_saves", "^o", "group");

Maybe calling up twice causes drama?  or did you comment out the
one in my_hook.sl when using muttview.sl?
Try calling the one in muttview.sl view_my_saves2 while testing?

> Results:
>
> view_my_posts  does nothing

view_my_saves

> evalfile("mutthook.sl")  does nothing

evalfile("muttview.sl")

We gotta be getting close now...

-- 
Troy Piggins             ,-O   (o-    O         All your sigs are belong to us.
http://piggo.com/~troy  O   )  //\     O
RLU#415538               `-O   V_/_  OOO
hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7
Re: [slrn]How to...?
#195626
Author: Blinky the Shark
Date: Thu, 15 Feb 2007 03:29
78 lines
4007 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Troy Piggins wrote:
>> [---=| Quote block shrinked by t-prot: 54 lines snipped |=---]
>>>> S-Lang Error: Undefined Name: view_my_saves is undefined
>>>>
>>>>> And try: 
>>>>>
>>>>> evalfile("mutthook.sl")
>>>>
>>>> S-Lang Error: Syntax Error: Expecting quote-character: found '??',
>>>> line 1, file: /usr/share/slrn/macros/muttview.sl
>>>
>>> Hope that's it :)
>>
>> Added the doublequotes to each file
>>
>> my_hook.sl
>> ----------_
>>
>> % This macro will bind slrn help to <F1>. 
>>
>> define view_manual ()
>> {
>>    system ("zless /usr/share/doc/slrn/manual.txt.gz");
>> }
>> definekey ("view_manual", "<F1>", "article");
>> definekey ("view_manual", "<F1>", "group");
>>
>> % Allows reading slrn-saved posts with Mutt - within slrn 
>> % DOESN'T WORK
>>
>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves)"; }
>
> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
>                                                                       ^^^
>
>> definekey ("view_my_saves", "^o", "article");
>> definekey ("view_my_saves", "^o", "group");
>>
>> muttview.sl
>> -----------
>>
>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
>> definekey ("view_my_saves", "^o", "article");
>> definekey ("view_my_saves", "^o", "group");
>
> Maybe calling up twice causes drama?  or did you comment out the
> one in my_hook.sl when using muttview.sl?

Commented out.

No change.  Neither command does anything but flash the display a bit.

> Try calling the one in muttview.sl view_my_saves2 while testing?
>
>> Results:
>>
>> view_my_posts  does nothing
>
> view_my_saves

Yes -- I just typoed that, there.  I was entering view_my_saves

>> evalfile("mutthook.sl")  does nothing

Again, I typoed here, but ran the correct command.

> evalfile("muttview.sl")
>
> We gotta be getting close now...

Nothing's changing.

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195627
Author: SINNER
Date: Thu, 15 Feb 2007 04:00
19 lines
2505 bytes
* Blinky the Shark wrote in news.software.readers:
> Troy Piggins wrote:

[...]

>>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves)"; }

>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
>>                                                                       ^^^

You didnt comment here, you added the quote the first time, did you fix
the quote this time?

[...]

-- 
David
Happiness is good health and a bad memory.
		-- Ingrid Bergman
Re: [slrn]How to...?
#195629
Author: Blinky the Shark
Date: Thu, 15 Feb 2007 04:03
22 lines
2561 bytes
SINNER wrote:
> * Blinky the Shark wrote in news.software.readers:
>> Troy Piggins wrote:
>
> [...]
>
>>>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves)"; }
>
>>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
>>>                                                                       ^^^
>
> You didnt comment here, you added the quote the first time, did you fix
> the quote this time?
>
> [...]

It's fixed in both my_hooks.sl and muttview.sl.

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195639
Author: Adam Funk
Date: Thu, 15 Feb 2007 11:24
11 lines
1503 bytes
On 2007-02-14, Whiskers wrote:

> Only if the mailing list is available that way - some lists might well 
> prefer not to be included.  (My own feeling is that if a list is OK with 
> being available via gmane, why not just have a moderated newsgroup 
> instead?).

Sure!  I prefer reading newsgroups to following mailing lists (unless
the traffic is quite low), and you seem to have the same preference.
But obviously lots of other people don't --- there's just no
accounting for taste.
Re: [slrn]How to...?
#195637
Author: Whiskers
Date: Thu, 15 Feb 2007 12:51
39 lines
3477 bytes
On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * Whiskers wrote in news.software.readers:
>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>> * Whiskers wrote in news.software.readers:
>
>>> [sn functinality]
>
>>>> You can 
>>>> subscribe to newsgroups on several upstream sites, and you can create 
>>>> local newsgroups that are not propagated upstream.
>
>>> Leafnode does have this functionality but converting My_Posts to single 
>>> articles and passing msgid's to leafnode would prove difficult me thinks.
>
>> sn includes a utility 'snmail' to which the instructions are to 'pipe'
>> email from within the email program used for receiving the emails.  This 
>> seems to be the key to converting the email messages into a news-spool.
>
> Nice! I imagine a perl script or similar could be written to breakdown
> slrns file, but its beyond my knowledge.

KMail does it; when using the 'mailbox' file created by slrn as the origin 
of incoming emails, KMail reads the messages in one at a time - and will 
store them in its own maildir form, if you want (that's what I have set up 
at present).  KMail also has various 'filter' facilities that can be 
carried out on incoming emails - including 'pipe through' some external 
program; I use that for my spam trapping at present, but I'm sure it could 
pipe messages to snmail and thus get them into a 'local newsgroup' within 
sn's spool.  I haven't tried that yet.  I haven't actually compiled sn 
yet; I'm still thinking about how to install it so that it runs as a 
seperate service from Noffle (the local NNTP server I'm using at present) 
and allows Noffle to treat sn as just another feed, so that the email 
messages end up accessible to slrn via Noffle.  (I think having Noffle and 
sn using different ports should do the trick).

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195644
Author: Blinky the Shark
Date: Thu, 15 Feb 2007 19:43
39 lines
3202 bytes
Whiskers wrote:
> On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>> * Whiskers wrote in news.software.readers:
>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>> * Whiskers wrote in news.software.readers:
>>
>>>> [sn functinality]
>>
>>>>> You can subscribe to newsgroups on several upstream sites, and you
>>>>> can create local newsgroups that are not propagated upstream.
>>
>>>> Leafnode does have this functionality but converting My_Posts to
>>>> single articles and passing msgid's to leafnode would prove
>>>> difficult me thinks.
>>
>>> sn includes a utility 'snmail' to which the instructions are to
>>> 'pipe' email from within the email program used for receiving the
>>> emails.  This seems to be the key to converting the email messages
>>> into a news-spool.
>>
>> Nice! I imagine a perl script or similar could be written to
>> breakdown slrns file, but its beyond my knowledge.
>
> KMail does it; when using the 'mailbox' file created by slrn as the
> origin of incoming emails, KMail reads the messages in one at a time -
> and will store them in its own maildir form, if you want (that's what
> I have set up at present).  KMail also has various 'filter' facilities
> that can be 

I just set up Kmail for this.  Works fine, but it removes the articles
from my slrn save directory.  It sounds like you're saying that can be
avoided (I'd like them to remain in place in .../News/slrn.  I don't see
how to do that.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195645
Author: Whiskers
Date: Thu, 15 Feb 2007 21:25
52 lines
3966 bytes
On 2007-02-15, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:
>> On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>>> * Whiskers wrote in news.software.readers:
>>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>>> * Whiskers wrote in news.software.readers:
>>>
>>>>> [sn functinality]
>>>
>>>>>> You can subscribe to newsgroups on several upstream sites, and you
>>>>>> can create local newsgroups that are not propagated upstream.
>>>
>>>>> Leafnode does have this functionality but converting My_Posts to
>>>>> single articles and passing msgid's to leafnode would prove
>>>>> difficult me thinks.
>>>
>>>> sn includes a utility 'snmail' to which the instructions are to
>>>> 'pipe' email from within the email program used for receiving the
>>>> emails.  This seems to be the key to converting the email messages
>>>> into a news-spool.
>>>
>>> Nice! I imagine a perl script or similar could be written to
>>> breakdown slrns file, but its beyond my knowledge.
>>
>> KMail does it; when using the 'mailbox' file created by slrn as the
>> origin of incoming emails, KMail reads the messages in one at a time -
>> and will store them in its own maildir form, if you want (that's what
>> I have set up at present).  KMail also has various 'filter' facilities
>> that can be 
>
> I just set up Kmail for this.  Works fine, but it removes the articles
> from my slrn save directory.  It sounds like you're saying that can be
> avoided (I'd like them to remain in place in .../News/slrn.  I don't see
> how to do that.

Sorry if that was unclear.  There doesn't seem to be a 'leave messages on 
server' equivalent for fetching messages from a 'local file'.  I find the 
one copy is sufficient - on my system, KMail moves the messages from 
~/News/ to ~/.Mail/.Whiskers.directory/ 

KMail does offer the option for a 'pre-command'; I've just put

    cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts

in that box (and created old_Posts using touch, so that it's there when 
needed).  With a bit of luck that should result in all the sent articles 
being preserved in both the ~/News/ directory and in a KMail 'folder'.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195646
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 00:26
63 lines
4399 bytes
Whiskers wrote:
> On 2007-02-15, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>>> On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>>>> * Whiskers wrote in news.software.readers:
>>>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>>>> * Whiskers wrote in news.software.readers:
>>>>
>>>>>> [sn functinality]
>>>>
>>>>>>> You can subscribe to newsgroups on several upstream sites, and you
>>>>>>> can create local newsgroups that are not propagated upstream.
>>>>
>>>>>> Leafnode does have this functionality but converting My_Posts to
>>>>>> single articles and passing msgid's to leafnode would prove
>>>>>> difficult me thinks.
>>>>
>>>>> sn includes a utility 'snmail' to which the instructions are to
>>>>> 'pipe' email from within the email program used for receiving the
>>>>> emails.  This seems to be the key to converting the email messages
>>>>> into a news-spool.
>>>>
>>>> Nice! I imagine a perl script or similar could be written to
>>>> breakdown slrns file, but its beyond my knowledge.
>>>
>>> KMail does it; when using the 'mailbox' file created by slrn as the
>>> origin of incoming emails, KMail reads the messages in one at a time -
>>> and will store them in its own maildir form, if you want (that's what
>>> I have set up at present).  KMail also has various 'filter' facilities
>>> that can be 
>>
>> I just set up Kmail for this.  Works fine, but it removes the articles
>> from my slrn save directory.  It sounds like you're saying that can be
>> avoided (I'd like them to remain in place in .../News/slrn.  I don't see
>> how to do that.
>
> Sorry if that was unclear.  There doesn't seem to be a 'leave messages on 
> server' equivalent for fetching messages from a 'local file'.  I find the 

Okay.  I coudln't find one either.

> one copy is sufficient - on my system, KMail moves the messages from 
> ~/News/ to ~/.Mail/.Whiskers.directory/ 

I dunno where Kmail puts 'em here.  :)  I do have a Mail (not hidden)
dir off ~/ but it's empty.

> KMail does offer the option for a 'pre-command'; I've just put
>
>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>
> in that box (and created old_Posts using touch, so that it's there when 
> needed).  With a bit of luck that should result in all the sent articles 
> being preserved in both the ~/News/ directory and in a KMail 'folder'.

Thanks I might play with something like that.  I'm not looking to do
this with posts or replies, just stuff I've saved with o .


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195648
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 01:47
41 lines
3238 bytes
Whiskers wrote:

> Sorry if that was unclear.  There doesn't seem to be a 'leave messages
> on server' equivalent for fetching messages from a 'local file'.  I
> find the one copy is sufficient - on my system, KMail moves the
> messages from ~/News/ to ~/.Mail/.Whiskers.directory/ 
>
> KMail does offer the option for a 'pre-command'; I've just put
>
>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>
> in that box (and created old_Posts using touch, so that it's there
> when needed).  With a bit of luck that should result in all the sent
> articles being preserved in both the ~/News/ directory and in a KMail
> 'folder'.

---------- Second Response, After Doing A Little Work  -------------

While I want to try *using* Kmail as a slrn-saves reader, I don't want
to be dependent on it; i.e., I don't want it to *take over* and remove
saves from ~/News/slrn.

So here's what I just did...

I left slrn putting saved messages in file ~/News/slrn/saves .  But I
also created a ~/News/slrn/saves_archive/ directory.

I pointed Kmail to ~/News/slrn/saves, and created a "slrn saves" folder
there and a filter to direct slrn saves to that folder.  Then I made a
Kmail precommand for that box to:

cp ~/News/slrn/saves ~/News/slrn/saves_archive

So before Greedy Kmail pulls new slrn saves into itself it copies them
to the archive folder for safe keeping.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195649
Author: Troy Piggins
Date: Fri, 16 Feb 2007 02:08
51 lines
3167 bytes
* Blinky the Shark is quoted & my replies are inline below :
> Troy Piggins wrote:
> [---=| Quote block shrinked by t-prot: 38 lines snipped |=---]
>>>
>>> muttview.sl
>>> -----------
>>>
>>> define view_my_saves() { () = system ("mutt -f /home/blinky/News/saves"); }
>>> definekey ("view_my_saves", "^o", "article");
>>> definekey ("view_my_saves", "^o", "group");
>>
>> Maybe calling up twice causes drama?  or did you comment out the
>> one in my_hook.sl when using muttview.sl?
>
> Commented out.
>
> No change.  Neither command does anything but flash the display a bit.

Well I'm stumped, not that that's a hard thing to do.

>> Try calling the one in muttview.sl view_my_saves2 while testing?
>>
>>> Results:
>>>
>>> view_my_posts  does nothing
>>
>> view_my_saves
>
> Yes -- I just typoed that, there.  I was entering view_my_saves
>
>>> evalfile("mutthook.sl")  does nothing
>
> Again, I typoed here, but ran the correct command.

Thought so.

>> evalfile("muttview.sl")
>>
>> We gotta be getting close now...
>
> Nothing's changing.

:(

Sorry mate.  I'm outta ideas.  Again.

-- 
Troy Piggins             ,-O   (o-    O         All your sigs are belong to us.
http://piggo.com/~troy  O   )  //\     O
RLU#415538               `-O   V_/_  OOO
hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7
Re: [slrn]How to...?
#195650
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 02:55
20 lines
2399 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Troy Piggins wrote:

>>> We gotta be getting close now...
>>
>> Nothing's changing.
>
>:(
>
> Sorry mate.  I'm outta ideas.  Again.

Well, you haven't asked if .slrn was pointing slrn to the right directory
for macros yet...   :)


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195651
Author: Troy Piggins
Date: Fri, 16 Feb 2007 03:36
26 lines
2680 bytes
* Blinky the Shark is quoted & my replies are inline below :
> Troy Piggins wrote:
>> * Blinky the Shark is quoted & my replies are inline below :
>>> Troy Piggins wrote:
>
>>>> We gotta be getting close now...
>>>
>>> Nothing's changing.
>>
>>:(
>>
>> Sorry mate.  I'm outta ideas.  Again.
>
> Well, you haven't asked if .slrn was pointing slrn to the right directory
> for macros yet...   :)

Dare I?

PS - because of this mucking around I wrote another macro to make
manual and docs access easier for referencing within slrn.  Stay tuned.

-- 
Troy Piggins             ,-O   (o-    O         All your sigs are belong to us.
http://piggo.com/~troy  O   )  //\     O
RLU#415538               `-O   V_/_  OOO
hackerkey://v3sw5HPUhw5ln4pr6OSck1ma9u6LwXm5l6Di2e6t5MGSRb8OTen4g7OPa3Xs7MIr8p7
Re: [slrn]How to...?
#195655
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 08:04
30 lines
2821 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Troy Piggins wrote:
>>> * Blinky the Shark is quoted & my replies are inline below :
>>>> Troy Piggins wrote:
>>
>>>>> We gotta be getting close now...
>>>>
>>>> Nothing's changing.
>>>
>>>:(
>>>
>>> Sorry mate.  I'm outta ideas.  Again.
>>
>> Well, you haven't asked if .slrn was pointing slrn to the right directory
>> for macros yet...   :)
>
> Dare I?

Sure.  :)

> PS - because of this mucking around I wrote another macro to make
> manual and docs access easier for referencing within slrn.  Stay tuned.

Being a shark, I *can* wait with "baited breath".

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195663
Author: Whiskers
Date: Fri, 16 Feb 2007 14:57
49 lines
3766 bytes
On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:
>
>> Sorry if that was unclear.  There doesn't seem to be a 'leave messages
>> on server' equivalent for fetching messages from a 'local file'.  I
>> find the one copy is sufficient - on my system, KMail moves the
>> messages from ~/News/ to ~/.Mail/.Whiskers.directory/ 
>>
>> KMail does offer the option for a 'pre-command'; I've just put
>>
>>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>>
>> in that box (and created old_Posts using touch, so that it's there
>> when needed).  With a bit of luck that should result in all the sent
>> articles being preserved in both the ~/News/ directory and in a KMail
>> 'folder'.

There should be a > between the two file-names in that command, of course. 
<Doh>

> ---------- Second Response, After Doing A Little Work  -------------
>
> While I want to try *using* Kmail as a slrn-saves reader, I don't want
> to be dependent on it; i.e., I don't want it to *take over* and remove
> saves from ~/News/slrn.
>
> So here's what I just did...
>
> I left slrn putting saved messages in file ~/News/slrn/saves .  But I
> also created a ~/News/slrn/saves_archive/ directory.
>
> I pointed Kmail to ~/News/slrn/saves, and created a "slrn saves" folder
> there and a filter to direct slrn saves to that folder.  Then I made a
> Kmail precommand for that box to:
>
> cp ~/News/slrn/saves ~/News/slrn/saves_archive
>
> So before Greedy Kmail pulls new slrn saves into itself it copies them
> to the archive folder for safe keeping.

Does cp append the new text to the file in /saves_archive/ or does it
over-write the previous content?  The cat command 'concatenates' the file
content.  On my set-up, slrn "saves" articles by appending (or 
concatenating) them to a file with the name of the newsgroup concerned.  

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195664
Author: Whiskers
Date: Fri, 16 Feb 2007 15:13
29 lines
2786 bytes
On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:

snip

>> one copy is sufficient - on my system, KMail moves the messages from 
>> ~/News/ to ~/.Mail/.Whiskers.directory/ 
>
> I dunno where Kmail puts 'em here.  :)  I do have a Mail (not hidden)
> dir off ~/ but it's empty.

snip

Strange.  Mutt and other email clients all seem to have their own ideas 
about where to put stuff;  trying out several left things very confused on 
my first Mandrake installation.

Perhaps your distro and mine have different ideas too?

KMail being a KDE program puts some things in ~/.kde/ (which is horrible 
to navigate).  /var/spool/mail/ is another place to look - on my system 
that is used only for 'system' messages, which I pick up in KMail in the 
same way as I pick up slrn's sent_Posts (having aliased system messages to 
myself, if you see what I mean).

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195669
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 20:18
72 lines
4439 bytes
Whiskers wrote:
> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>>
>>> Sorry if that was unclear.  There doesn't seem to be a 'leave
>>> messages on server' equivalent for fetching messages from a 'local
>>> file'.  I find the one copy is sufficient - on my system, KMail
>>> moves the messages from ~/News/ to ~/.Mail/.Whiskers.directory/ 
>>>
>>> KMail does offer the option for a 'pre-command'; I've just put
>>>
>>>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>>>
>>> in that box (and created old_Posts using touch, so that it's there
>>> when needed).  With a bit of luck that should result in all the sent
>>> articles being preserved in both the ~/News/ directory and in a
>>> KMail 'folder'.
>
> There should be a > between the two file-names in that command, of
> course. 
><Doh>

I get an "operation not permitted" error with it or without it.

Wait...doesn't >> mean append?

<clickety>

<q>

3.2.2. Appending a File to Another File

This is fairly simple, "cat file1 >> file2" appends the text of the
first file to the end of the second file. Be careful, if you only use
one angle bracket (>) you will overwrite the contents of file2. 

</q>

>> ---------- Second Response, After Doing A Little Work  -------------
>>
>> While I want to try *using* Kmail as a slrn-saves reader, I don't
>> want to be dependent on it; i.e., I don't want it to *take over* and
>> remove saves from ~/News/slrn.
>>
>> So here's what I just did...
>>
>> I left slrn putting saved messages in file ~/News/slrn/saves .  But I
>> also created a ~/News/slrn/saves_archive/ directory.
>>
>> I pointed Kmail to ~/News/slrn/saves, and created a "slrn saves"
>> folder there and a filter to direct slrn saves to that folder.  Then
>> I made a Kmail precommand for that box to:
>>
>> cp ~/News/slrn/saves ~/News/slrn/saves_archive
>>
>> So before Greedy Kmail pulls new slrn saves into itself it copies
>> them to the archive folder for safe keeping.
>
> Does cp append the new text to the file in /saves_archive/ or does it
> over-write the previous content?  The cat command 'concatenates' the
> file content.  On my set-up, slrn "saves" articles by appending (or
> concatenating) them to a file with the name of the newsgroup
> concerned.  

My bad.  I didn't test thoroughly enough.  I've changed to cat, but as I
noted above in this reply it doesn't work.  Without >, with >, and with
>>.

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195670
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 20:33
44 lines
3499 bytes
Whiskers wrote:
> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>>
>>> Sorry if that was unclear.  There doesn't seem to be a 'leave messages
>>> on server' equivalent for fetching messages from a 'local file'.  I
>>> find the one copy is sufficient - on my system, KMail moves the
>>> messages from ~/News/ to ~/.Mail/.Whiskers.directory/ 
>>>
>>> KMail does offer the option for a 'pre-command'; I've just put
>>>
>>>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>>>
>>> in that box (and created old_Posts using touch, so that it's there
>>> when needed).  With a bit of luck that should result in all the sent
>>> articles being preserved in both the ~/News/ directory and in a KMail
>>> 'folder'.
>
> There should be a > between the two file-names in that command, of course. 
><Doh>
>
>> ---------- Second Response, After Doing A Little Work  -------------

Third Response:

Okay, I'm happening now, using Kmail precommand

cat ~/News/slrn/saves >> ~/News/slrn/saves_archive

Kmail appends whatever it finds to the second file before snatching the
saved files to its own Special Place.  The mutt shortcut runs this

/usr/bin/mutt -f ~/News/slrn/saves_archive

Now if Kmail ever hoses its own folder of these saves, I have them
backed up in the archive directory.  Since that *is* a BU, I don't
really need Mutt unless the Kmail copies are hosed, but since I started
with mutt for reading slrn saves I continued in that trajectory and set
it up to go there.  :)

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195671
Author: Blinky the Shark
Date: Fri, 16 Feb 2007 20:34
34 lines
2842 bytes
Whiskers wrote:
> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>
> snip
>
>>> one copy is sufficient - on my system, KMail moves the messages from 
>>> ~/News/ to ~/.Mail/.Whiskers.directory/ 
>>
>> I dunno where Kmail puts 'em here.  :)  I do have a Mail (not hidden)
>> dir off ~/ but it's empty.
>
> snip
>
> Strange.  Mutt and other email clients all seem to have their own ideas 
> about where to put stuff;  trying out several left things very confused on 
> my first Mandrake installation.
>
> Perhaps your distro and mine have different ideas too?
>
> KMail being a KDE program puts some things in ~/.kde/ (which is horrible 
> to navigate).  /var/spool/mail/ is another place to look - on my system 

IIRC, that's what mutt uses by default.

> that is used only for 'system' messages, which I pick up in KMail in the 

I get those, there, too.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195675
Author: Peter J Ross
Date: Fri, 16 Feb 2007 22:31
44 lines
3422 bytes
On 15 Feb 2007 19:43:18 GMT, Blinky the Shark <no.spam@box.invalid>
wrote in news.software.readers:

> Whiskers wrote:
>> On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>>> * Whiskers wrote in news.software.readers:
>>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>>> * Whiskers wrote in news.software.readers:
>>>
>>>>> [sn functinality]
>>>
>>>>>> You can subscribe to newsgroups on several upstream sites, and you
>>>>>> can create local newsgroups that are not propagated upstream.
>>>
>>>>> Leafnode does have this functionality but converting My_Posts to
>>>>> single articles and passing msgid's to leafnode would prove
>>>>> difficult me thinks.
>>>
>>>> sn includes a utility 'snmail' to which the instructions are to
>>>> 'pipe' email from within the email program used for receiving the
>>>> emails.  This seems to be the key to converting the email messages
>>>> into a news-spool.
>>>
>>> Nice! I imagine a perl script or similar could be written to
>>> breakdown slrns file, but its beyond my knowledge.
>>
>> KMail does it; when using the 'mailbox' file created by slrn as the
>> origin of incoming emails, KMail reads the messages in one at a time -
>> and will store them in its own maildir form, if you want (that's what
>> I have set up at present).  KMail also has various 'filter' facilities
>> that can be 
>
> I just set up Kmail for this.  Works fine, but it removes the articles
> from my slrn save directory.

So copy them twice, once to Kmail's maildir and once to a second mbox.
You can do this with Kmail's powerful filters.

Alternatively, duplicate Slrn's mbox frequently with a cron job. But
then there's a slight risk of losing one copy of a message if Kmail
and the cron job are working simultaneously.

-- 
PJR :-)
Re: [slrn]How to...?
#195676
Author: Whiskers
Date: Fri, 16 Feb 2007 22:32
78 lines
4682 bytes
On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:
>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>> Whiskers wrote:
>>>
>>>> Sorry if that was unclear.  There doesn't seem to be a 'leave
>>>> messages on server' equivalent for fetching messages from a 'local
>>>> file'.  I find the one copy is sufficient - on my system, KMail
>>>> moves the messages from ~/News/ to ~/.Mail/.Whiskers.directory/ 
>>>>
>>>> KMail does offer the option for a 'pre-command'; I've just put
>>>>
>>>>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>>>>
>>>> in that box (and created old_Posts using touch, so that it's there
>>>> when needed).  With a bit of luck that should result in all the sent
>>>> articles being preserved in both the ~/News/ directory and in a
>>>> KMail 'folder'.
>>
>> There should be a > between the two file-names in that command, of
>> course. 
>><Doh>
>
> I get an "operation not permitted" error with it or without it.

Permissions?

> Wait...doesn't >> mean append?
>
> <clickety>
>
> <q>
>
> 3.2.2. Appending a File to Another File
>
> This is fairly simple, "cat file1 >> file2" appends the text of the
> first file to the end of the second file. Be careful, if you only use
> one angle bracket (>) you will overwrite the contents of file2. 
>
> </q>

Did I claim to be able to count?   <sorry>

>>> ---------- Second Response, After Doing A Little Work  -------------
>>>
>>> While I want to try *using* Kmail as a slrn-saves reader, I don't
>>> want to be dependent on it; i.e., I don't want it to *take over* and
>>> remove saves from ~/News/slrn.
>>>
>>> So here's what I just did...
>>>
>>> I left slrn putting saved messages in file ~/News/slrn/saves .  But I
>>> also created a ~/News/slrn/saves_archive/ directory.
>>>
>>> I pointed Kmail to ~/News/slrn/saves, and created a "slrn saves"
>>> folder there and a filter to direct slrn saves to that folder.  Then
>>> I made a Kmail precommand for that box to:
>>>
>>> cp ~/News/slrn/saves ~/News/slrn/saves_archive
>>>
>>> So before Greedy Kmail pulls new slrn saves into itself it copies
>>> them to the archive folder for safe keeping.
>>
>> Does cp append the new text to the file in /saves_archive/ or does it
>> over-write the previous content?  The cat command 'concatenates' the
>> file content.  On my set-up, slrn "saves" articles by appending (or
>> concatenating) them to a file with the name of the newsgroup
>> concerned.  
>
> My bad.  I didn't test thoroughly enough.  I've changed to cat, but as I
> noted above in this reply it doesn't work.  Without >, with >, and with

Hmmm ... 

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195678
Author: Whiskers
Date: Fri, 16 Feb 2007 22:35
30 lines
2806 bytes
On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:
>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>> Whiskers wrote:

snip

> Third Response:
>
> Okay, I'm happening now, using Kmail precommand
>
> cat ~/News/slrn/saves >> ~/News/slrn/saves_archive
>
> Kmail appends whatever it finds to the second file before snatching the
> saved files to its own Special Place.  The mutt shortcut runs this
>
> /usr/bin/mutt -f ~/News/slrn/saves_archive
>
> Now if Kmail ever hoses its own folder of these saves, I have them
> backed up in the archive directory.  Since that *is* a BU, I don't
> really need Mutt unless the Kmail copies are hosed, but since I started
> with mutt for reading slrn saves I continued in that trajectory and set
> it up to go there.  :)

Neat  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195679
Author: Blinky the Shark
Date: Sat, 17 Feb 2007 01:54
48 lines
3674 bytes
Peter J Ross wrote:
> On 15 Feb 2007 19:43:18 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote in news.software.readers:
>
>> Whiskers wrote:
>>> On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>>>> * Whiskers wrote in news.software.readers:
>>>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>>>> * Whiskers wrote in news.software.readers:
>>>>
>>>>>> [sn functinality]
>>>>
>>>>>>> You can subscribe to newsgroups on several upstream sites, and you
>>>>>>> can create local newsgroups that are not propagated upstream.
>>>>
>>>>>> Leafnode does have this functionality but converting My_Posts to
>>>>>> single articles and passing msgid's to leafnode would prove
>>>>>> difficult me thinks.
>>>>
>>>>> sn includes a utility 'snmail' to which the instructions are to
>>>>> 'pipe' email from within the email program used for receiving the
>>>>> emails.  This seems to be the key to converting the email messages
>>>>> into a news-spool.
>>>>
>>>> Nice! I imagine a perl script or similar could be written to
>>>> breakdown slrns file, but its beyond my knowledge.
>>>
>>> KMail does it; when using the 'mailbox' file created by slrn as the
>>> origin of incoming emails, KMail reads the messages in one at a time -
>>> and will store them in its own maildir form, if you want (that's what
>>> I have set up at present).  KMail also has various 'filter' facilities
>>> that can be 
>>
>> I just set up Kmail for this.  Works fine, but it removes the articles
>> from my slrn save directory.
>
> So copy them twice, once to Kmail's maildir and once to a second mbox.
> You can do this with Kmail's powerful filters.

Fixed with a precommand for that box in Kmail.  If I read the
~/News/slrn/saves file with Kmail, Kmail first appends whatever it's
about to snatch to ~/News/slrn/saves_archive .


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195681
Author: Blinky the Shark
Date: Sat, 17 Feb 2007 01:55
55 lines
3586 bytes
Whiskers wrote:
> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>>> Whiskers wrote:
>>>>
>>>>> Sorry if that was unclear.  There doesn't seem to be a 'leave
>>>>> messages on server' equivalent for fetching messages from a 'local
>>>>> file'.  I find the one copy is sufficient - on my system, KMail
>>>>> moves the messages from ~/News/ to ~/.Mail/.Whiskers.directory/ 
>>>>>
>>>>> KMail does offer the option for a 'pre-command'; I've just put
>>>>>
>>>>>     cat /home/mark/News/slrn_Posts /home/mark/News/old_Posts
>>>>>
>>>>> in that box (and created old_Posts using touch, so that it's there
>>>>> when needed).  With a bit of luck that should result in all the sent
>>>>> articles being preserved in both the ~/News/ directory and in a
>>>>> KMail 'folder'.
>>>
>>> There should be a > between the two file-names in that command, of
>>> course. 
>>><Doh>
>>
>> I get an "operation not permitted" error with it or without it.
>
> Permissions?

No.

I misspelled a string in the precommand.  :)

>> Wait...doesn't >> mean append?
>>
>> <clickety>
>>
>> <q>
>>
>> 3.2.2. Appending a File to Another File
>>
>> This is fairly simple, "cat file1 >> file2" appends the text of the
>> first file to the end of the second file. Be careful, if you only use
>> one angle bracket (>) you will overwrite the contents of file2. 
>>
>> </q>
>
> Did I claim to be able to count?   <sorry>

No, you didn't.  :)


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195682
Author: Peter J Ross
Date: Sat, 17 Feb 2007 02:06
56 lines
3932 bytes
On 17 Feb 2007 01:54:54 GMT, Blinky the Shark <no.spam@box.invalid>
wrote in news.software.readers:

> Peter J Ross wrote:
>> On 15 Feb 2007 19:43:18 GMT, Blinky the Shark <no.spam@box.invalid>
>> wrote in news.software.readers:
>>
>>> Whiskers wrote:
>>>> On 2007-02-15, SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>>>>> * Whiskers wrote in news.software.readers:
>>>>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>>>>> * Whiskers wrote in news.software.readers:
>>>>>
>>>>>>> [sn functinality]
>>>>>
>>>>>>>> You can subscribe to newsgroups on several upstream sites, and you
>>>>>>>> can create local newsgroups that are not propagated upstream.
>>>>>
>>>>>>> Leafnode does have this functionality but converting My_Posts to
>>>>>>> single articles and passing msgid's to leafnode would prove
>>>>>>> difficult me thinks.
>>>>>
>>>>>> sn includes a utility 'snmail' to which the instructions are to
>>>>>> 'pipe' email from within the email program used for receiving the
>>>>>> emails.  This seems to be the key to converting the email messages
>>>>>> into a news-spool.
>>>>>
>>>>> Nice! I imagine a perl script or similar could be written to
>>>>> breakdown slrns file, but its beyond my knowledge.
>>>>
>>>> KMail does it; when using the 'mailbox' file created by slrn as the
>>>> origin of incoming emails, KMail reads the messages in one at a time -
>>>> and will store them in its own maildir form, if you want (that's what
>>>> I have set up at present).  KMail also has various 'filter' facilities
>>>> that can be 
>>>
>>> I just set up Kmail for this.  Works fine, but it removes the articles
>>> from my slrn save directory.
>>
>> So copy them twice, once to Kmail's maildir and once to a second mbox.
>> You can do this with Kmail's powerful filters.
>
> Fixed with a precommand for that box in Kmail.  If I read the
> ~/News/slrn/saves file with Kmail, Kmail first appends whatever it's
> about to snatch to ~/News/slrn/saves_archive .

Please post your precommand. I want to steal it.

Btw, I'm pleased to see that I'm not the only Slrn user who finds
Kmail more convenient than Mutt+Procmail+scripts. Kmail is great,
isn't it?



-- 
PJR :-)
Re: [slrn]How to...?
#195696
Author: Dave Gibson
Date: Sat, 17 Feb 2007 11:03
210 lines
7497 bytes
SINNER <99nesorjd@gates_of_hell.invalid> wrote:
> * Whiskers wrote in news.software.readers:
>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>> * Whiskers wrote in news.software.readers:
> 
>>> [sn functinality]
> 
>>>> You can 
>>>> subscribe to newsgroups on several upstream sites, and you can create 
>>>> local newsgroups that are not propagated upstream.
> 
>>> Leafnode does have this functionality but converting My_Posts to single 
>>> articles and passing msgid's to leafnode would prove difficult me thinks.
> 
>> sn includes a utility 'snmail' to which the instructions are to 'pipe'
>> email from within the email program used for receiving the emails.  This 
>> seems to be the key to converting the email messages into a news-spool.
> 
> Nice! I imagine a perl script or similar could be written to breakdown
> slrns file, but its beyond my knowledge.

Awk and inews seem ok.

A few of the variables used in the repost_mbox script (below) may be set
on the command line (via awk -v var=value -v var=value):

    first_post=N
      Posting begins with the Nth message in the digest.
      Defaults to the first message in the file.

    last_post=N
      Posting ends with the Nth message in the digest.
      Defaults to the last message in the file.

    host_name="xxx.yyy.zzz"
      Use xxx.yyy.zzz as hostname when generating message-ids.
      Defaults to the first name in /etc/HOSTNAME or the output of
      the hostname command if /etc/HOSTNAME is unavailable.
      
  Use like this:

    nawk -v first_post=10 -v last_post=15 -v host_name="wabbit.name" \
         -f repost_mbox ~/.slrn/Your_Posts

On the first run, just post everything in the digest and make a note of
how many messages were posted.  On following runs, specify the updated
posts only:

  $ nawk -f repost_mbox your_posts_as_an_mbox
  Posting message 1
  [...]
  Posting message 1182

Send a few posts, then:

  $ nawk -v first_post=1183 -f repost_mbox ~/.slrn/Posts

The script has to run through the whole digest to do the MID fixups.

Look for '@@@@' to see suggested edit locations.

The script is currently set up to use cat, rather than inews, and just
prints the messages on stdout.

---- repost_mbox begins
#! /usr/bin/nawk -f

BEGIN {
  local_group = "local.posted"    # @@@@ The local group to post to.
  x_prefix = "X-Prior-"           # @@@@ Used to re-name some headers.
  msgid_pfx = "local-repost-"     # @@@@ prefix for generated MIDs
  out_proc = "cat"                # @@@@ "cat" for testing
  #out_proc = "inews"             # @@@@ "inews" for real
  host_name = get_hostname(host_name)
  if (host_name == "") {
    print "No hostname?  Bye."
    exit
  }
  ctr = 0
  outf = "/dev/null"
}

  # New message.
/^From / {                        
  close(outf)
  ++ctr
  msgid = generate_msgid(ctr, host_name)
  if (ctr >= first_post && (last_post == 0 || ctr <= last_post)) {
    print_ok = 1
    printf "Posting message %d\n", ctr
  } else
    print_ok = 0
  outf = out_proc
  in_hdr = 1
  next
}

  # A header line beginning with white space continues the previous line.
pending_hdr && /^[[:space:]]/ {
  pending_hdr = pending_hdr "\n" $0
  next
}

  # Note: this rule must follow the pending_hdr && /^[[:space:]]/ rule
  #       to catch both /^[^[:space:]]/ and /^$/
pending_hdr {
  if (in_ref) {
    # pending_hdr is the References: line.  Copy the MIDs across to the new
    # References: header, updating MIDs to reflect reposting into the local
    # group where appropriate.  This should preserve threading.
    references = ""
    n = split(pending_hdr, r, /[[:space:]]+/)
    for (i = 2; i <= n; i++) {
      if (r[i] in msgid_map)
        references = references " " msgid_map[r[i]]
      else
        references = references " " r[i]
    }
    if (references)
      references = "References:" references
    in_ref = 0
  }
  maybe_print(pending_hdr)
  pending_hdr = ""
}

  # Lose the Xref: header.  (May be unnecessary?)
in_hdr && /^[Xx][Rr][Ee][Ff]:/ {
  pending_hdr = x_prefix $0
  next
}

  # Replace the Newsgroups: line.  (Avoid re-posting to original groups.)
in_hdr && /^[Nn][Ee][Ww][Ss][Gg][Rr][Oo][Uu][Pp][Ss]:/ {
  pending_hdr = x_prefix $0
  next
}

  # Replace the References: header -- reflect new MIDs.
in_hdr && /^[Rr][Ee][Ff][Ee][Rr][Ee][Nn][Cc][Ee][Ss]:/ {
  pending_hdr = x_prefix $0
  in_ref = 1
  next
}

  # The Message-ID has to be replaced to avoid a MID collision when a post
  # being sent to the local group is rejected due to the original (public)
  # post not yet having expired from the public groups.
  # The new MID is stored in an array, keyed on the original Message-ID,
  # allowing a quick look-up when building the new References: header.
in_hdr && /^[Mm][Ee][Ss][Ss][Aa][Gg][Ee]-[Ii][Dd]:/ {
  msgid_map[$2] = msgid
  $0 = x_prefix $0
}

  # Empty line marks end of header, insert new headers.
in_hdr && /^$/ {
  maybe_print("Newsgroups: " local_group)
  maybe_print("Message-ID: " msgid)
  if (references) {
    maybe_print(references)
    references = ""
  }
  in_hdr = 0
}

{
  maybe_print($0)
}

END {
  close(outf)
}

#
# Support functions
#

function maybe_print(what) {
  if (print_ok)
    print what | outf
}

function generate_msgid(num, nam,        rc) {
  rc = sprintf("<%s%08d@%s>", msgid_pfx, num, nam)
  return rc
}

  # This is only called once, optimisation is futile.
function get_hostname(d,    rc, f) {
  rc = d
  if (rc == "") {
    f = "/etc/HOSTNAME"
    while (getline < f == 1) {
      if ($0 !~ /^[[:space:]]*#/) {
        rc = $1
        break
      }
    }
    close(f)
  }
  if (rc == "") {
    # Maybe leafnode will accept hostname's output, maybe not.
    f = "hostname"
    f | getline rc
    close(f)
  }
  return rc
}
---- repost_mbox ends
Re: [slrn]How to...?
#195698
Author: Whiskers
Date: Sat, 17 Feb 2007 14:13
32 lines
2789 bytes
On 2007-02-17, Peter J Ross <pjr@example.invalid> wrote:
> On 17 Feb 2007 01:54:54 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote in news.software.readers:
>
>> Peter J Ross wrote:
>>> On 15 Feb 2007 19:43:18 GMT, Blinky the Shark <no.spam@box.invalid>
>>> wrote in news.software.readers:

snip

>> Fixed with a precommand for that box in Kmail.  If I read the
>> ~/News/slrn/saves file with Kmail, Kmail first appends whatever it's
>> about to snatch to ~/News/slrn/saves_archive .
>
> Please post your precommand. I want to steal it.

Mine is 

    cat /home/mark/News/slrn_Posts >> /home/mark/News/old_Posts

(after I'd got the number of > correct!)

> Btw, I'm pleased to see that I'm not the only Slrn user who finds
> Kmail more convenient than Mutt+Procmail+scripts. Kmail is great,
> isn't it?

It certainly has a lot of things going for it  :))

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195699
Author: Whiskers
Date: Sat, 17 Feb 2007 14:15
25 lines
2579 bytes
On 2007-02-17, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:
>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>> Whiskers wrote:
>>>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>>>> Whiskers wrote:

snip

>>> I get an "operation not permitted" error with it or without it.
>>
>> Permissions?
>
> No.
>
> I misspelled a string in the precommand.  :)

I think that makes us even  <G>

snip

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195715
Author: Blinky the Shark
Date: Sat, 17 Feb 2007 22:06
23 lines
2458 bytes
Peter J Ross wrote:
> On 17 Feb 2007 01:54:54 GMT, Blinky the Shark <no.spam@box.invalid>

>> Fixed with a precommand for that box in Kmail.  If I read the
>> ~/News/slrn/saves file with Kmail, Kmail first appends whatever it's
>> about to snatch to ~/News/slrn/saves_archive .
>
> Please post your precommand. I want to steal it.

cat ~/News/slrn/saves >> ~/News/slrn/saves_archive

> Btw, I'm pleased to see that I'm not the only Slrn user who finds
> Kmail more convenient than Mutt+Procmail+scripts. Kmail is great,
> isn't it?

I like it.



-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195716
Author: Blinky the Shark
Date: Sat, 17 Feb 2007 22:08
28 lines
2766 bytes
Whiskers wrote:
> On 2007-02-17, Blinky the Shark <no.spam@box.invalid> wrote:
>> Whiskers wrote:
>>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>>> Whiskers wrote:
>>>>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>>>>> Whiskers wrote:
>
> snip
>
>>>> I get an "operation not permitted" error with it or without it.
>>>
>>> Permissions?
>>
>> No.
>>
>> I misspelled a string in the precommand.  :)
>
> I think that makes us even  <G>

Ayup.  :)   I spelled "archive" "archivee".  Duh.  It was off the end of
the input box so I didn't see it.


-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195721
Author: Whiskers
Date: Sun, 18 Feb 2007 00:02
30 lines
2861 bytes
On 2007-02-17, Blinky the Shark <no.spam@box.invalid> wrote:
> Whiskers wrote:
>> On 2007-02-17, Blinky the Shark <no.spam@box.invalid> wrote:
>>> Whiskers wrote:
>>>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>>>> Whiskers wrote:
>>>>>> On 2007-02-16, Blinky the Shark <no.spam@box.invalid> wrote:
>>>>>>> Whiskers wrote:
>>
>> snip
>>
>>>>> I get an "operation not permitted" error with it or without it.
>>>>
>>>> Permissions?
>>>
>>> No.
>>>
>>> I misspelled a string in the precommand.  :)
>>
>> I think that makes us even  <G>
>
> Ayup.  :)   I spelled "archive" "archivee".  Duh.  It was off the end of
> the input box so I didn't see it.

The Machines are Out to Get Us.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: [slrn]How to...?
#195754
Author: Peter J Ross
Date: Mon, 19 Feb 2007 14:40
19 lines
2355 bytes
On 17 Feb 2007 22:06:10 GMT, Blinky the Shark <no.spam@box.invalid>
wrote in news.software.readers:

> Peter J Ross wrote:
>> On 17 Feb 2007 01:54:54 GMT, Blinky the Shark <no.spam@box.invalid>
>
>>> Fixed with a precommand for that box in Kmail.  If I read the
>>> ~/News/slrn/saves file with Kmail, Kmail first appends whatever it's
>>> about to snatch to ~/News/slrn/saves_archive .
>>
>> Please post your precommand. I want to steal it.
>
> cat ~/News/slrn/saves >> ~/News/slrn/saves_archive

Simple and elegant. Thanks to you and Whiskers.


-- 
PJR :-)
Re: [slrn]How to...?
#195768
Author: Blinky the Shark
Date: Mon, 19 Feb 2007 19:42
26 lines
2784 bytes
Peter J Ross wrote:
> On 17 Feb 2007 22:06:10 GMT, Blinky the Shark <no.spam@box.invalid>
> wrote in news.software.readers:
>
>> Peter J Ross wrote:
>>> On 17 Feb 2007 01:54:54 GMT, Blinky the Shark <no.spam@box.invalid>
>>
>>>> Fixed with a precommand for that box in Kmail.  If I read the
>>>> ~/News/slrn/saves file with Kmail, Kmail first appends whatever it's
>>>> about to snatch to ~/News/slrn/saves_archive .
>>>
>>> Please post your precommand. I want to steal it.
>>
>> cat ~/News/slrn/saves >> ~/News/slrn/saves_archive
>
> Simple and elegant. Thanks to you and Whiskers.

Of course it's not good if you want to keep your saves spread out among
various files, by group, as slrn defaults to.  I don't know if that can
be defeated, but once I do a save to ~/News/slrn/saves it at least
retains that for the session.

-- 
Blinky                                                   RLU 297263 
Killing all posts from Google Groups
The Usenet Improvement Project: http://blinkynet.net/comp/uip5.html
Re: [slrn]How to...?
#195772
Author: SINNER
Date: Mon, 19 Feb 2007 20:53
34 lines
2652 bytes
* Dave Gibson wrote in news.software.readers:

> SINNER <99nesorjd@gates_of_hell.invalid> wrote:
>> * Whiskers wrote in news.software.readers:
>>> On 2007-02-14, SINNER <arcade.master@gmail.com> wrote:
>>>> * Whiskers wrote in news.software.readers:
>> 
>>>> [sn functinality]
>> 
>>>>> You can 
>>>>> subscribe to newsgroups on several upstream sites, and you can
>>>>> create local newsgroups that are not propagated upstream.
>> 
>>>> Leafnode does have this functionality but converting My_Posts to
>>>> single articles and passing msgid's to leafnode would prove
>>>> difficult me thinks. 
>> 
>>> sn includes a utility 'snmail' to which the instructions are to
>>> 'pipe' email from within the email program used for receiving the
>>> emails.  This seems to be the key to converting the email messages
>>> into a news-spool. 
>> 
>> Nice! I imagine a perl script or similar could be written to
>> breakdown slrns file, but its beyond my knowledge.
> 
> Awk and inews seem ok.
> 

[...]

Thanks Dave, I will toy with this...

-- 
David
Page 2 of 2 • 85 total messages
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