configuration des scores

2003-01-17 Thread Turgon

Je cherche à générer mes scores automatiquement à partir de fichier
d'alias par exemple. Mais je ne sais pas comment lancer le script pour
qu'il soit utiliser correctement par le muttrc. Qqun a-t-il déjà fait
qqch dans ce sens ou a-t-il déjà vu ca qqpart ?

merci d'avance

-- 
L'amérique est peut-être l'unique pays qui est passé de la barbarie à la
décadence sans passer par la civilisation.
[John O'Hara]
-




configuration des scores

2003-01-17 Thread Richard Kemp

Je cherche à générer mes scores automatiquement à partir de fichier
d'alias par exemple. Mais je ne sais pas comment lancer le script pour
qu'il soit utiliser correctement par le muttrc. Qqun a-t-il déjà fait
qqch dans ce sens ou a-t-il déjà vu ca qqpart ?

merci d'avance

-- 
L'amérique est peut-être l'unique pays qui est passé de la barbarie à la
décadence sans passer par la civilisation.
[John O'Hara]
-





Re: configuration des scores

2003-01-17 Thread Cedric Duval
Salut,

Richard Kemp a écrit :
 Je cherche à générer mes scores automatiquement à partir de fichier
 d'alias par exemple. Mais je ne sais pas comment lancer le script pour
 qu'il soit utiliser correctement par le muttrc. Qqun a-t-il déjà fait
 qqch dans ce sens ou a-t-il déjà vu ca qqpart ?

Je n'utilise pas les scores, mais j'ai un script qui pourrait faire
l'affaire, avec une petite adaptation... Hop !

source aliases2scores|

-- 
Cédric

#!/bin/sh

#
# Outputs a score line on stdout for each line of your $MUTT_ALIASES
# file (defaults to ~/.mutt/aliases) of the following form
#alias alias_name name adress@host # score_value
#
# - score ~L adress@host score_value
#

egrep ^alias.*# ${MUTT_ALIASES:-~/.mutt/aliases} \
| sed -e s/^alias.*[[:space:]]\+\(.*@[^#[:space:]]\+\).*#\(.*\)/score \~L \1\ \2/



Re: Negative scores and regexp questions

2001-12-14 Thread Christian Ordig

On Fri, Dec 14, 2001 at 07:53:36AM +0530, Prahlad Vaidyanathan wrote:
  manual.txt coming with mutt ;-)
 Well, that doesn't have anything on what scoring is, and why one would
 use it, does it ? or do I have the abridged version ? ;-)
ah ... you're right. Isn't there something on the internet?

-- 
Christian Ordig
Germany




Re: Negative scores and regexp questions

2001-12-13 Thread Roman Neuhauser

 Date: Wed, 12 Dec 2001 16:55:39 +0100
 From: Cliff Sarginson [EMAIL PROTECTED]
 To: Mutt Users' List [EMAIL PROTECTED]
 Subject: Re: Negative scores and regexp questions
 
 On Wed, Dec 12, 2001 at 04:23:51PM +0100, Christian Ordig wrote:
  On Wed, Dec 12, 2001 at 06:00:36AM -0500, David T-G wrote:
   I'm in the same boat, in fact :-)  What we really need is for active
   scorers to reply!
  ok. here I is one ...
   
   If you tried to implement all of that, with those incremental tests, in
   procmail your rules would be ugly *and* you'd have a lot of duplication
   (I imagine the same sorts of problems would apply to any filter, but I
   dunno from maildrop or the others recently mentioned -- yet).
  That's the point. Imagine someone you don't really care about.
 snipped -- regretfully
 Ok, that is a good explanation.
 It still does sound a little complex (since you have been the only
 active scorer to reply so far, it does not seem widely used).
 Interesting though, I have a *prime* candidate for a person on a
 particular list (I won't name list or person, but it's no-one on
 this list .. unless he lurks..) whose messages I usually crudely filter into
 a mailbox called bollocks. Unfortunately he sometimes appears cc'ed
 or to'ed or whatever on a subject I want to hear about. Sounds like
 scoring might help.

I think I know the name of the person, and this is what I have in my
.maildroprc:

if (/^Received: from .*hisdomain\.com/)
{
to $MAILDIR/trash
}

This catchis only those messages that he has sent to the list,
leaving those that have been cc'd to him pass as usual.

HTH.
   
-- 
FreeBSD 4.4-STABLE
12:12PM up 50 days, 22:55, 13 users, load averages: 0.07, 0.15, 0.17



Re: Negative scores and regexp questions

2001-12-13 Thread Prahlad Vaidyanathan

Hi,

On Wed, 12 Dec 2001 Christian Ordig spewed into the ether:
 On Wed, Dec 12, 2001 at 09:19:01PM +0530, Prahlad Vaidyanathan wrote:
  Is anyone here an 'active scorer' ? Do point us mortals to some good
  docs please ;-)
 manual.txt coming with mutt ;-)

