🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Njal Wed, 30 Nov 2005 02:31
[Xnews] Decoding directory automatically based on queue name ?
#176864
Author: Njal
Date: Wed, 30 Nov 2005 02:31
23 lines
1668 bytes
Hi.

Is there a way for Xnews to automatically use/create a subdirectory to 
decode binaries based on Queue folder name ? (Something similar, yet 
different, of "same newsgroup name - same folder name" advanced trick found 
in the manual).

I regularly download binaries from different queues, up to 4 simultaneous 
threads. To avoid messing files from different queues, I manually ask Xnews 
to download in a distinct directory than the default one.

Ex:

Queue1 --> [default decoding directory]\1
Queue2 --> [default decoding directory]\2
Queue3 --> [default decoding directory]\3
Queue4 --> [default decoding directory]\4

The little "problem" I have is that I often forget to point to the 
appropriate directory. INI settings to do this automatically would be a 
nice improvement.

Otherwise, I am still and will always be totally faithful to Xnews. :-)
Re: [Xnews] Decoding directory automatically based on queue name ?
#176880
Author: Guy
Date: Wed, 30 Nov 2005 05:56
34 lines
2411 bytes
Njal wrote:


> I regularly download binaries from different queues, up to 4
> simultaneous threads. To avoid messing files from different
> queues, I manually ask Xnews to download in a distinct directory
> than the default one. 
> 
> Ex:
> 
>Queue1 --> [default decoding directory]\1
>Queue2 --> [default decoding directory]\2
>Queue3 --> [default decoding directory]\3
>Queue4 --> [default decoding directory]\4
> 

Make the subdirectories first, then in the Groups.ini file:

[Queue1]
DecodeDir=X:\[default decoding directory]\1

[Queue2]
DecodeDir=X:\[default decoding directory]\2

[Queue3]
DecodeDir=X:\[default decoding directory]\3

[Queue4]
DecodeDir=X:\[default decoding directory]\4

-- 
Guy
Xnews "XP" Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] Decoding directory automatically based on queue name ?
#176911
Author: Tech Zero
Date: Wed, 30 Nov 2005 19:59
26 lines
2162 bytes
Reality folded in on itself, and somewhere the following words from 
"Guy" appeared in history:

>> I regularly download binaries from different queues, up to 4
>> simultaneous threads. To avoid messing files from different
>> queues, I manually ask Xnews to download in a distinct directory
>> than the default one. 
 
> Make the subdirectories first, then in the Groups.ini file:
> 
> [Queue1]
> DecodeDir=X:\[default decoding directory]\1

  <snip>

Unfortunatly this dosn't work... Xnews only looks at the newsgroup when 
checking "DecodeDir" and not the folder.

My recomadation, just set Xnews to ask where you want to decode. It 
will start at whatever default directory you set and you can easily add 
new folders in the window's dialog (that's what Xnews calls).

-- 
Maxx "What's That Score" Pollare...

* Score-File Dump: http://www.dragonfur.ca/nowhere *
Re: [Xnews] Decoding directory automatically based on queue name ?
#176918
Author: Guy
Date: Wed, 30 Nov 2005 22:06
35 lines
2677 bytes
Tech Zero wrote:

> Reality folded in on itself, and somewhere the following words
> from "Guy" appeared in history:
> 
>>> I regularly download binaries from different queues, up to 4
>>> simultaneous threads. To avoid messing files from different
>>> queues, I manually ask Xnews to download in a distinct directory
>>> than the default one. 
>  
>> Make the subdirectories first, then in the Groups.ini file:
>> 
>> [Queue1]
>> DecodeDir=X:\[default decoding directory]\1
> 
>   <snip>
> 
> Unfortunatly this dosn't work... Xnews only looks at the newsgroup
> when checking "DecodeDir" and not the folder.
> 

Yes it works else I would not have written so.

Of course [group.expression] must match the unique Queue folder.
Proper INI order and/or "Continue=1" may effect your result.

[sent|outbox]
SortOn=Group
SortOrder=-1
OnLoaded=acvRemoveFilter+

-- 
Guy
Xnews "XP" Icon Patcher Files
<http://xnews-icon-patchers.bebto.com/patcher.html>
Re: [Xnews] Decoding directory automatically based on queue name ?
#176919
Author: Njal
Date: Wed, 30 Nov 2005 22:08
12 lines
1561 bytes
Tech Zero <uselesspam@dragonfur.ca> wrote in 
news:Xns971E843153989AlphaTwo@octanews.com:

> My recomadation, just set Xnews to ask where you want to decode. It 
> will start at whatever default directory you set and you can easily add 
> new folders in the window's dialog (that's what Xnews calls).

This is what I've been doing for years. Unfortunately, I have the brain of 
a pidgeon and I often press F4 without poiting to appropriate subdir... 
This is why an automation would have been nice. But as I said previously, 
if it ain't available, it is not a matter of life and death. I would live 
with that.
Re: [Xnews] Decoding directory automatically based on queue name ?
#176945
Author: Tech Zero
Date: Thu, 01 Dec 2005 12:14
72 lines
3318 bytes
Reality folded in on itself, and somewhere the following words from 
"Guy" appeared in history:

  <snip>
 
