procmail
[Top] [All Lists]

Re: Procmail log mode in Vim?

2002-11-16 11:56:30
Thanks! That works great.

Tyler


On Fri, 15 Nov 2002, parv wrote:

in message 
<Pine(_dot_)GSO(_dot_)4(_dot_)44(_dot_)0211151019040(_dot_)10482-100000(_at_)cod(_dot_)ENGR(_dot_)ORST(_dot_)EDU>,
wrote Tyler F. Creelan thusly...

Is there a vim or emacs syntax highlighting mode for viewing procmail
logs? Any suggestions if I were to go about making one?

i am not aware of any (as i never felt the need; awk/grep do just
fine), but it's not very hard to write syntax configuration.

try the following...

  set background=dark
  syn clear

  syn match  MiscChar      "[^a-zA-Z0-9]"
  syn match  LowPriority   
"^procmail:\s\+\(Assigning\|Unlocking\|Locking\|Opening\|Acquiring\|Executing\).*$"
  syn match  Score         "Score:\s\+-\?\d\+\s\+-\?\d\+"
  syn match  RecipeMatch   "\(Matched\|Match on\)"
  syn match  RecipeNoMatch  "No match on"
  syn match  Delivery      "^\(From\| Subject:\|  Folder:\)\s\+.*$"

  "  ----  ----- ----- ----- ----- ----- ----- -----
  "  0: black, 1: red,     2: green, 3: brown/yellow,
  "  4: blue,  5: magenta, 6: cyan,  7: grey/white
  "  ----  ----- ----- ----- ----- ----- ----- -----

  hi MiscChar      term=none     cterm=none  ctermfg=6
  hi LowPriority   term=none     cterm=none  ctermfg=4

  hi Score         term=none     cterm=none  ctermfg=3  ctermbg=0
  hi RecipeMatch   term=none     cterm=none  ctermfg=2  ctermbg=0
  hi RecipeNoMatch term=none     cterm=none  ctermfg=1  ctermbg=0

  hi Delivery      term=reverse  cterm=bold  ctermfg=3  ctermbg=0


  - parv

--



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>