[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mutt config tip for reading log files



Am 2007-03-27 20:11:24, schrieb cga2000:
> .. always thought it would be nice if the mutt website had a collection
> of coloring themes same as vim, eg. .. just so new users could get
> started with minimal headaches .. and come back to it after the dust
> settles. 
> 
> I downloaded a few useful samples from some place or other but they are
> not very sophisticated and I've never really had time to tweak further.

Something like:

----[ '/home/michelle.konzack/.mutt/hook-folder' ]---------------------
# 
# folder-hook [!]<pattern> <command>
# 

folder-hook .                     'uncolor body *'

folder-hook BTS_debian            'source ~/.mutt/colors_diff'

folder-hook ML_debian.changes     'source ~/.mutt/colors_debian'
folder-hook ML_debian.devel       'source ~/.mutt/colors_diff'
folder-hook ML_debian.l10n        'source ~/.mutt/colors_po'

folder-hook ML_linux.linux-kernel 'source ~/.mutt/colors_diff'
----8<-----------------------------------------------------------------

another thing is ~/.mutt/colors_xf86log  :-)

Files attached.

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSN LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)
####################################################################
#   0 black         ESC [^X;Y;Zm
#   1 red           
#   2 green         Attr 0  All attributes off
#   3 yellow             1  Bold on
#   4 blue               4  Underline on
#   5 magenta            5  Blink on
#   6 cyan               7  Reverse video on
#   7 white              3x Foreground color is x
#                        4x Background color is x
####################################################################
# Debian Controllfiles (Binary)
color body  green       default '^Package: '
color body  cyan        default '^Version: '
color body  magenta     default '^Section: '
color body  magenta     default '^Priority: '
color body  green       default '^Architecture: '
color body  green       default '^Depend: '
color body  magenta     default '^Maintainer: '
color body  white       default '^Installed-Size: '
color body  green       default '^Description: '

####################################################################
# Debian Controllfiles (additional Source)
color body  green       default '^Source: '
color body  green       default '^Binary: '
color body  red         default '^Date: '
color body  yellow      default '^Distribution: '
color body  red         default '^Urgency: '
color body  red         default '^Closes: '
color body  red         default '^Changes: '
color body  magenta     default '^Changed-By: '
color body  cyan        default '^Format: '

####################################################################
# Debian Bugreport
# 
color body  red         default '^Severity: '
color body  red         default '^Tags: '
color body  red         default '^Tag: '
color body  yellow      default '^File: '
color body  yellow      default '^Files: '
color body  red         default '^Bug#(.*[0-9]):\ '
color body  red         default '^Followup-For: '
color body  blue        default '^Debian Release: '
color body  magenta     default '^Kernel: '
color body  cyan        default '^Locale: '
color body  yellow      default '^Versions of packages (.*) depends on: '
color body  green       default '^Shell:  '
color body  yellow      default '^Justification: '
color body  brightyellow default '^Accepted:'
color body  brightyellow default '^-- System Information:'
color body  brightyellow default '^Versions of packages .* depends on:'
color body  brightyellow default '^Versions of packages .* recommends:'
color body  brightyellow default '^-- no debconf information'
color body  brightyellow default '^-- debconf information:'
color body  brightyellow default '^References:'


####################################################################
# Debian miscelaneous
color body  red         default '^Rejected: '
color body  red         default '^reassign '
color body  red         default '^retitle '
color body  red         default '^> retitle '
color body  red         default '^tag '
color body  red         default '^> tag '
color body  red         default '^merge '
color body  red         default '^> merge '
color body  red         default '^severity '
color body  red         default '^> severity '
color body  red         default '^reopen '
color body  red         default '^> reopen '
color body  red         default '^Tags were: '
color body  red         default '^Tags added: '
color body  red         default '^Tags removed: '
color body  red         default '^Merged '

color body  brightmagenta       default '^deb '
color body  brightmagenta       default '^deb	'
color body  brightmagenta       default '^deb-src '
color body  brightmagenta       default '^deb-src	'
color body  brightmagenta       default '^Pin:.*'
color body  yellow              default '^Pin-Priority:.*'

color body  brightmagenta       default ' deb '
color body  brightmagenta       default ' deb	'
color body  brightmagenta       default ' deb-src '
color body  brightmagenta       default ' deb-src	'
color body  brightmagenta       default ' Pin:.*'
color body  yellow              default ' Pin-Priority:.*'

color body  white       default ' woody.*(main|contrib|non-free|all).*'
color body  white       default ' sarge.*(main|contrib|non-free|all).*'
color body  white       default ' etch.*(main|contrib|non-free|all).*'
color body  white       default ' sid.*(main|contrib|non-free|all).*'
color body  white       default ' stable.*(main|contrib|non-free|all).*'
color body  white       default ' testing.*(main|contrib|non-free|all).*'
color body  white       default ' unstable.*(main|contrib|non-free|all).*'
color body  white       default ' experimental.*(main|contrib|non-free|all).*'