Well, that doesn't have anything on what scoring is, and why one would
use it, does it ? or do I have the abridged version ? ;-)

pv.

-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]What, me worry ?
http://www.symonds.net/~prahladv/Don't Panic !
--



msg21588/pgp0.pgp
Description: PGP signature


Re: Negative scores and regexp questions

2001-12-12 Thread Cliff Sarginson

On Tue, Dec 11, 2001 at 08:22:04PM -0700, Rob 'Feztaa' Park wrote:
 On Wed, Dec 12, 2001 at 03:07:59AM +0100, Cliff Sarginson (dis)graced my inbox with:
  I still feel very dumb on this.
  Can someone explain to an idiot what the scoring is for
  and how you use it.
  The manual assumes you know.
  I assume it is some kind of super-filtering technique.
 
 I don't actually use scoring myself, but it is a neat idea.
 
 Each message has a score. The score is determined by rules that you set
 up. So if you hate emails from Joe, you can set up a rule that gives
 messages from Joe a really low score.
 
 After a message gets it's score, you can take action based on the score.
 for instance, you might want to put messages with a high score into a
 special folder like ~/mail/important or something, and messages with a
 low score into the garbage.
 
Mmm.
How is that better than other filtering techniques?
What you say sounds plausible, but is it the whole story ?

-- 
Regards
Cliff





Re: Negative scores and regexp questions

2001-12-12 Thread David T-G

Cliff, et al --

...and then Cliff Sarginson said...
% 
% On Tue, Dec 11, 2001 at 08:22:04PM -0700, Rob 'Feztaa' Park wrote:
%  On Wed, Dec 12, 2001 at 03:07:59AM +0100, Cliff Sarginson (dis)graced my inbox 
with:
%   I still feel very dumb on this.
%   Can someone explain to an idiot what the scoring is for
%   and how you use it.
%   The manual assumes you know.
%   I assume it is some kind of super-filtering technique.
%  
%  I don't actually use scoring myself, but it is a neat idea.

I'm in the same boat, in fact :-)  What we really need is for active
scorers to reply!


%  
...
%  After a message gets it's score, you can take action based on the score.
%  for instance, you might want to put messages with a high score into a
%  special folder like ~/mail/important or something, and messages with a
%  low score into the garbage.
%  
% Mmm.
% How is that better than other filtering techniques?
% What you say sounds plausible, but is it the whole story ?

AIUI scoring can be applied at many levels and then acted upon, while
filtering would have to be applied in one shot and then acted upon.
Suppose you've noticed that mail from @spammer.com is usually spam, but
not always; you could give that mail a -10 score.  Then suppose you have
a few key phrases (MAKE MONEY FAST, , and so on) that are usually
spam; you could give those emails a -10 score, too.  You might have a
really excited friend, though, who always uses bangs, so you could give
her back a +10.  Throw in some other characteristics here and there, by
no means all related to spam (perhaps system-generated mail gets a low
score unless you see your handy error flag in the body).  Finally, at
read time, you see how low the score is (maybe you had an MMF !!! email
from @spammer.com; that oen is pretty sure, right?) and act upon it.

