🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
22 messages
22 total messages Started by John Phillips Sun, 30 May 2004 07:13
[Dialog] Actions on RFC-822 headers?
#149046
Author: John Phillips
Date: Sun, 30 May 2004 07:13
11 lines
1220 bytes
Looking for a list of which headers can be used to score / action in
Dialog.

Unfortunately a mail list I subscribe to does not use the X-Ref etc.
headers of X-Mailinglist header mentioned in the help file.

Thanks in Advance!

-- 
John Phillips
Sydney, Australia
Re: [Dialog] Actions on RFC-822 headers?
#149042
Author: Jarrod Cifer
Date: Sun, 30 May 2004 07:27
13 lines
2042 bytes
John Phillips, upon reaching nirvana, postulated:

> Looking for a list of which headers can be used to score / action in
> Dialog.

You can score on any header in Dialog. Take a look at the FAQ (3.1)
http://www.40tude.com/dialog/wiki/index.php?title=Frequently_Asked_Questions#Q:_How_do_I_filter_(move/copy)_on_the_To:_header?

-- 
J. Cifer
40tude Dialog FAQ: http://snurl.com/4um8
40tude Dialog script library: http://snurl.com/4umc
40tude Dialog links: http://snurl.com/4umg
Re: [Dialog] Actions on RFC-822 headers?
#149049
Author: John Phillips
Date: Sun, 30 May 2004 08:16
5 lines
1143 bytes
On Sun, 30 May 2004 09:27:56 +0200, Jarrod Cifer wrote:

> You can score on any header in Dialog. Take a look at the FAQ (3.1)

Thanks for that!
Re: [Dialog] Actions on RFC-822 headers?
#149044
Author: John Phillips
Date: Sun, 30 May 2004 09:03
18 lines
1582 bytes
On Sun, 30 May 2004 09:27:56 +0200, Jarrod Cifer wrote:

> You can score on any header in Dialog. Take a look at the FAQ (3.1)
> http://www.40tude.com/dialog/wiki/index.php?title=Frequently_Asked_Questions#Q:_How_do_I_filter_(move/copy)_on_the_To:_header?

Just wondering why this one doesn't work?

The header "to" reads 
To: "Hu, Shelly & Chris" <chris@blah.com>

The action 
!move(Blah) Header {^(To: "Hu, Shelly & Chris" <chris@blah.com>) }
does nothing.  I have tried various combinations of leaving out the " and <
> but no luck.

Any clues?

Thanks once again!
Re: [Dialog] Actions on RFC-822 headers?
#149045
Author: /betty/
Date: Sun, 30 May 2004 09:21
21 lines
2195 bytes
On Sun, 30 May 2004 09:27:56 +0200, Jarrod Cifer used 13 lines in
response:

> John Phillips, upon reaching nirvana, postulated:
> 
>> Looking for a list of which headers can be used to score / action in
>> Dialog.
> 
> You can score on any header in Dialog. Take a look at the FAQ (3.1)
> http://www.40tude.com/dialog/wiki/index.php?title=Frequently_Asked_Questions#Q:_How_do_I_filter_(move/copy)_on_the_To:_header?

Does that mean that scoring doesn't invoke until the full article is
retrieved?  

ie. not on the basic XOVER content in normal overview headers retrievals
from the news-server, thereby avoiding wasted bandwidth.

Or are you implying that that FAQ entry only apply to mail, not news?

-- 
/betty/ [2004-05-30 19:14:52]
Re: [Dialog] Actions on RFC-822 headers?
#149047
Author: foxidrive
Date: Sun, 30 May 2004 09:34
20 lines
1905 bytes
On Sun, 30 May 2004 19:03:32 +1000, John Phillips wrote:

> On Sun, 30 May 2004 09:27:56 +0200, Jarrod Cifer wrote:
> 
>> You can score on any header in Dialog. Take a look at the FAQ (3.1)
>> http://www.40tude.com/dialog/wiki/index.php?title=Frequently_Asked_Questions#Q:_How_do_I_filter_(move/copy)_on_the_To:_header?
> 
> Just wondering why this one doesn't work?
> 
> The header "to" reads 
> To: "Hu, Shelly & Chris" <chris@blah.com>
> 
> The action 
> !move(Blah) Header {^(To: "Hu, Shelly & Chris" <chris@blah.com>) }
> does nothing. 

