wwwoffle-users  

[WWWOFFLE-Users] fetaure idea: allow multiple included files in a section

Miernik
Sun, 26 Feb 2006 22:39:42 -0800

Currently one can only include one file in each section, like this:

DontGet
[
wwwoffle.DontGet.conf
]


It would be very useful, and probably even more simple to implement, to
allow multiple files to be included, like this:

DontGet
[
wwwoffle.DontGet-ads.conf
wwwoffle.DontGet-counters.conf
wwwoffle.DontGet-non_essential_graphics.conf
]

This would ease very much automated changes in configuration with
scripts, for example if we are at home with boardband we could have a
script that detects that we have our broadband IP to move
wwwoffle.DontGet-non_essential_graphics.conf out of the way replacing it
with an empty file, and run 'wwwoffle -config'. Then when we go on the
road and have only GPRS, it would reverse the operation. This of course
is an example of usage if you use WWWOFFLE on a laptop.


Another usefule enhancement would be to allow both [] and {} in one
section, for example like this:

DontGet
[
wwwoffle.DontGet-ads.conf
wwwoffle.DontGet-counters.conf
wwwoffle.DontGet-non_essential_graphics.conf
]{
                replacement = /local/dontget/replacement.png
<*://*/*.bzip2> get-recursive = no
<*://*/*.gz>    get-recursive = no
}

This would allow URL specific, especially having a long list of URLs to
be in the seprate files, and a few general options in the main file,
making it clearer to manage.


Both above features together is a rather small proposal, but I think its
usefullness/burden_to_implement ratio is very high.


-- 
Miernik             _________________________  xmpp:[EMAIL PROTECTED]
___________________/_______________________/      [EMAIL PROTECTED]
Why software shouldn't be covered by patents
http://bladeenc.mp3.no/articles/software_patents.html