Re: scoring top posters

2015-09-19 Thread Ian Zimmerman
On 2015-07-29 20:19 +0200, Matthias Apitz wrote:

> I'm using scoring to mark, auto delete, ... certain mails I do not
> want to read. I'd like to auto-score top posters for the next
> mail. For the first mail it is not possible due to scoring is based on
> header lines.  But the sender could be scored with -10 or -20 for the
> next mail...

Back to my bad habit of resurrecting old threads :)

Do you really score "bad" messages with _negative_ scores?  The manual
says (section 3.24):

 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.

... so, no matter how "bad" a message is (let's say, a top post, a
thread hijack, an ALL CAPS subject, and unlimited line length LOL), the
worst it can score is 0.  Am I right?  I haven't used mutt scoring yet,
so I am trying to learn how to best put it to my purposes.  It seems
to me that for flagging "badness" positive scores would be much more
convenient.  Am I missing something as usual?

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.


Re: header cache annoyance

2015-09-19 Thread Ian Zimmerman
On 2015-09-20 01:43 +0200, Christian Ebert wrote:

> printf '%s' "/full/path/to/directory" | md5 | xargs rm -r

Thanks for the tip, it almost works :P On which system is there a md5
program? Here:

 [9+0]~$ folder=Mail/inbox
 [10+0]~$ printf '%s' `readlink -f $folder` | md5sum
6937aaf0469360e061c78ffae25359d2  -
 [11+0]~$ printf '%s' `readlink -f $folder` | md5sum | awk '{print $1;}'
6937aaf0469360e061c78ffae25359d2

-- 
Please *no* private copies of mailing list or newsgroup messages.
Rule 420: All persons more than eight miles high to leave the court.


Re: save in current folder?

2015-09-19 Thread Suvayu Ali
On Fri, Sep 18, 2015 at 04:56:12PM -0700, Ian Zimmerman wrote:
> Is it possible (and safe) to set the record variable, or the Fcc header,
> to the folder from where I send the mail?  For example, what can be said
> about this .muttrc setting:
> 
> set record="~/Mail/inbox"
> 
> I don't want to handle archiving my own messages with a Bcc, because
> they typically don't have the earmark by which I grab incoming mail and
> shove it into the folder where it belongs.

Maybe set a default fcc-hook like this (untested)?

  fcc-hook . ^

-- 
Suvayu

Open source is the future. It sets us free.


Re: header cache annoyance [Was: save in current folder?]

2015-09-19 Thread Gregor Zattler
Hi Ian, mutt users,
* Ian Zimmerman  [18. Sep. 2015]:
> On 2015-09-19 12:21 +1000, Cameron Simpson wrote:
> Yeah.  Another annoying thing about the header cache is the hashed file
> names.  It means when I delete/archive a folder (such as after
> unsubscribing from a list) I apparently have no way of knowing which
> file to delete from the header cache directory.  The best I can do is
> delete all of them and regenerate the cache on demand.

Force a write on the folder, then delete the folder, then sort
the cache files according to mtime, delete the newest one.

Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-



Re: header cache annoyance

2015-09-19 Thread Christian Ebert
* Ian Zimmerman on Friday, September 18, 2015 at 20:40:01 -0700
> Another annoying thing about the header cache is the hashed file
> names.  It means when I delete/archive a folder (such as after
> unsubscribing from a list) I apparently have no way of knowing which
> file to delete from the header cache directory.

printf '%s' "/full/path/to/directory" | md5 | xargs rm -r

-- 
\black\trash movie_MORALISK  ANSTALT_
"Nix verstanden."

--->> http://www.blacktrash.org/underdogma/moraliskanstalt.php