🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by Callaghan Sat, 03 Apr 2004 11:16
[Dialog] Archive messages periodically
#145692
Author: Callaghan
Date: Sat, 03 Apr 2004 11:16
13 lines
1576 bytes
Hi there, 

I'd like to know if it's possible to archive messages to a folder after a
set number of days. I have the following set up in my score file... 

[news.software.readers]
!move(Dialog) Subject "dialog" 

I only want messages moved from the group to the folder "Dialog"
when they are 7 days old, is this possible? 

-- 
Callaghan
Re: [Dialog] Archive messages periodically
#145695
Author: MLC
Date: Sat, 03 Apr 2004 11:29
24 lines
1951 bytes
sabato 03/apr/2004 _Callaghan_ ha scritto:

> Hi there, 
> 
> I'd like to know if it's possible to archive messages to a folder after a
> set number of days. I have the following set up in my score file... 
> 
> [news.software.readers]
> !move(Dialog) Subject "dialog" 
> 
> I only want messages moved from the group to the folder "Dialog"
> when they are 7 days old, is this possible?

I think so

[news.software.readers]
!move(Dialog) Subject "dialog" Age %=7

(never tested, however)
-- 
Maria Luisa C - 03/04/04 13.28.24, here.
Tutorial e FAQ in italiano su Dialog:
http://fido.altervista.org/Dialog/dialog.php
http://www.lillathedog.net/dialog/faq.html
Re: [Dialog] Archive messages periodically
#145696
Author: Callaghan
Date: Sat, 03 Apr 2004 12:01
17 lines
1667 bytes
On Sat, 3 Apr 2004 13:29:36 +0200, MLC wrote:
> sabato 03/apr/2004 _Callaghan_ ha scritto:
>> I only want messages moved from the group to the folder "Dialog"
>> when they are 7 days old, is this possible?
> 
> I think so
> 
> [news.software.readers]
> !move(Dialog) Subject "dialog" Age %=7

Cheers for the reply,

Sadly, it didn't work. All "dialog" messages still went to the "Dialog"
folder, regardless of age. 

-- 
Callaghan
Re: [Dialog] Archive messages periodically
#145700
Author: MLC
Date: Sat, 03 Apr 2004 12:34
24 lines
2150 bytes
sabato 03/apr/2004 _Callaghan_ ha scritto:

> On Sat, 3 Apr 2004 13:29:36 +0200, MLC wrote:
>> sabato 03/apr/2004 _Callaghan_ ha scritto:
>>> I only want messages moved from the group to the folder "Dialog"
>>> when they are 7 days old, is this possible?
>> 
>> I think so
>> 
>> [news.software.readers]
>> !move(Dialog) Subject "dialog" Age %=7
> 
> Cheers for the reply,
> 
> Sadly, it didn't work. All "dialog" messages still went to the "Dialog"
> folder, regardless of age.

Then is it a bug?
Let's wait for the experts :)
-- 
Maria Luisa C - 03/04/04 14.32.57, here.
Tutorial e FAQ in italiano su Dialog:
http://fido.altervista.org/Dialog/dialog.php
http://www.lillathedog.net/dialog/faq.html
Re: [Dialog] Archive messages periodically
#145710
Author: daRkSidE
Date: Sat, 03 Apr 2004 17:42
22 lines
2319 bytes
*MLC*, 03.04.04 14:34, news.software.readers:

>>> [news.software.readers]
>>> !move(Dialog) Subject "dialog" Age %=7
>> Cheers for the reply,
>> Sadly, it didn't work. All "dialog" messages still went to the "Dialog"
>> folder, regardless of age.
> Then is it a bug?
> Let's wait for the experts :)

In according to Hamster syntax, it should be (and it's working for me):

!move(Dialog) Subject "dialog" +@Age:%=7

IMO, your rule is equal to all the following ones:
!move(Dialog) Subject "dialog" 
!move(Dialog) Subject "Age"
!move(Dialog) Subject "%=7"

-- 
03.04.2004 19:38:37, daRkSidE
Foobar: Charles Lloyd - Lotus Blossom
Re: [Dialog] Archive messages periodically
#145713
Author: Callaghan
Date: Sat, 03 Apr 2004 20:11
27 lines
2223 bytes
On Sat, 3 Apr 2004 19:42:58 +0200, daRkSidE wrote:
> *MLC*, 03.04.04 14:34, news.software.readers:
>>>> [news.software.readers]
>>>> !move(Dialog) Subject "dialog" Age %=7
>>> Cheers for the reply,
>>> Sadly, it didn't work. All "dialog" messages still went to the "Dialog"
>>> folder, regardless of age.
>> Then is it a bug?
>> Let's wait for the experts :)
> 
> In according to Hamster syntax, it should be (and it's working for me):
> 
> !move(Dialog) Subject "dialog" +@Age:%=7
> 
> IMO, your rule is equal to all the following ones:
> !move(Dialog) Subject "dialog" 
> !move(Dialog) Subject "Age"
> !move(Dialog) Subject "%=7"

Excellent, it worked first time, I just needed to adjust it slightly (due
to my poor wording of the problem in the first place).

!move(Dialog) Subject "dialog" +@Age:%>7

Thank you for your help.
-- 
Callaghan
Re: [Dialog] Archive messages periodically
#145737
Author: Julia Thorne
Date: Sun, 04 Apr 2004 12:10
21 lines
2006 bytes
On Sat, 3 Apr 2004 21:11:54 +0100, Callaghan wrote:
> On Sat, 3 Apr 2004 19:42:58 +0200, daRkSidE wrote:

>>>>> !move(Dialog) Subject "dialog" Age %=7

>> !move(Dialog) Subject "dialog" +@Age:%=7

> Excellent, it worked first time, <snip>

> !move(Dialog) Subject "dialog" +@Age:%>7

None of those worked for me, for moving old emails.
This action works perfectly for me:

[email.auctions]
!move(oldauctions) age: %>15

There must be a space after "age:", but no space in "%>nn".

Today's programming lesson:  If an expression doesn't work, 
just keep removing characters until it DOES work. ;-)
Re: [Dialog] Archive messages periodically
#145745
Author: daRkSidE
Date: Sun, 04 Apr 2004 15:26
36 lines
3005 bytes
*Julia Thorne*, 04.04.04 14:10, news.software.readers:

>>> !move(Dialog) Subject "dialog" +@Age:%=7
>> Excellent, it worked first time, <snip>
>> !move(Dialog) Subject "dialog" +@Age:%>7
> None of those worked for me, for moving old emails.
> This action works perfectly for me:
> [email.auctions]
> !move(oldauctions) age: %>15

It doesn't do what it was asked.
It moves all message older than 15 days, not only the ones containing
"Dialog" in the Subject.

> There must be a space after "age:", but no space in "%>nn".

Your rule is different from mine; space is not required because it is a
single rule.

> Today's programming lesson:  If an expression doesn't work,
> just keep removing characters until it DOES work. ;-)