If you tried to implement all of that, with those incremental tests, in
procmail your rules would be ugly *and* you'd have a lot of duplication
(I imagine the same sorts of problems would apply to any filter, but I
dunno from maildrop or the others recently mentioned -- yet).

Of course, back to the original bit of this thread, you'd have had to
start off with a default positive score so that you'd have had something
from which to subtract...  Negative scores seem simpler because you can
avoid that initial setting, but it really works out the same way (score
up and then take that as your baseline)...


% 
% -- 
% Regards
% Cliff
% 


:-D
-- 
David T-G  * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!




msg21517/pgp0.pgp
Description: PGP signature


Re: Negative scores and regexp questions

2001-12-12 Thread Justin R. Miller

Thus spake Cliff Sarginson ([EMAIL PROTECTED]):

 How is that better than other filtering techniques?  What you say
 sounds plausible, but is it the whole story ?

I don't use scoring, but you could do things a little more particular to
Mutt than just folder filtering, such as _marking_ for deletion,
tagging, coloring, etc.  

-- 
Justin R. Miller [EMAIL PROTECTED]
View my website at http://codesorcery.net
Please encrypt email using key 0xC9C40C31



msg21519/pgp0.pgp
Description: PGP signature


Re: Negative scores and regexp questions

2001-12-12 Thread Cliff Sarginson

On Wed, Dec 12, 2001 at 04:23:51PM +0100, Christian Ordig wrote:
 On Wed, Dec 12, 2001 at 06:00:36AM -0500, David T-G wrote:
  I'm in the same boat, in fact :-)  What we really need is for active
  scorers to reply!
 ok. here I is one ...
  
  If you tried to implement all of that, with those incremental tests, in
  procmail your rules would be ugly *and* you'd have a lot of duplication
  (I imagine the same sorts of problems would apply to any filter, but I
  dunno from maildrop or the others recently mentioned -- yet).
 That's the point. Imagine someone you don't really care about.
snipped -- regretfully
Ok, that is a good explanation.
It still does sound a little complex (since you have been the only
active scorer to reply so far, it does not seem widely used).
Interesting though, I have a *prime* candidate for a person on a
particular list (I won't name list or person, but it's no-one on
this list .. unless he lurks..) whose messages I usually crudely filter into
a mailbox called bollocks. Unfortunately he sometimes appears cc'ed
or to'ed or whatever on a subject I want to hear about. Sounds like
scoring might help.

Mmm. food for thought.

-- 
Regards
Cliff





Re: Negative scores and regexp questions

2001-12-12 Thread Christian Ordig

On Wed, Dec 12, 2001 at 04:55:39PM +0100, Cliff Sarginson wrote:
  That's the point. Imagine someone you don't really care about.
 snipped -- regretfully
 Ok, that is a good explanation.
 It still does sound a little complex (since you have been the only
 active scorer to reply so far, it does not seem widely used).
well, at least not amongst mail reading people ... in usenet it's
used more often than with eMail ... but it has also its advantages
in a high volume email environment and helps deciding which mail is
important.

 Interesting though, I have a *prime* candidate for a person on a
 particular list (I won't name list or person, but it's no-one on
 this list .. unless he lurks..) whose messages I usually crudely filter into
 a mailbox called bollocks. Unfortunately he sometimes appears cc'ed
 or to'ed or whatever on a subject I want to hear about. Sounds like
 scoring might help.
yes. and this is only one way to use scores.
You could also like different subjects, but prefer mails having both 
subjects over those only having one of the subjects.

let's continue with the Linux Kernel stuff.
You're interested in anything about Linux.
And you're interested in anything about Kernels.
But most interestting are Linux Kernels.
so you give Linux a score of +1000, Kernel a score of +1000, and 
everything having Linux and Kernel in the subject will get +2000
automaticly and you have them sorted as more important ...
And imagine you're also interested in BSD, but not that much as in Linux,
so you could give BSD a score of +500.
this would result in the following combinations:

Linux   +1000
BSD  +500
Kernel  +1000

== Linux Kernel - +2000
== BSD Kernel - +1500

 Mmm. food for thought.
