🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Gord McFee Tue, 01 Jun 2004 19:42
[Dialog] Actions on Content-type header
#149234
Author: Gord McFee
Date: Tue, 01 Jun 2004 19:42
13 lines
1336 bytes
I am trying to set up a "move" action to move all emails with a text/html
entry in the Content-Type to a Spam folder.  The expression I tried is:

!move(Spam) Content-Type "text/html"

but Dialog returns an error message saying that Content-Type is an invalid
default header.

Is there a way to score on the Content-Type header?

-- 
Gord McFee
I'll write no line before its time
Re: [Dialog] Actions on Content-type header
#149249
Author: Carl Drud
Date: Tue, 01 Jun 2004 19:53
10 lines
1643 bytes
On Tue, 1 Jun 2004 15:42:50 -0400, Gord McFee wrote:

> Is there a way to score on the Content-Type header?

How about adding "Header", like this:

!move(Spam) Header Content-Type "text/html"

-- 
.sig not found. (A)bort, (R)etry, (F)ail?
Re: [Dialog] Actions on Content-type header
#149274
Author: Gord McFee
Date: Tue, 01 Jun 2004 23:15
15 lines
1378 bytes
On Tue, 01 Jun 2004 21:53:28 +0200, Carl Drud wrote:

> On Tue, 1 Jun 2004 15:42:50 -0400, Gord McFee wrote:
> 
>> Is there a way to score on the Content-Type header?
> 
> How about adding "Header", like this:
> 
> !move(Spam) Header Content-Type "text/html"

That was exactly it.  Many thanks.

-- 
Gord McFee
I'll write no line before its time
Re: [Dialog] Actions on Content-type header
#149310
Author: Gord McFee
Date: Wed, 02 Jun 2004 14:22
22 lines
1670 bytes
On Tue, 1 Jun 2004 19:15:33 -0400, Gord McFee wrote:

> On Tue, 01 Jun 2004 21:53:28 +0200, Carl Drud wrote:
> 
>> On Tue, 1 Jun 2004 15:42:50 -0400, Gord McFee wrote:
>> 
>>> Is there a way to score on the Content-Type header?
>> 
>> How about adding "Header", like this:
>> 
>> !move(Spam) Header Content-Type "text/html"
> 
> That was exactly it.  Many thanks.

Spoke to soon.  That syntax moves everything with a Content-type header to
the Spam folder.  Should perhaps the syntax be:

!move(Spam) Header "Content-Type: text/html"

-- 
Gord McFee
I'll write no line before its time
Re: [Dialog] Actions on Content-type header
#149318
Author: Carl Drud
Date: Wed, 02 Jun 2004 16:07
11 lines
1873 bytes
On Wed, 2 Jun 2004 10:22:10 -0400, Gord McFee wrote:

> Spoke to soon.  That syntax moves everything with a Content-type header to
> the Spam folder.  Should perhaps the syntax be:
> 
> !move(Spam) Header "Content-Type: text/html"

Quite possible. Sorry, forgot to add that it was untested ;-)

-- 
.sig not found. (A)bort, (R)etry, (F)ail?
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