[SCM] Vim packaging branch, deb/runtime, updated. upstream/7.1.285-54-g9027d5a
James Vega
jamessan at debian.org
Fri Apr 18 03:19:20 UTC 2008
The following commit has been merged in the deb/runtime branch:
commit 9027d5a6c8be743413a3527f3d31c7b919e4b9e8
Author: James Vega <jamessan at debian.org>
Date: Thu Apr 17 23:16:43 2008 -0400
Detect Mozilla Thunderbird's mbox file as mail filetype.
Thunderbird doesn't include the email address on the From line, instead using
a single '-' character. Change the regex to allow either an email address or
the '-'.
Closes #475300. Thanks to Kevin B. McCarty <kmccarty at debian.org>
Signed-off-by: James Vega <jamessan at debian.org>
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index e2b4b3d..49f1bcc 100644
--- a/runtime/scripts.vim
+++ b/runtime/scripts.vim
@@ -168,7 +168,7 @@ else
set ft=zsh
" ELM Mail files
- elseif s:line1 =~ '^From [a-zA-Z][a-zA-Z_0-9\.=-]*\(@[^ ]*\)\= .*[12][09]\d\d$'
+ elseif s:line1 =~ '^From \([a-zA-Z][a-zA-Z_0-9\.=-]*\(@[^ ]*\)\=\|-\) .*[12][09]\d\d$'
set ft=mail
" Mason
--
Vim packaging
More information about the pkg-vim-maintainers
mailing list