It wasn't done randomly. Dialog scoring code is from Hamster and
Hamster worked in this way, in previous versions; in the last one,
space might not be necessary, but I'm not sure.
Hamster old help gives this example:

||  Load() Any-Sender: "boss@compa.ny" -@Subject:"cancellation!"

However, I've tried and in Dialog (like recent Hamster versions,
I confirm also this) space can be used also in rules related to
more than one field.

-- 
04.04.2004 17:09:31, daRkSidE
Foobar: Santana - Oye Como Va
Re: [Dialog] Archive messages periodically
#145773
Author: Julia Thorne
Date: Mon, 05 Apr 2004 01:18
60 lines
3805 bytes
On Sun, 4 Apr 2004 17:26:21 +0200, daRkSidE wrote:
> *Julia Thorne*, 04.04.04 14:10, news.software.readers:

>>> Excellent, it worked first time, <snip>
>>> !move(Dialog) Subject "dialog" +@Age:%>7
>> None of those worked for me, for moving old emails.
>> This action works perfectly for me:
>> [email.auctions]
>> !move(oldauctions) age: %>15
> 
> It doesn't do what it was asked.

My fault, I didn't make clear:

The OP indicated that his original requirement was met by:
!move(Dialog) Subject "dialog" +@Age:%>7

Good- problem solved, and thanks to the people who contributed info!
But my post was about the fact that the same expression does not
work for email folders, with either one or with two filter terms.
I don't know why, and I thought perhaps someone could shed light
on it- is it a unintended feature, or is it documented behavior?

> It moves all message older than 15 days, not only the ones containing
> "Dialog" in the Subject.

Right.  That was my intention.  No emails contain "Dialog" or other
specific word to filter on.  All that I needed was to make old emails
go to a safe place & stop cluttering the active inbox.

>> There must be a space after "age:", but no space in "%>nn".
> 
> Your rule is different from mine; space is not required because 
> it is a single rule.

I'm not sure I understand correctly: space is required if the
age expression is the only term, but not when it is one of two
terms concatenated with the "+@" ?

>> Today's programming lesson:  If an expression doesn't work,
>> just keep removing characters until it DOES work. ;-)
> 
> It wasn't done randomly. 

I know.  It's just an old programmer's maxim, "tongue-in-cheek",
based on the belief that the simplest of two expressions is more
likely to work than the more complex expression. :-)

> Dialog scoring code is from Hamster and Hamster worked in this way,
> in previous versions; in the last one, space might not be necessary, 
> but I'm not sure.
> Hamster old help gives this example:
> 
>||  Load() Any-Sender: "boss@compa.ny" -@Subject:"cancellation!"
> 
> However, I've tried and in Dialog (like recent Hamster versions,
> I confirm also this) space can be used also in rules related to
> more than one field.

Thank you for the information!  This clarifies the point, I think.
Re: [Dialog] Archive messages periodically
#145827
Author: daRkSidE
Date: Mon, 05 Apr 2004 22:52
37 lines
3560 bytes
*Julia Thorne*, 05.04.04 03:18, news.software.readers:

> Good- problem solved, and thanks to the people who contributed info!
> But my post was about the fact that the same expression does not
> work for email folders, with either one or with two filter terms.
> I don't know why, and I thought perhaps someone could shed light
> on it- is it a unintended feature, or is it documented behavior?

I don't know, too. I don't use Dialog for emails and I can't test in
this moment. However, the syntax is the same for emails and usenet, so
I can't really understand.

>> Your rule is different from mine; space is not required because 
>> it is a single rule.
> I'm not sure I understand correctly: space is required if the
> age expression is the only term, but not when it is one of two
> terms concatenated with the "+@" ?

Yes, it's optional if concatenated.

>>> Today's programming lesson:  If an expression doesn't work,
>>> just keep removing characters until it DOES work. ;-)
>> It wasn't done randomly. 
> I know.  It's just an old programmer's maxim, "tongue-in-cheek",
> based on the belief that the simplest of two expressions is more
> likely to work than the more complex expression. :-)

Yes, this is true. But IMO it's the simplest way to do what OP asked;
there might be other ways (move and move again), but, yes, it seems to
be ture (I'm not a programmer at all). :-)
However, I'm sorry, maybe my answer wasn't very polite, but I
misunderstood what you were saying in previous reply. :-/

-- 
06.04.2004 00:43:37, daRkSidE
Foobar: The Rolling Stones - The Under Assistant West Coast Promotion
Man
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