match filetype for eml extension

stolen from #878
This commit is contained in:
Martin Chaine 2016-12-06 17:53:12 +01:00
parent b64bcf7b3e
commit 74432ac8f2

View File

@ -1,4 +1,10 @@
hook global BufSetOption mimetype=message/rfc822 %{ set buffer filetype mail } hook global BufCreate .+\.eml %{
set buffer filetype mail
}
hook global BufSetOption mimetype=message/rfc822 %{
set buffer filetype mail
}
addhl -group / group mail addhl -group / group mail
addhl -group /mail regex ^(From|To|Cc|Bcc|Subject|Reply-To|In-Reply-To):([^\n]*(?:\n\h+[^\n]+)*)$ 1:keyword 2:attribute addhl -group /mail regex ^(From|To|Cc|Bcc|Subject|Reply-To|In-Reply-To):([^\n]*(?:\n\h+[^\n]+)*)$ 1:keyword 2:attribute