Regexps for catching [-- PGP output...

1999-10-31 Thread Rejo Zenger

Hi,

I just cannot figure out how to color the lines that surrounds PGP and
GPG messages like, -- PGP output follows  and [-- End of PGP output...

There are two problems. First of all, they don't seem to be part of the
object called body. Which i should use instead is not clear to me (and
yes, i did RTFM). Second, how to catch a literal '[' and ']'.

Any idea's?

-Rejo.

-- 
= Rejo Zenger  [Sister Ray Crisiscentrum]   [EMAIL PROTECTED]
= http://mediaport.org/~sister  PGP: see headers




Re: Regexps for catching [-- PGP output...

1999-10-31 Thread oneiros

Thus spake Rejo Zenger ([EMAIL PROTECTED]):

 I just cannot figure out how to color the lines that surrounds PGP and
 GPG messages like, -- PGP output follows  and [-- End of PGP output...
 
 There are two problems. First of all, they don't seem to be part of the
 object called body. Which i should use instead is not clear to me (and
 yes, i did RTFM). Second, how to catch a literal '[' and ']'.

first change the attachment colour...
   color attachment  greendefault  # ..

Then you can take it a little further and highlight some words based on gpg or
pgp output.

#colours for gnupg
   color  body brightyellowdefault "^(gpg: )?Good signature"
   mono   body bold"^(gpg: )?Good signature"
   color  body brightwhite red "^(gpg: )?(Bad|BAD) signature from.*"
   mono   body bold"^(gpg: )?(Bad|BAD) signature from.*"
#colours for pgp
   color  body brightyellowdefault "^Good signature"
   mono   body bold"^Good signature"
   color  body brightwhite red "^Bad signature from.*"
   mono   body bold"^Bad signature from.*"

If use slang instead of ncurses change default to black.

-- 
,   |  . OpenPGP Supported .  '
,  oneiros ([EMAIL PROTECTED])  |  .. the fortune for this e-mail is ..   '
,   |   Kiss me twice.  I'm schizophrenic.'