>> Unfortunatly this dosn't work... Xnews only looks at the newsgroup
>> when checking "DecodeDir" and not the folder.
> 
> Yes it works else I would not have written so.
> 
> Of course [group.expression] must match the unique Queue folder.
> Proper INI order and/or "Continue=1" may effect your result.
> 
> [sent|outbox]
> SortOn=Group
> SortOrder=-1
> OnLoaded=acvRemoveFilter+


Perhaps it would be better if I re-phrased it.

For any group expression one should expect that all entries within 
that expression to work correctly. Unfortunatly this is not always 
the case, since the entries "AttachDir" or "DecodeDir" ONLY use the 
XREF header when testing for a match.


If you doubt this, try the following...

  - save you current "Groups.ini" as "groups.ini.old"
  - Create the test folder "Testage" in "C" with the sub-folders:
      Tomatos, Apples, Oranges, Bannanas, & Melons
  - Create the temp Groups.ini uisng the entries bellow...
  - Create any number of Queue files starting with "Que_"
  - Go try to download something using those Queue files...

No matter what binary group you try you'll never get the default 
folder "C:\Testage\Tomatos", even though these entries should always 
"throw you to the Tomatos"... };8)


  ----- The Fruit Test -----

[~binar(ies|ios)|Que_]
OnLoaded=acvWordWrap+

[^Que_]
AttachDir=C:\Testage\Tomatos
DecodeDir=C:\Testage\Tomatos

[anime|toon|comic]
AttachDir=C:\Testage\Apples
DecodeDir=C:\Testage\Apples

[picture]
AttachDir=C:\Testage\Oranges
DecodeDir=C:\Testage\Oranges

[sound|music|mp3]
AttachDir=C:\Testage\Bannanas
DecodeDir=C:\Testage\Bannanas

[media|movie|divx]
AttachDir=C:\Testage\Melons
DecodeDir=C:\Testage\Melons

  ------- Basket End -------

-- 
Maxx "What's That Score" Pollare...

* Score-File Dump: http://www.dragonfur.ca/nowhere *
Re: [Xnews] Decoding directory automatically based on queue name ?
#176953
Author: Guy
Date: Thu, 01 Dec 2005 13:03
96 lines
4478 bytes
Tech Zero wrote:

> Reality folded in on itself, and somewhere the following words from 
> "Guy" appeared in history:
> 
>   <snip>
>  
>>> Unfortunatly this dosn't work... Xnews only looks at the newsgroup
>>> when checking "DecodeDir" and not the folder. 
>> 
>> Yes it works else I would not have written so.
>> 
>> Of course [group.expression] must match the unique Queue folder.
>> Proper INI order and/or "Continue=1" may effect your result.
>> 
>> [sent|outbox]
>> SortOn=Group
>> SortOrder=-1
>> OnLoaded=acvRemoveFilter+
> 
> 
> Perhaps it would be better if I re-phrased it.
> 
> For any group expression one should expect that all entries within 
> that expression to work correctly. Unfortunatly this is not always 
> the case, since the entries "AttachDir" or "DecodeDir" ONLY use the 
> XREF header when testing for a match.
> 
> 
> If you doubt this, try the following...
> 
>   - save you current "Groups.ini" as "groups.ini.old"
>   - Create the test folder "Testage" in "C" with the sub-folders:
>       Tomatos, Apples, Oranges, Bannanas, & Melons
>   - Create the temp Groups.ini uisng the entries bellow...
>   - Create any number of Queue files starting with "Que_"
>   - Go try to download something using those Queue files...
> 
> No matter what binary group you try you'll never get the default 
> folder "C:\Testage\Tomatos", even though these entries should always 
> "throw you to the Tomatos"... };8)
> 
> 

I did your test. From each of the created Queues 
the attachments saved and Decoded into Tomatos.

Only when decoding from a Group did a attachment go elsewhere.


D:\XNEWS>cat groups.ini
[~binar(ies|ios)|Que_]
OnLoaded=acvWordWrap+

[^Que_]
AttachDir=M:\testage\tomatos
DecodeDir=M:\testage\tomatos

[anime|toon|comic]
AttachDir=M:\testage\apples
DecodeDir=M:\testage\apples

[picture]
AttachDir=M:\testage\oranges
DecodeDir=M:\testage\oranges

[sound|music|mp3]
AttachDir=M:\testage\bannanas
DecodeDir=M:\testage\bannanas

[media|movie|divx]
AttachDir=M:\testage\melons
DecodeDir=M:\testage\melons

M:\>dir /s /p /b
M:\testage
M:\testage\tomatos
M:\testage\apples
M:\testage\oranges
M:\testage\bannanas
M:\testage\melons
M:\testage\apples\Elevator_11.jpg
M:\testage\tomatos\JAB_035.jpg
M:\testage\tomatos\Master List WW2.txt
M:\testage\tomatos\mars91105-01.jpg


Elevator_11.jpg came from reading a article in a toon group.

JAB_035.jpg , Que_1 , Newsgroups: alt.binaries.pictures.cartoon
mars91105-01.jpg , Que_2 , Newsgroups: alt.binaries.pictures.astro
Master List WW2.txt , Que_3 , Newsgroups: alt.binaries.multimedia.aviation

-- 
OpenPGP: id=18795161E22D3905; preference=signencrypt;
            url=http://guysalias.batcave.net/pgpkeys.txt
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