This is untested, and looks for the individual email address.


!move(Blah) Header {To:.*<chris@blah.com>.*$}
Re: [Dialog] Actions on RFC-822 headers?
#149048
Author: John Phillips
Date: Sun, 30 May 2004 09:37
9 lines
1322 bytes
On Sun, 30 May 2004 19:34:07 +1000, foxidrive wrote:

> This is untested, and looks for the individual email address.
> 
> !move(Blah) Header {To:.*<chris@blah.com>.*$}

That worked fine, thanks!

Any idea why the other one didn't? (work).
Re: [Dialog] Actions on RFC-822 headers?
#149050
Author: foxidrive
Date: Sun, 30 May 2004 09:55
22 lines
1999 bytes
On Sun, 30 May 2004 19:37:29 +1000, John Phillips wrote:

> On Sun, 30 May 2004 19:34:07 +1000, foxidrive wrote:
> 
>> This is untested, and looks for the individual email address.
>> 
>> !move(Blah) Header {To:.*<chris@blah.com>.*$}
> 
> That worked fine, thanks!
> 
> Any idea why the other one didn't? (work).

>>> The header "to" reads 
>>> To: "Hu, Shelly & Chris" <chris@blah.com>

Try this.  quotes and ampersand may complicate the issue, so I've used a
period to match any character, or no character, in those positions.

The . in .com should really be escaped by \.com but in this case it's not a
problem.

!move(Blah) Header {^To: .Hu, Shelly . Chris. <chris@blah.com>$}
Re: [Dialog] Actions on RFC-822 headers?
#149051
Author: John Phillips
Date: Sun, 30 May 2004 10:14
32 lines
2376 bytes
On Sun, 30 May 2004 19:55:17 +1000, foxidrive wrote:

> Try this.  quotes and ampersand may complicate the issue, so I've used a
> period to match any character, or no character, in those positions.
> 
> The . in .com should really be escaped by \.com but in this case it's not a
> problem.
> 
> !move(Blah) Header {^To: .Hu, Shelly . Chris. <chris@blah.com>$}

Thanks for your time.

Queer stuff.  They both work, and they both don't work - only on some
e-mails!

My problem is that all my mail from my laptop running Dialog (which I am on
now) gets re-directed back to my laptop, if sent from a certain Identity
(don't ask - this identity is my "work" identity, so a copy of each e-mail
is BCC to my work addy, where the mail server sends ~all~ e-mail addressed
to me to my pc on the lan, as well as a copy to me in case I am on the
road).

Also all mail written by me at work is BCC to my laptop, so I can keep it
up to date.

It is these two types e-mails I will have a filtering problem with, because
I have to filter on the To: field.  All other e-mail to my laptop I can
filter on the From: field

Is there a simpler solution to all of this?

Thanks once again.
Re: [Dialog] Actions on RFC-822 headers?
#149055
Author: foxidrive
Date: Sun, 30 May 2004 10:35
38 lines
2816 bytes
On Sun, 30 May 2004 20:14:35 +1000, John Phillips wrote:

> On Sun, 30 May 2004 19:55:17 +1000, foxidrive wrote:
> 
> Thanks for your time.

np.
 
> Queer stuff.  They both work, and they both don't work - only on some
> e-mails!

Dialog passes the entire header text through the regexp matcher but no-one
can say what's matching without seeing them - assuming there isn't a 6
legged insect involved.

> My problem is that all my mail from my laptop running Dialog (which I am on
> now) gets re-directed back to my laptop, if sent from a certain Identity
> (don't ask - this identity is my "work" identity, so a copy of each e-mail
> is BCC to my work addy, where the mail server sends ~all~ e-mail addressed
> to me to my pc on the lan, as well as a copy to me in case I am on the
> road).
> 
> Also all mail written by me at work is BCC to my laptop, so I can keep it
> up to date.
> 
> It is these two types e-mails I will have a filtering problem with, because
> I have to filter on the To: field.  All other e-mail to my laptop I can
> filter on the From: field
> 
> Is there a simpler solution to all of this?