ok. just to have some more food ... and your brain won't starve ... ,-))

-- 
Christian Ordig
Germany



Re: Negative scores and regexp questions

2001-12-12 Thread Prahlad Vaidyanathan

Hi,

On Wed, 12 Dec 2001 David T-G spewed into the ether:
[-- snip --]
 I'm in the same boat, in fact :-)  What we really need is for active
 scorers to reply!

From what you say it seems like a real neat idea, but unfortunately I
haven't found any docs on it (Maybe I just haven't looked hard enough)

Is anyone here an 'active scorer' ? Do point us mortals to some good
docs please ;-)

pv.

-- 
Prahlad Vaidyanathan [EMAIL PROTECTED]What, me worry ?
http://www.symonds.net/~prahladv/Don't Panic !
--



msg21536/pgp0.pgp
Description: PGP signature


Re: Negative scores and regexp questions

2001-12-12 Thread Christian Ordig

On Wed, Dec 12, 2001 at 09:19:01PM +0530, Prahlad Vaidyanathan wrote:
 Is anyone here an 'active scorer' ? Do point us mortals to some good
 docs please ;-)
manual.txt coming with mutt ;-)

-- 
Christian Ordig
Germany



Re: Negative scores and regexp questions

2001-12-11 Thread Christian Ordig

On Fri, Jun 29, 2001 at 06:43:04PM +0200, Stefan Frank wrote:
 Does that mean, that I have to add a default score to all received
 messages before I can delete them (or mark them read) by score?
yes, I think so.
add:

score ~A 5000 

as your first scoring rule and everything should be fine (or 5 instead 
of 5000 if you only need 10 steps ...)

 This is a little bit strange, isn't it?
yes. I think so. I'd also prefer a range of - to  (or something 
like that)

-- 
Christian Ordig, Germany| Homepage: http://thor.prohosting.com/~chrordig/

open(IN,distris.txt)||die(Keine Distris, Du Affe!);while(IN){chomp;
print $_??? hätte ich was besseres erwartet!!! naja,was solls...\n;}
close(IN);



msg21507/pgp0.pgp
Description: PGP signature


Re: Negative scores and regexp questions

2001-12-11 Thread Cliff Sarginson

On Wed, Dec 12, 2001 at 02:19:33AM +0100, Christian Ordig wrote:
 On Fri, Jun 29, 2001 at 06:43:04PM +0200, Stefan Frank wrote:
  Does that mean, that I have to add a default score to all received
  messages before I can delete them (or mark them read) by score?
 yes, I think so.
 add:
 
 score ~A 5000 
 
 as your first scoring rule and everything should be fine (or 5 instead 
 of 5000 if you only need 10 steps ...)
 
  This is a little bit strange, isn't it?
 yes. I think so. I'd also prefer a range of - to  (or something 
 like that)
 
I still feel very dumb on this.
Can someone explain to an idiot what the scoring is for
and how you use it.
The manual assumes you know.
I assume it is some kind of super-filtering technique.

-- 
Regards
Cliff





Re: Negative scores and regexp questions

2001-12-11 Thread Rob 'Feztaa' Park

On Wed, Dec 12, 2001 at 03:07:59AM +0100, Cliff Sarginson (dis)graced my inbox with:
 I still feel very dumb on this.
 Can someone explain to an idiot what the scoring is for
 and how you use it.
 The manual assumes you know.
 I assume it is some kind of super-filtering technique.

I don't actually use scoring myself, but it is a neat idea.

Each message has a score. The score is determined by rules that you set
up. So if you hate emails from Joe, you can set up a rule that gives
messages from Joe a really low score.

After a message gets it's score, you can take action based on the score.
for instance, you might want to put messages with a high score into a
special folder like ~/mail/important or something, and messages with a
low score into the garbage.

HTH ;)

-- 
Rob 'Feztaa' Park
[EMAIL PROTECTED]
--
The big innovation of [Windows] XP is that it has a back door that sucks out
all your proprietary information and presents it to Microsoft to sell it back
to you or any retailer. That's the big innovation in XP - a back door. By the
way, it still runs all your favorite viruses.
-- Scott McNealy, CEO of Sun Microsystems



