Lukas Ruf <[EMAIL PROTECTED]> wrote on Mon, 14 Feb 2000:
> is there a possibility to specify within Mutt a function, that filters
> the incoming emails and marks them as read if the pattern matches ?
Sure. Based on your situation, I'd also suggest a procmail/maildrop
filtering solution, like Telsa outlined. However if you still want to
implement this in Mutt, you can do things easily with patterns and
macros -- eg.
macro index <key> T<pattern>\n;WN
... where <pattern> is the pattern that matches any "junk" emails.
And <key> is the key you want to use for the macro, could be something
like F10 or ^F or whatever. Then you can simply use that key to mark
the specific emails as read (ie., no longer new).
Break-down of the macro:
T = tag pattern
<pattern> = the pattern that matches all of your junk emails
\n = enter
; = apply next command to tagged messages
W = clear flag
N = the "new" flag
The only problem here is that if there were no messages that matched the
pattern, no messages will be tagged, and then the ; will fail -- meaning
that the "WN" will apply to the current message. However if you use
this command interactively, this shouldn't be much of a problem.
Hopes this helps,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
I tried to get a life once, but they were out of stock.