Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

recalc scores

1 view
Skip to first unread message

Matthias Rieber

unread,
May 3, 2005, 12:04:50 PM5/3/05
to
Hi,

I've an imap folder where I put tasks that I've to do.
There are two keywords 1DONE and 2TBD. 1DONE has the score 0, 2TBD has
the score 10. I sort this box with $ E. This works. But when I change
the keyword of a mail to 2TBD and press $ E the score won't be updated?

PINE 4.63
IMAP: Courier 3.X

What's my mistake?

matthias

Matthias Rieber

unread,
May 3, 2005, 1:23:34 PM5/3/05
to
Hi Matthias,

Matthias Rieber schrieb:

you don't remove the score, if there's NO keyword.

matthias

Steve Hubert

unread,
May 3, 2005, 3:17:39 PM5/3/05
to

It is a small bug. There are some workarounds. The problem is that pine
decides that the score isn't really needed because it isn't used in a role
or a filter or an indexcolor rule, and it isn't displayed in the
index-format. Of course it is needed because you are sorting by score.

So, you can workaround the problem by putting a score in a role or a
filter or an indexcolor or by adding SCORE to the index-format. One
harmless way to do it would be to create a role that has a score interval
defined but that also has some other things defined that are never going
to match any real message. That will cause pine to think the score is
being used so it will recalculate it after you change the keyword and then
the sort should work as expected.

Steve Hubert
Univ. of Washington: Computing and Communications, Seattle

Matthias Rieber

unread,
May 3, 2005, 5:35:04 PM5/3/05
to
Hi,

Steve Hubert schrieb:

> On Tue, 3 May 2005, Matthias Rieber wrote:
>
> > Hi,
> >
> > I've an imap folder where I put tasks that I've to do.
> > There are two keywords 1DONE and 2TBD. 1DONE has the score 0, 2TBD has
> > the score 10. I sort this box with $ E. This works. But when I change
> > the keyword of a mail to 2TBD and press $ E the score won't be updated?

[...]


> It is a small bug. There are some workarounds. The problem is that pine
> decides that the score isn't really needed because it isn't used in a role or
> a filter or an indexcolor rule, and it isn't displayed in the index-format. Of
> course it is needed because you are sorting by score.

thanks. It seems to work.

But now I've noticed something strange. I have five different keywords.
I can set keyword 1 till 4 without a problem, but when:

1) keyword 1 and 5 is set
I remove 5 PINE says 2 is set
after expunge or reopen PINE show the correct keyword 1

2) keyword 3 and 5 is set
I remove 5 PINE show no keyword
after expunge or reopen PINE show the correct keyword 3

Same behaviour with courier-imap 3.0.5 and 4.0.2

matthias

Eduardo Chappa

unread,
May 3, 2005, 6:11:35 PM5/3/05
to
*** Matthias Rieber (antnewsb...@gmx.demo) wrote in comp.mail.pine today:

:) I've an imap folder where I put tasks that I've to do. There are two
:) keywords 1DONE and 2TBD. 1DONE has the score 0, 2TBD has the score 10.
:) I sort this box with $ E. This works. But when I change the keyword of
:) a mail to 2TBD and press $ E the score won't be updated?

Hello Matthias,

I have a patch in my web page (address below) that you can use to fix
this bug.

--
Eduardo
Patches/Help: http://www.math.washington.edu/~chappa/pine/
XML/RSS feed: http://www.math.washington.edu/~chappa/pine/pine.xml
Please send spam to webmaster@localhost

Steve Hubert

unread,
May 3, 2005, 6:16:59 PM5/3/05
to
> But now I've noticed something strange. I have five different keywords.
> I can set keyword 1 till 4 without a problem, but when:
>
> 1) keyword 1 and 5 is set
> I remove 5 PINE says 2 is set
> after expunge or reopen PINE show the correct keyword 1
>
> 2) keyword 3 and 5 is set
> I remove 5 PINE show no keyword
> after expunge or reopen PINE show the correct keyword 3
>
> Same behaviour with courier-imap 3.0.5 and 4.0.2
>
> matthias

You may be able to figure out what is happening with some additional
debugging output. If you run pine with the additional arguments

pine <regular arguments> -d verbose=2,imap=4

you will get some debugging info in .pine-debug1. When you set or unset a
keyword you should see a STORE command in the debug file. Something like

IMAP DEBUG 15:07:51 5/3: 0000000b STORE 10 +Flags (SomeFlag)

Then the IMAP server should tell pine which keywords are set for that
message, something like

IMAP DEBUG 15:07:51 5/3: * 10 FETCH (FLAGS (\Seen OtherFlag SomeFlag))

When you unset a flag it will be a -Flags command instead of +Flags. If
you'd like to send the debug file to pi...@cac.washington.edu with a
description of what went wrong we'd be happy to take a look.

Matthias Rieber

unread,
May 4, 2005, 2:28:26 AM5/4/05
to
Steve Hubert schrieb:

> > But now I've noticed something strange. I have five different keywords.
> > I can set keyword 1 till 4 without a problem, but when:
> >
> > 1) keyword 1 and 5 is set
> > I remove 5 PINE says 2 is set
> > after expunge or reopen PINE show the correct keyword 1
> >
> > 2) keyword 3 and 5 is set
> > I remove 5 PINE show no keyword
> > after expunge or reopen PINE show the correct keyword 3
> >
> > Same behaviour with courier-imap 3.0.5 and 4.0.2
> >
> > matthias
>
> You may be able to figure out what is happening with some additional debugging
> output. If you run pine with the additional arguments

I'll to that as soon as I find out how to compile pine with debug
support :-)

matthias

Eduardo Chappa

unread,
May 4, 2005, 10:06:09 AM5/4/05
to
*** Matthias Rieber (enewsbl...@gmx.deet) wrote in comp.mail.pine today:

:) > You may be able to figure out what is happening with some additional
:) > debugging output. If you run pine with the additional arguments
:)
:) I'll to that as soon as I find out how to compile pine with debug
:) support :-)

You can do that if you download Pine from the main Pine site at
http://www.washington.edu, once you unpack it, all you have to do is to
execute the command "./build xyz", where xyz is a code which depends on
the operating system that you are using:

lrh: for Redhat,
lsu: for Suse
slx: general linux,

and so on an so forth. The full list of codes is at

http://www.washington.edu/pine/getpine/ports.html

Matthias Rieber

unread,
May 6, 2005, 9:31:22 AM5/6/05
to
Hi,

Eduardo Chappa schrieb:

> *** Matthias Rieber (enewsbl...@gmx.deet) wrote in comp.mail.pine today:
>
> :) > You may be able to figure out what is happening with some additional
> :) > debugging output. If you run pine with the additional arguments
> :)
> :) I'll to that as soon as I find out how to compile pine with debug
> :) support :-)
>
> You can do that if you download Pine from the main Pine site at
> http://www.washington.edu, once you unpack it, all you have to do is to
> execute the command "./build xyz", where xyz is a code which depends on
> the operating system that you are using:

I know that. My fault was that I set DEBUG=-O2 and I didn't know that
this disables the debug option. Well, but I can reproduce this behaviour
anymore. I deleted some messages from my inbox, maybe that's the reason
that it works normally.

Thanks for the help.

matthias

0 new messages