PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > mutt config tip for reading log files
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

mutt config tip for reading log files

Réponse
 
LinkBack Outils de la discussion
Vieux 28/03/2007, 00h40   #1
Chris Bannister
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut mutt config tip for reading log files

Hi,

If you are using mutt as your MUA then try this line in your .muttrc
color body brightred brightdefault
"(warning|alert|caution|fail(ure|ed))"

That should be all on one line with a space after brightdefault

Now when you view peoples log files in your mail and either
warning alert caution fail failure or failed appear they will show up as
bright red. Well, actually if they appear anywhere in your mail body
then they will show up as bright red.

For some reason, they also blink for me but not sure why.
But the


For an added bonus
# Week Days - long form:
color body brightgreen blue
'\<(Monday|Tuesday|Wednesday|Thursday|Friday|Satur day|Sunday)\>'

# Week Days - short form:
color body blue green "\\<(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\>"

The Week Days - long form: one should all be on one line with a space
after the blue.

As you can see there are interesting possibilities with highlighting
certain interesting words or patterns.

Can Icedove do that?

--
Chris.
======
Don't forget to check that your /etc/apt/sources.lst entries point to
etch and not testing, otherwise you may end up with a broken system once
etch goes stable.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/03/2007, 01h20   #2
cga2000
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mutt config tip for reading log files

On Tue, Mar 27, 2007 at 06:50:42PM EST, Chris Bannister wrote:
> Hi,
>
> If you are using mutt as your MUA then try this line in your .muttrc
> color body brightred brightdefault
> "(warning|alert|caution|fail(ure|ed))"
>
> That should be all on one line with a space after brightdefault
>
> Now when you view peoples log files in your mail and either
> warning alert caution fail failure or failed appear they will show up as
> bright red. Well, actually if they appear anywhere in your mail body
> then they will show up as bright red.
>
> For some reason, they also blink for me but not sure why.
> But the
>
>
> For an added bonus
> # Week Days - long form:
> color body brightgreen blue
> '\<(Monday|Tuesday|Wednesday|Thursday|Friday|Satur day|Sunday)\>'
>
> # Week Days - short form:
> color body blue green "\\<(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\>"
>
> The Week Days - long form: one should all be on one line with a space
> after the blue.
>
> As you can see there are interesting possibilities with highlighting
> certain interesting words or patterns.
>
> Can Icedove do that?


:-)

... 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.

Thanks,
cga


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/03/2007, 02h40   #3
Michael Pobega
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mutt config tip for reading log files

On Wed, Mar 28, 2007 at 11:50:42AM +1200, Chris Bannister wrote:
> Hi,
>
> If you are using mutt as your MUA then try this line in your .muttrc
> color body brightred brightdefault
> "(warning|alert|caution|fail(ure|ed))"
>
> That should be all on one line with a space after brightdefault
>
> Now when you view peoples log files in your mail and either
> warning alert caution fail failure or failed appear they will show up as
> bright red. Well, actually if they appear anywhere in your mail body
> then they will show up as bright red.
>
> For some reason, they also blink for me but not sure why.
> But the
>
>
> For an added bonus
> # Week Days - long form:
> color body brightgreen blue
> '\<(Monday|Tuesday|Wednesday|Thursday|Friday|Satur day|Sunday)\>'
>
> # Week Days - short form:
> color body blue green "\\<(Mon|Tue|Wed|Thu|Fri|Sat|Sun)\\>"
>
> The Week Days - long form: one should all be on one line with a space
> after the blue.
>
> As you can see there are interesting possibilities with highlighting
> certain interesting words or patterns.
>
> Can Icedove do that?
>


Much appreciated, now I can read logs in style.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/03/2007, 15h40   #4
Vincent Lefevre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mutt config tip for reading log files

On 2007-03-28 11:50:42 +1200, Chris Bannister wrote:
> If you are using mutt as your MUA then try this line in your .muttrc
> color body brightred brightdefault
> "(warning|alert|caution|fail(ure|ed))"

[...]

But how can you do this for log messages only?

For instance, I'd like to do the same thing for diffs I receive
by mail (those which are sent by a Subversion server), but things
like

color body brightred black '^-.*'

wouldn't be nice with other messages.

I thought about setting $display_filter in a message-hook to use
a colorization script (such as my tdiff script), but this has no
effect. Perhaps Mutt resets the color due to its own colorization.

--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 28/03/2007, 19h10   #5
Andrew Sackville-West
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mutt config tip for reading log files

On Wed, Mar 28, 2007 at 04:21:13PM +0200, Vincent Lefevre wrote:
> On 2007-03-28 11:50:42 +1200, Chris Bannister wrote:
> > If you are using mutt as your MUA then try this line in your .muttrc
> > color body brightred brightdefault
> > "(warning|alert|caution|fail(ure|ed))"

> [...]
>
> But how can you do this for log messages only?
>
> For instance, I'd like to do the same thing for diffs I receive
> by mail (those which are sent by a Subversion server), but things
> like
>
> color body brightred black '^-.*'
>
> wouldn't be nice with other messages.
>
> I thought about setting $display_filter in a message-hook to use
> a colorization script (such as my tdiff script), but this has no
> effect. Perhaps Mutt resets the color due to its own colorization.
>


can you use auto_view for this? I've got it set for viewing html email
through links and it works great. maybe you could setup an auto_view
for diffs and run it through just about any text viewer with a
specified color scheme.

.02

A

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGCqvgaIeIEqwil4YRAv+sAJ96qa9Mq1P5Drv6NwuaRC r53uhSTwCgzmXC
SO9Gtr7Mya7w7h2+gSl+St0=
=+qng
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 29/03/2007, 02h40   #6
Vincent Lefevre
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mutt config tip for reading log files

On 2007-03-28 10:54:41 -0700, Andrew Sackville-West wrote:
> can you use auto_view for this?


Not possible: the diffs are in the body of the message (text/plain).

--
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 04/04/2007, 20h00   #7
Michelle Konzack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFGE+04C0FPBMSS+BIRAtUNAJwKI3oi4E5uG1oucJ2XgK diJM5e0ACfYjyI
yyizqlMm1Rr9U4xMSra+4yk=
=WzYX
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h21.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14432 seconds with 15 queries