It's hard to judge without knowing more about the situation specifics.
It seems that mail from the work identity can be filtered on the info in
the from: field, and email written by you at work also has a certain text -
in the from: field, or are they the same?

Can you explain the situation with some detail?  Someone may see a
solution.
Re: [Dialog] Actions on RFC-822 headers?
#149056
Author: John Phillips
Date: Sun, 30 May 2004 11:00
56 lines
3811 bytes
On Sun, 30 May 2004 20:35:22 +1000, foxidrive wrote:

> Dialog passes the entire header text through the regexp matcher but no-one
> can say what's matching without seeing them - assuming there isn't a 6
> legged insect involved.

Don't insects have 8 legs? <g>.  I seem to remember this from my studies,
so is a centipede an insect or a freak?
> 
>> My problem is that all my mail from my laptop running Dialog (which I am on
>> now) gets re-directed back to my laptop, if sent from a certain Identity
>> (don't ask - this identity is my "work" identity, so a copy of each e-mail
>> is BCC to my work addy, where the mail server sends ~all~ e-mail addressed
>> to me to my pc on the lan, as well as a copy to me in case I am on the
>> road).
>> 
>> Also all mail written by me at work is BCC to my laptop, so I can keep it
>> up to date.
>> 
>> It is these two types e-mails I will have a filtering problem with, because
>> I have to filter on the To: field.  All other e-mail to my laptop I can
>> filter on the From: field
>> 
>> Is there a simpler solution to all of this?
> 
> It's hard to judge without knowing more about the situation specifics.
> It seems that mail from the work identity can be filtered on the info in
> the from: field, and email written by you at work also has a certain text -
> in the from: field, or are they the same?
> 
> Can you explain the situation with some detail?  Someone may see a
> solution.

As best as I can - the mail which has been written by me at work to say Joe
Bloggs is sent by BCC to me@myisp.com.  It only shows as from me in
Dialog, the To: Joe Bloggs bit is in the RFC-822 headers.

Likewise the mail written by me on my laptop using my work identity with a
BCC to my work addy is redirected back to me by the MDaemon software on our
Windows 2000 Server, and again only shows as From: Me.

Basically I am just trying to sort on the To: field, but regular e-mails,
not postings to mailing lists, and all the examples posted so far, as well
as in the FAQ, work intermittently. Work on some, not on others.

Is there an easy way to filter on the To: field when not posting to a
mailing list?

Sorry if this seems to be a repeat of what I have written above! Not sure
what else I can say.

I also use Bat! both at work on the lan and on this laptop, and can sort
very easily on the To: field. (Just thought I would through this in, not a
patronising remark at all).

Thanks once again!
Re: [Dialog] Actions on RFC-822 headers?
#149057
Author: Eggs Zachtly
Date: Sun, 30 May 2004 11:31
18 lines
1931 bytes
John Phillips said:

> Don't insects have 8 legs? <g>.

Actually, no. Arachnids have 8 legs, insects have 6.  =)

> I seem to remember this from my studies,

You've been California Dreaming. <g>

> so is a centipede an insect or a freak?

Centipedes are Arthropods. =P

-- 
Eggs

-It is easier to get forgiveness than permission.
Re: [Dialog] Actions on RFC-822 headers?
#149058
Author: foxidrive
Date: Sun, 30 May 2004 11:45
47 lines
3621 bytes
On Sun, 30 May 2004 21:00:53 +1000, John Phillips wrote:

> On Sun, 30 May 2004 20:35:22 +1000, foxidrive wrote:
> 
>> Dialog passes the entire header text through the regexp matcher but no-one
>> can say what's matching without seeing them - assuming there isn't a 6
>> legged insect involved.
> 
> Don't insects have 8 legs? <g>.  I seem to remember this from my studies,
> so is a centipede an insect or a freak?

Definitely 6. :)  Small crawly Arachnids have 8, and I have no idea about
centipedes!
 
