🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Krzysztof Trybowski Tue, 21 Sep 2004 15:02
[Dialog] NNTP-Posting-Host watching
#155929
Author: Krzysztof Trybowski
Date: Tue, 21 Sep 2004 15:02
9 lines
1465 bytes
Hello

Is it possible to do action based on NNTP-Posting-Host header? The
following entry isn't accepted:

!setcolor(navy;aqua),watch,retrieve NNTP-Posting-Host
zj170.internetdsl.tpnet.pl

Thanks,
Re: [Dialog] NNTP-Posting-Host watching
#155930
Author: Henrik K Hansen
Date: Tue, 21 Sep 2004 15:42
9 lines
1584 bytes
Krzysztof Trybowski, wrote:

> !setcolor(navy;aqua),watch,retrieve NNTP-Posting-Host
> zj170.internetdsl.tpnet.pl

Try
 !setcolor(navy;aqua),watch,retrieve Header "NNTP-Posting-Host: zj170.internetdsl.tpnet.pl"
or
!setcolor(navy;aqua),watch,retrieve Header {\bNNTP-Posting-Host: zj170.internetdsl.tpnet.pl\b}
Re: [Dialog] NNTP-Posting-Host watching
#155942
Author: daRkSidE
Date: Tue, 21 Sep 2004 22:17
15 lines
1818 bytes
In data Tue, 21 Sep 2004 17:42:04 +0200, Henrik K Hansen ha scritto:

> !setcolor(navy;aqua),watch,retrieve Header {\bNNTP-Posting-Host: zj170.internetdsl.tpnet.pl\b}

| !setcolor(navy;aqua),watch,retrieve Header {^NNTP-Posting-Host: zj170\.internetdsl\.tpnet\.pl}

Take care that "zj170.internetdsl.tpnet.pl" must follow the header, and
this is different from other default field.

This is can be solved by a similar expression:

| !setcolor(navy;aqua),watch,retrieve Header {^NNTP-Posting-Host:.+zj170\.internetdsl\.tpnet\.pl}

-- 
daRkSidE, 21.09.2004 23:34:55
Re: [Dialog] NNTP-Posting-Host watching
#155948
Author: Krzysztof Trybowski
Date: Wed, 22 Sep 2004 11:09
19 lines
2171 bytes
On Tue, 21 Sep 2004 22:17:36 GMT, daRkSidE wrote:

>> !setcolor(navy;aqua),watch,retrieve Header {\bNNTP-Posting-Host: zj170.internetdsl.tpnet.pl\b}
> 
>| !setcolor(navy;aqua),watch,retrieve Header {^NNTP-Posting-Host: zj170\.internetdsl\.tpnet\.pl}
> 
> Take care that "zj170.internetdsl.tpnet.pl" must follow the header, and
> this is different from other default field.

I don't really understand. What could be wrong with this?

> 
> This is can be solved by a similar expression:
> 
>| !setcolor(navy;aqua),watch,retrieve Header {^NNTP-Posting-Host:.+zj170\.internetdsl\.tpnet\.pl}

This works, thanks. The previous example workes also :). Thanks!

Regards,
Re: [Dialog] NNTP-Posting-Host watching
#155961
Author: daRkSidE
Date: Wed, 22 Sep 2004 19:21
28 lines
1926 bytes
In data Wed, 22 Sep 2004 13:09:18 +0200, Krzysztof Trybowski ha
scritto:

>> Take care that "zj170.internetdsl.tpnet.pl" must follow the header, and
>> this is different from other default field.
> I don't really understand. What could be wrong with this?

If the header is:

NNTP-Posting-Host: zj170.internetdsl.tpnet.pl

all three rules match.

If the header is (hypotetically):

NNTP-Posting-Host: Posted by zj170.internetdsl.tpnet.pl

only:

| !setcolor(navy;aqua),watch,retrieve Header {^NNTP-Posting-Host:.+zj170\.internetdsl\.tpnet\.pl}

matchs.

If you have a rules based on a default-field (e.g. From), you don't
consider this thing normally.

-- 
daRkSidE, 22.09.2004 21:03:47
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