color body  red         default '^Depends: '
color body  yellow      default '^Recommends: '
color body  green       default '^Suggests: '
color body  green       default '^Source-Version: '

color body  brightmagenta       default '^  Previous version: .*'
color body  brightyellow        default '^  Current version:  .*'
color body  brightgreen         default '^  Hint: .*'
####################################################################
#   0 black         ESC [^X;Y;Zm
#   1 red           
#   2 green         Attr 0  All attributes off
#   3 yellow             1  Bold on
#   4 blue               4  Underline on
#   5 magenta            5  Blink on
#   6 cyan               7  Reverse video on
#   7 white              3x Foreground color is x
#                        4x Background color is x
####################################################################

# Make Diff files color

color body  black       white   '^Index:\ (.*)$'
color body  white       red     '^diff\ (.*)$'
color body  cyan        default '^@@(.*)$'
color body  brightblue  default '^@@ (.*) @@ '
color body  red         default '^\-\ (.*)$'
color body  green       default '^\+(.*)$'
color body  red         default '^\-\	(.*)$'
color body  green       default '^\+\	(.*)$'
color body  red         default '^\-#(.*)$'
color body  green       default '^\+#(.*)$'
color body  red         default '^\-.*$'
color body  green       default '^\\+.$'
color body  red         default '^<\ (.*)$'
# color body  green       default '^>\ (.*)$'
color body  red         default '^<#(.*)$'
# color body  green       default '^>#(.*)$'
color body  magenta     default '^---\ (.*)$'
color body  magenta     default '^\+\+\+\ (.*)$'
color body  yellow      default '^=== (.*)$'
color body  yellow      default '^! (.*)$'
color body  white       default '^\ #(.*)$'
color body  white       default '^.*(\ )#(.*)$'
color body  white       default '^ }(.*)$'
color body  white       default '^	}(.*)$'
####################################################################
#   0 black         ESC [^X;Y;Zm
#   1 red           
#   2 green         Attr 0  All attributes off
#   3 yellow             1  Bold on
#   4 blue               4  Underline on
#   5 magenta            5  Blink on
#   6 cyan               7  Reverse video on
#   7 white              3x Foreground color is x
#                        4x Background color is x
####################################################################
# PO files
color body  blue        default '^Project-Id-Version: '
color body  blue        default '^Report-Msgid-Bugs-To: '
color body  green       default '^POT-Creation-Date: '
color body  green       default '^PO-Revision-Date: '
color body  yellow      default '^Last-Translator: '
color body  yellow      default '^Language-Team: '
color body  cyan        default '^MIME-Version: '
color body  cyan        default '^Content-Type: '
color body  cyan        default '^Content-Transfer-Encoding: '
color body  magenta     default '^X-Generator: '
color body  blue        default '^#\. Type:'
color body  magenta     default '^#\. Choices'
color body  magenta     default '^#\. Description'
# color body  magenta     default '^#\. (.*)$'
color body  cyan        default '^#: (.*)$'
color body  yellow      default '^#, fuzzy'
color body  red         default '^msgid\ '
color body  green       default '^msgstr\ '
color body  yellow      default '%s'
color body  yellow      default '%1'
color body  yellow      default '%2'
color body  yellow      default '%3'
color body  yellow      default '%4'
####################################################################
#   0 black         ESC [^X;Y;Zm
#   1 red           
#   2 green         Attr 0  All attributes off
#   3 yellow             1  Bold on
#   4 blue               4  Underline on
#   5 magenta            5  Blink on
#   6 cyan               7  Reverse video on
#   7 white              3x Foreground color is x
#                        4x Background color is x
####################################################################
# /var/log/XFree86.o.log
color body  blue        default '\(--\)'
color body  blue        default '\(\*\*\)'
color body  cyan        default '\(==\)'
color body  cyan        default '\(\+\+\)'
color body  magenta     default '\(!!\)'
color body  green       default '\(II\)'
color body  yellow      default '\(WW\)'
color body  red         default '\(EE\)'
color body  white       default '\(NI\)'
color body  white       default '\(??\)'

color body  blue        default '^\(--\)(.*)$'
color body  blue        default '^\(\*\*\)(.*)$'
color body  cyan        default '^\(==\)(.*)$'
color body  cyan        default '^\(\+\+\)(.*)$'
color body  magenta     default '^\(!!\)(.*)$'
color body  green       default '^\(II\)(.*)$'
color body  yellow      default '^\(WW\)(.*)$'
color body  red         default '^\(EE\)(.*)$'
color body  white       default '^\(NI\)(.*)$'
color body  white       default '^\(??\)(.*)$'

color body  red         default 'Before filing a bug report(.*)'
color body  yellow      default 'file:///usr/share/doc/xfree86-common/FAQ(.*)'
color body  red         default '^Markers:'
color body  red         default 'Fatal server error:'
color body  yellow      default 'no screens found'
color body  red         default '\"/var/log/XFree86.0.log\"'

Attachment: signature.pgp
Description: Digital signature


Reply to: