mirror of
https://github.com/zyedidia/micro
synced 2024-09-30 05:06:02 +00:00
24 lines
562 B
YAML
24 lines
562 B
YAML
filetype: mail
|
|
|
|
detect:
|
|
filename: "(.*/mutt-.*|\\.eml)$"
|
|
header: "^From .* \\d+:\\d+:\\d+ \\d+"
|
|
|
|
rules:
|
|
- type: "^From .*"
|
|
- identifier: "^[^[:space:]]+:"
|
|
- preproc: "^List-(Id|Archive|Subscribe|Unsubscribe|Post|Help):"
|
|
- constant: "^(To|From):"
|
|
- constant.string:
|
|
start: "^Subject:.*"
|
|
end: "$"
|
|
rules:
|
|
- constant.specialChar: "\\\\."
|
|
- statement: "<?[^@[:space:]]+@[^[:space:]]+>?"
|
|
- default:
|
|
start: "^\\n\\n"
|
|
end: ".*"
|
|
- comment:
|
|
start: "^>.*"
|
|
end: "$"
|