[Gllug] New and Old mail in mutt

Darran D. Rimron-Molloy ddrm at digital-science.net
Sun Jan 13 15:39:37 UTC 2002


> On Sun, Jan 13, 2002 at 02:13:18PM +0000, Vincent AE Scott wrote:
> > Jo Knight(joknight at blueyonder.co.uk)@Sun, Jan 13, 2002 at 
> 01:44:50PM +0000:
> > > I was just wondering how I set mutt to show all mail as New
> > > until I have actually read it. Currently mail is marked with an
> > > N (new) when it first arrives but if I change to a different
> > > mail directory and return to the original it will be set to O
> > > (old). I have the following in my .muttrc:
>  
> > ooo, ooo, a mutt question i know the answer to:
> > 
> > set    nomark_old # Don't mark unread new msgs as old.
> > 
> > but i wasnt aware of that coloring, so thanks for that info.
> 
> ok, now where might i find a sensible colour set, like the default
> one? i made a significant number of changes to my .muttrc and now
> have now colour =/ except yellow for new =)

Try this for size.

----[start of .muttrc snaffle]----
# colors
# valid colors : white, black,  green,  magenta,
#                blue,  cyan,   yellow, red,
# Each color comes in plain (red) and bright (brightred)
# color thisthing foreground background [arguments]

# Colors used in the index
color indicator black brightyellow
color status    blue yellow
color tree      red black

## First color the whole index
color index     green black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+

## Now change color for specifics; this only works for me with 
## the lines in this order.

# ~p means "message is addressed to me" (consults alternates)
# ~f means "message is from" (pattern). This catches mail to me
# unless it is from another local address
color index     brightgreen black "~p !(~f @LOCALDOMAIN)"

# Mail from @LOCALDOMAIN
color index     yellow black "~f LOCALDOMAIN"

# Mail from any of my alternate addresses
color index     green black ~P

# Header colors, when reading mail
color hdrdefault cyan black
color header   green black ^To:
color header   green black ^Cc:
color header   green black ^From:
color header   magenta black ^Date:
color header   cyan black ^Reply-To:
color header   yellow black ^Subject:

# Body colors
color body     yellow black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body     green black (https|http|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+
color quoted    green black
color attachment yellow black
color signature cyan black
color markers   red black
color tilde     blue black
----[start of .muttrc snaffle]----


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list