> As best as I can - the mail which has been written by me at work to say Joe
> Bloggs is sent by BCC to me@myisp.com.  It only shows as from me in
> Dialog, the To: Joe Bloggs bit is in the RFC-822 headers.
> 
> Likewise the mail written by me on my laptop using my work identity with a
> BCC to my work addy is redirected back to me by the MDaemon software on our
> Windows 2000 Server, and again only shows as From: Me.
> 
> Basically I am just trying to sort on the To: field, but regular e-mails,
> not postings to mailing lists, and all the examples posted so far, as well
> as in the FAQ, work intermittently. Work on some, not on others.
> 
> Is there an easy way to filter on the To: field when not posting to a
> mailing list?
> 
> Sorry if this seems to be a repeat of what I have written above! Not sure
> what else I can say.

It seems that you want to sort into recipient catagories.  Without seeing
what is failing and the headers of the message that fails, it's very hard
to craft a solution.   Dialog can filter simply on the header like

!move(blah) header "foxidrive@"

but it will match anyplace in any header.  Is that any good to you?

> I also use Bat! both at work on the lan and on this laptop, and can sort
> very easily on the To: field. (Just thought I would through this in, not a
> patronising remark at all).

Nods.  I'm interested to hear how the longer solution failed... it was
pretty specific, but maybe that was the problem.  If a character is out of
place in the message headers it will fail, if not accounted for.
Re: [Dialog] Actions on RFC-822 headers?
#149059
Author: /betty/
Date: Sun, 30 May 2004 12:00
16 lines
2298 bytes
On Sun, 30 May 2004 21:45:56 +1000, foxidrive used 47 lines in response:

> On Sun, 30 May 2004 21:00:53 +1000, John Phillips wrote:
>> Don't insects have 8 legs? <g>.  I seem to remember this from my studies,
>> so is a centipede an insect or a freak?
> 
> Definitely 6. :)  Small crawly Arachnids have 8, and I have no idea about
> centipedes!
>  

Centipede is a misnomer, so is millipede.

Even so, their bootmaker would have a busy worklife. 

-- 
/betty/ [2004-05-30 21:53:29]
Re: [Dialog] Actions on RFC-822 headers?
#149060
Author: RickM
Date: Sun, 30 May 2004 12:56
25 lines
1687 bytes
On 30 May 2004 John Phillips <flatulantdingo@deadspam.com> wrote:

> Just wondering why this one doesn't work?
> 
> The header "to" reads 
> To: "Hu, Shelly & Chris" <chris@blah.com>
> 
> The action 
> !move(Blah) Header {^(To: "Hu, Shelly & Chris" <chris@blah.com>) }
> does nothing.  I have tried various combinations of leaving out
> the " and < but no luck.
> 
> Any clues?

Your filter above has a trailing space.

I'm not a Dialog expert but it seems to me that you need a section in
your score file that reads something like this:

[email.*]
!move(Blah) Header {^to: "hu, shelly & chris" <chris@blah.com>}

-- 
Rick
Re: [Dialog] Actions on RFC-822 headers?
#149071
Author: martin
Date: Sun, 30 May 2004 17:04
18 lines
1895 bytes
On Sun, 30 May 2004 22:00:10 +1000, /betty/
<all.unsolicited.mail@bit.bucket.invalid> wrote:

>On Sun, 30 May 2004 21:45:56 +1000, foxidrive used 47 lines in response:
>
>> On Sun, 30 May 2004 21:00:53 +1000, John Phillips wrote:
>>> Don't insects have 8 legs? <g>.  I seem to remember this from my studies,
>>> so is a centipede an insect or a freak?
>> 
>> Definitely 6. :)  Small crawly Arachnids have 8, and I have no idea about
>> centipedes!
>>  
>
>Centipede is a misnomer, so is millipede.

so is ped-ant
-- 
Martin
Re: [Dialog] Actions on RFC-822 headers?
#149079
Author: John Phillips
Date: Sun, 30 May 2004 19:29
16 lines
1994 bytes
On Sun, 30 May 2004 21:45:56 +1000, foxidrive wrote:

> It seems that you want to sort into recipient catagories.  Without seeing
> what is failing and the headers of the message that fails, it's very hard
> to craft a solution.   Dialog can filter simply on the header like
> 
> !move(blah) header "foxidrive@"

Strange.  That works, but !move(blah) header "foxidrive@blah.com" doesn't.