msg21510/pgp0.pgp
Description: PGP signature


Re: scores

2001-09-24 Thread Michael Tatge

Matthias LOITSCH muttered:
 why does the command ... :
 
   score '~f [EMAIL PROTECTED]' -5
 
 ... not work???
 
 it always assignes 0 to the messages
 i have no problem with positive numbers.

RTFM. See section 3.21.

Usage: score pattern value
value is a positive or negative integer. A message's final score is
the sum total of all matching score entries. Negative final scores
are rounded up to 0.

To put it in a nutshell: You can use nagative score values and it DOES work.
However, if the final score is negative it will round up to 0.

HTH,

Michael
-- 
I'd crawl over an acre of 'Visual This++' and 'Integrated Development
That' to get to gcc, Emacs, and gdb.  Thank you.
(By Vance Petree, Virginia Power)

PGP-Key: http://www-stud.ims.uni-stuttgart.de/~tatgeml/public.key



scores

2001-09-18 Thread Matthias LOITSCH

i cant assign a negative number to a score!

why does the command ... :

  score '~f [EMAIL PROTECTED]' -5

... not work???

it always assignes 0 to the messages
i have no problem with positive numbers.

thanks for your help


.


-- 
Matthias Loitsch130599081
   [EMAIL PROTECTED]   
 www.yourth.net chimera




Re: scores

2001-09-18 Thread Dan Boger

On Tue, Sep 18, 2001 at 10:22:08PM +0200, Matthias LOITSCH wrote:
 i cant assign a negative number to a score!
 
 why does the command ... :
 
   score '~f [EMAIL PROTECTED]' -5
 
 ... not work???
 
 it always assignes 0 to the messages
 i have no problem with positive numbers.
 
 thanks for your help

  The score commands adds value to a message's score if pattern matches
  it.  pattern is a string in the format described in the ``patterns''
  section.  value is a positive or negative integer.  A message's final
  score is the sum total of all matching score entries.  However, you may
  optionally prefix value with an equal sign (=) to cause evaluation to
  stop at a particular entry if there is a match.  Negative final scores
  are rounded up to 0.

Negative final scores are rounded up to 0.  :)

HTH,

-- 
Dan Boger
Linux MVP
brainbench.com


 PGP signature


Negative scores and regexp questions

2001-06-29 Thread Stefan Frank

Hello,

I have two problems with scores in mutt. Whenever the score of a message
is negative, %N in the index_format shows zero and the settings in
score_threshold_delete and score_threshold_read will never match.

Example 1:

score '~s foo' 10
score '~f [EMAIL PROTECTED]' -100

If the message matches both scores, the result will be 0, but I
thought it should be -90.

Example 2:

score '~s foo' 200
score '~f [EMAIL PROTECTED]' -100

The result is 100.


Is a negative score possible in mutt?
Is something wrong with the configuration?

This is in my .muttrc:

set score=yes
set score_threshold_delete=-100
set score_threshold_read=-50
set score_threshold_flag=+60
score '~f [EMAIL PROTECTED]' -100


My second problem:

I want to setup a score that matches the senders name.
I've tried the following:
score '~f Stefan Frank' 100

This dowsn't work. I think this has something to do with regular expressions
and that the From-line also contains the mail-address, but I have no idea how
to get it right.

When I set up a score with '~f [EMAIL PROTECTED]', everything works as expected.

Any suggestions?

Thanks,
Steff
-- 
Sorry for my bad english :-(



Re: Negative scores and regexp questions

2001-06-29 Thread Stefan Frank

At Fri, Jun 29 2001 [09:31 -0400], Dan Boger aroused my curiosity with:
 from the mutt manual:
 
   3.20.  Message Scoring

   ...
 
   Negative final scores are rounded up to 0.

Oops, I haven't read this sentence - sorry.

Does that mean, that I have to add a default score to all received
messages before I can delete them (or mark them read) by score?

This is a little bit strange, isn't it?

Thanks,
Steff