2013-11-12 21:38:00 +01:00
|
|
|
hook global BufSetOption mimetype=message/rfc822 %{ set buffer filetype mail }
|
2013-02-21 13:36:25 +01:00
|
|
|
|
2013-12-03 23:15:59 +01:00
|
|
|
defhl mail
|
|
|
|
addhl -def-group mail regex ^(From|To|Cc|Bcc|Subject|Reply-To|In-Reply-To):([^\n]*(?:\n\h+[^\n]+)*)$ 1:keyword 2:attribute
|
|
|
|
addhl -def-group mail regex <[^@>]+@.*?> 0:string
|
|
|
|
addhl -def-group mail regex ^>.*?$ 0:comment
|
2013-02-21 13:36:25 +01:00
|
|
|
|
2013-12-03 23:15:59 +01:00
|
|
|
hook global WinSetOption filetype=mail %{ addhl ref mail }
|
|
|
|
hook global WinSetOption filetype=(?!mail).* %{ rmhl mail }
|