I am new to all of this, what don't I understand here?

This type of sorting filter seems to be very specific indeed.

Thanks once again, and also to others for their replies, and the lesson on
insects!
Re: [Dialog] Actions on RFC-822 headers?
#149086
Author: foxidrive
Date: Mon, 31 May 2004 00:39
23 lines
2259 bytes
On Mon, 31 May 2004 05:29:04 +1000, John Phillips wrote:

> On Sun, 30 May 2004 21:45:56 +1000, foxidrive wrote:
> 
>> It seems that you want to sort into recipient catagories.  Without seeing
>> what is failing and the headers of the message that fails, it's very hard
>> to craft a solution.   Dialog can filter simply on the header like
>> 
>> !move(blah) header "foxidrive@"
> 
> Strange.  That works, but !move(blah) header "foxidrive@blah.com" doesn't.

It is supposed to work.
 
> I am new to all of this, what don't I understand here?

I'm unsure - except perhaps you're expecting previously downloaded messages
to be moved.  If that's the case then Group>Apply Scoring and Actions is
what you need.
 
> Thanks once again

np.
Re: [Dialog] Actions on RFC-822 headers?
#149091
Author: Julia Thorne
Date: Mon, 31 May 2004 03:27
15 lines
1975 bytes
On Sun, 30 May 2004 06:31:32 -0500, Eggs Zachtly wrote:
> John Phillips said:
> 
>> Don't insects have 8 legs? <g>.
> 
> Actually, no. Arachnids have 8 legs, insects have 6.  =)

>> so is a centipede an insect or a freak?
> 
> Centipedes are Arthropods. =P

Q: What goes "99-thump...  99-thump...  99-thump...  99-thump..."? 

A: A centipede with a wooden leg.     :-)
Re: [Dialog] Actions on RFC-822 headers?
#149111
Author: Eggs Zachtly
Date: Mon, 31 May 2004 09:24
13 lines
1941 bytes
Julia Thorne said:

> Q: What goes "99-thump...  99-thump...  99-thump...  99-thump..."? 
> 
> A: A centipede with a wooden leg.     :-)

*groan*  =P

-- 
Eggs

-A man walks into a bar with a slab of asphalt under his arm and says: "A
beer please, and one for the road."
Re: [Dialog] Actions on RFC-822 headers?
#149113
Author: foxidrive
Date: Mon, 31 May 2004 09:48
20 lines
2171 bytes
On Mon, 31 May 2004 04:24:55 -0500, Eggs Zachtly wrote:

> Julia Thorne said:
> 
>> Q: What goes "99-thump...  99-thump...  99-thump...  99-thump..."? 
>> 
>> A: A centipede with a wooden leg.     :-)
> 
> *groan*  =P
> 
> -- 
> Eggs
> 
> -A man walks into a bar with a slab of asphalt under his arm and says: "A
> beer please, and one for the road."

A piece of motorway and piece of dual carriage way are enjoying a drink in
the pub. In walks a piece of red tarmac. The motorway whispers to the
carrageway "Come on lets drink up and go before the trouble starts; He's a
cyclepath!"
Re: [Dialog] Actions on RFC-822 headers?
#149114
Author: Eggs Zachtly
Date: Mon, 31 May 2004 10:18
31 lines
2607 bytes
foxidrive said:

> On Mon, 31 May 2004 04:24:55 -0500, Eggs Zachtly wrote:
> 
>> Julia Thorne said:
>> 
>>> Q: What goes "99-thump...  99-thump...  99-thump...  99-thump..."? 
>>> 
>>> A: A centipede with a wooden leg.     :-)
>> 
>> *groan*  =P
>> 
>> -- 
>> Eggs
>> 
>> -A man walks into a bar with a slab of asphalt under his arm and says: "A
>> beer please, and one for the road."
> 
> A piece of motorway and piece of dual carriage way are enjoying a drink in
> the pub. In walks a piece of red tarmac. The motorway whispers to the
> carrageway "Come on lets drink up and go before the trouble starts; He's a
> cyclepath!"

ROFL

*ammends sigs*

-- 
Eggs

-If a cow laughs hard, does milk come out its nose?
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