| 1 | # Copyright (c) 2005 - 2006 Hans Jeuken. All rights reserved. | ||||||||||||||||||||
| 2 | # This program is free software; you can redistribute it and/or | ||||||||||||||||||||
| 3 | # modify it under the same terms as Perl itself. | ||||||||||||||||||||
| 4 | |||||||||||||||||||||
| 5 | # This file was generated from the 'email.xml' file of the syntax highlight | ||||||||||||||||||||
| 6 | # engine of the kate text editor (http://www.kate-editor.org | ||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | #kate xml version 1.00 | ||||||||||||||||||||
| 9 | #kate version 2.4 | ||||||||||||||||||||
| 10 | #kate author Carl A Joslin (carl.joslin@joslin.dyndns.org) | ||||||||||||||||||||
| 11 | #generated: Sun Feb 3 22:02:04 2008, localtime | ||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | package Syntax::Highlight::Engine::Kate::Email; | ||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 1 | our $VERSION = '0.14'; | |||||||||||||||||||
| 16 | |||||||||||||||||||||
| 17 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 18 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 19 | 1 | ▶ | use base('Syntax::Highlight::Engine::Kate::Template'); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | sub new { | ||||||||||||||||||||
| 22 | 2 | ▶ | my $proto = shift; | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.0
Pod
undocumented
| |||||||||||||||||||||
| 23 | 2 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 24 | 2 | my $self = $class->SUPER::new(@_); | |||||||||||||||||||
| 25 | 2 | $self->attributes({ | |||||||||||||||||||
| 26 | 'Normal Text' => 'Normal', | ||||||||||||||||||||
| 27 | 'base64' => 'RegionMarker', | ||||||||||||||||||||
| 28 | 'common' => 'Keyword', | ||||||||||||||||||||
| 29 | 'email' => 'Function', | ||||||||||||||||||||
| 30 | 'indent1' => 'DataType', | ||||||||||||||||||||
| 31 | 'indent2' => 'DecVal', | ||||||||||||||||||||
| 32 | 'indent3' => 'Float', | ||||||||||||||||||||
| 33 | 'indent4' => 'BaseN', | ||||||||||||||||||||
| 34 | 'indent5' => 'BString', | ||||||||||||||||||||
| 35 | 'indent6' => 'Reserved', | ||||||||||||||||||||
| 36 | 'marker' => 'Alert', | ||||||||||||||||||||
| 37 | 'other' => 'Others', | ||||||||||||||||||||
| 38 | 'rfc' => 'Operator', | ||||||||||||||||||||
| 39 | 'rfc-main' => 'Alert', | ||||||||||||||||||||
| 40 | 'sign' => 'Comment', | ||||||||||||||||||||
| 41 | 'string' => 'String', | ||||||||||||||||||||
| 42 | }); | ||||||||||||||||||||
| 43 | 2 | $self->contextdata({ | |||||||||||||||||||
| 44 | 'headder' => { | ||||||||||||||||||||
| 45 | callback => \&parseheadder, | ||||||||||||||||||||
| 46 | attribute => 'Normal Text', | ||||||||||||||||||||
| 47 | }, | ||||||||||||||||||||
| 48 | }); | ||||||||||||||||||||
| 49 | 2 | $self->deliminators('\\s||\\.|\\(|\\)|:|\\!|\\+|,|-|<|=|>|\\%|\\&|\\*|\\/|;|\\?|\\[|\\]|\\^|\\{|\\||\\}|\\~|\\\\'); | |||||||||||||||||||
| 50 | 2 | $self->basecontext('headder'); | |||||||||||||||||||
| 51 | 2 | $self->keywordscase(0); | |||||||||||||||||||
| 52 | 2 | $self->initialize; | |||||||||||||||||||
| 53 | 2 | bless ($self, $class); | |||||||||||||||||||
| 54 | 2 | return $self; | |||||||||||||||||||
| 55 | } | ||||||||||||||||||||
| 56 | |||||||||||||||||||||
| 57 | sub language { | ||||||||||||||||||||
| 58 | 0 | ▶ | return 'Email'; | ||||||||||||||||||
|
Subroutine
language: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 59 | } | ||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | sub parseheadder { | ||||||||||||||||||||
| 62 | 4928 | ▶ | my ($self, $text) = @_; | ||||||||||||||||||
|
Subroutine
parseheadder: called CC=59 SCAR=56.5
Pod
undocumented
| |||||||||||||||||||||
| 63 | # String => '^[Tt]o:.*$' | ||||||||||||||||||||
| 64 | # attribute => 'rfc-main' | ||||||||||||||||||||
| 65 | # context => '#stay' | ||||||||||||||||||||
| 66 | # type => 'RegExpr' | ||||||||||||||||||||
| 67 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Tt]o:.*$', 0, 0, 0, undef, 0, '#stay', 'rfc-main')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 68 | 0 | return 1 | |||||||||||||||||||
| 69 | } | ||||||||||||||||||||
| 70 | # String => '^[Ff]rom:.*$' | ||||||||||||||||||||
| 71 | # attribute => 'rfc-main' | ||||||||||||||||||||
| 72 | # context => '#stay' | ||||||||||||||||||||
| 73 | # type => 'RegExpr' | ||||||||||||||||||||
| 74 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Ff]rom:.*$', 0, 0, 0, undef, 0, '#stay', 'rfc-main')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 75 | 0 | return 1 | |||||||||||||||||||
| 76 | } | ||||||||||||||||||||
| 77 | # String => '^[Cc][Cc]:.*$' | ||||||||||||||||||||
| 78 | # attribute => 'rfc-main' | ||||||||||||||||||||
| 79 | # context => '#stay' | ||||||||||||||||||||
| 80 | # type => 'RegExpr' | ||||||||||||||||||||
| 81 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Cc][Cc]:.*$', 0, 0, 0, undef, 0, '#stay', 'rfc-main')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 82 | 0 | return 1 | |||||||||||||||||||
| 83 | } | ||||||||||||||||||||
| 84 | # String => '^[Bb][Cc][Cc]:.*$' | ||||||||||||||||||||
| 85 | # attribute => 'rfc-main' | ||||||||||||||||||||
| 86 | # context => '#stay' | ||||||||||||||||||||
| 87 | # type => 'RegExpr' | ||||||||||||||||||||
| 88 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Bb][Cc][Cc]:.*$', 0, 0, 0, undef, 0, '#stay', 'rfc-main')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 89 | 0 | return 1 | |||||||||||||||||||
| 90 | } | ||||||||||||||||||||
| 91 | # String => '^[Ss]ubject:.*$' | ||||||||||||||||||||
| 92 | # attribute => 'rfc-main' | ||||||||||||||||||||
| 93 | # context => '#stay' | ||||||||||||||||||||
| 94 | # type => 'RegExpr' | ||||||||||||||||||||
| 95 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Ss]ubject:.*$', 0, 0, 0, undef, 0, '#stay', 'rfc-main')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 96 | 0 | return 1 | |||||||||||||||||||
| 97 | } | ||||||||||||||||||||
| 98 | # String => '^[Dd]ate:.*$' | ||||||||||||||||||||
| 99 | # attribute => 'rfc-main' | ||||||||||||||||||||
| 100 | # context => '#stay' | ||||||||||||||||||||
| 101 | # type => 'RegExpr' | ||||||||||||||||||||
| 102 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Dd]ate:.*$', 0, 0, 0, undef, 0, '#stay', 'rfc-main')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 103 | 0 | return 1 | |||||||||||||||||||
| 104 | } | ||||||||||||||||||||
| 105 | # String => '^[Ss]ender:' | ||||||||||||||||||||
| 106 | # attribute => 'rfc' | ||||||||||||||||||||
| 107 | # context => '#stay' | ||||||||||||||||||||
| 108 | # type => 'RegExpr' | ||||||||||||||||||||
| 109 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Ss]ender:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 110 | 0 | return 1 | |||||||||||||||||||
| 111 | } | ||||||||||||||||||||
| 112 | # String => '^[Rr]eply-[Tt]o:' | ||||||||||||||||||||
| 113 | # attribute => 'rfc' | ||||||||||||||||||||
| 114 | # context => '#stay' | ||||||||||||||||||||
| 115 | # type => 'RegExpr' | ||||||||||||||||||||
| 116 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Rr]eply-[Tt]o:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 117 | 0 | return 1 | |||||||||||||||||||
| 118 | } | ||||||||||||||||||||
| 119 | # String => '^[Mm]essage-[Ii][Dd]:' | ||||||||||||||||||||
| 120 | # attribute => 'rfc' | ||||||||||||||||||||
| 121 | # context => '#stay' | ||||||||||||||||||||
| 122 | # type => 'RegExpr' | ||||||||||||||||||||
| 123 | 4928 | ▶ | if ($self->testRegExpr($text, '^[Mm]essage-[Ii][Dd]:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 124 | 2 | return 1 | |||||||||||||||||||
| 125 | } | ||||||||||||||||||||
| 126 | # String => '^[Ii]n-[Rr]eply-[Tt]o:' | ||||||||||||||||||||
| 127 | # attribute => 'rfc' | ||||||||||||||||||||
| 128 | # context => '#stay' | ||||||||||||||||||||
| 129 | # type => 'RegExpr' | ||||||||||||||||||||
| 130 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Ii]n-[Rr]eply-[Tt]o:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 131 | 0 | return 1 | |||||||||||||||||||
| 132 | } | ||||||||||||||||||||
| 133 | # String => '^[Rr]eferences:' | ||||||||||||||||||||
| 134 | # attribute => 'rfc' | ||||||||||||||||||||
| 135 | # context => '#stay' | ||||||||||||||||||||
| 136 | # type => 'RegExpr' | ||||||||||||||||||||
| 137 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]eferences:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 138 | 0 | return 1 | |||||||||||||||||||
| 139 | } | ||||||||||||||||||||
| 140 | # String => '^[Cc]omments:' | ||||||||||||||||||||
| 141 | # attribute => 'rfc' | ||||||||||||||||||||
| 142 | # context => '#stay' | ||||||||||||||||||||
| 143 | # type => 'RegExpr' | ||||||||||||||||||||
| 144 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Cc]omments:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 145 | 0 | return 1 | |||||||||||||||||||
| 146 | } | ||||||||||||||||||||
| 147 | # String => '^[Kk]eywors:' | ||||||||||||||||||||
| 148 | # attribute => 'rfc' | ||||||||||||||||||||
| 149 | # context => '#stay' | ||||||||||||||||||||
| 150 | # type => 'RegExpr' | ||||||||||||||||||||
| 151 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Kk]eywors:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 152 | 0 | return 1 | |||||||||||||||||||
| 153 | } | ||||||||||||||||||||
| 154 | # String => '^[Rr]esent-[Dd]ate:' | ||||||||||||||||||||
| 155 | # attribute => 'rfc' | ||||||||||||||||||||
| 156 | # context => '#stay' | ||||||||||||||||||||
| 157 | # type => 'RegExpr' | ||||||||||||||||||||
| 158 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Dd]ate:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 159 | 0 | return 1 | |||||||||||||||||||
| 160 | } | ||||||||||||||||||||
| 161 | # String => '^[Rr]esent-[Ff]rom:' | ||||||||||||||||||||
| 162 | # attribute => 'rfc' | ||||||||||||||||||||
| 163 | # context => '#stay' | ||||||||||||||||||||
| 164 | # type => 'RegExpr' | ||||||||||||||||||||
| 165 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Ff]rom:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 166 | 0 | return 1 | |||||||||||||||||||
| 167 | } | ||||||||||||||||||||
| 168 | # String => '^[Rr]esent-[Ss]ender:' | ||||||||||||||||||||
| 169 | # attribute => 'rfc' | ||||||||||||||||||||
| 170 | # context => '#stay' | ||||||||||||||||||||
| 171 | # type => 'RegExpr' | ||||||||||||||||||||
| 172 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Ss]ender:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 173 | 0 | return 1 | |||||||||||||||||||
| 174 | } | ||||||||||||||||||||
| 175 | # String => '^[Rr]esent-[Tt]o:' | ||||||||||||||||||||
| 176 | # attribute => 'rfc' | ||||||||||||||||||||
| 177 | # context => '#stay' | ||||||||||||||||||||
| 178 | # type => 'RegExpr' | ||||||||||||||||||||
| 179 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Tt]o:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 180 | 0 | return 1 | |||||||||||||||||||
| 181 | } | ||||||||||||||||||||
| 182 | # String => '^[Rr]esent-[Cc][Cc]:' | ||||||||||||||||||||
| 183 | # attribute => 'rfc' | ||||||||||||||||||||
| 184 | # context => '#stay' | ||||||||||||||||||||
| 185 | # type => 'RegExpr' | ||||||||||||||||||||
| 186 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Cc][Cc]:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 187 | 0 | return 1 | |||||||||||||||||||
| 188 | } | ||||||||||||||||||||
| 189 | # String => '^[Rr]esent-[Bb][Cc][Cc]:' | ||||||||||||||||||||
| 190 | # attribute => 'rfc' | ||||||||||||||||||||
| 191 | # context => '#stay' | ||||||||||||||||||||
| 192 | # type => 'RegExpr' | ||||||||||||||||||||
| 193 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Bb][Cc][Cc]:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 194 | 0 | return 1 | |||||||||||||||||||
| 195 | } | ||||||||||||||||||||
| 196 | # String => '^[Rr]esent-[Mm]essage-[Ii][Dd]:' | ||||||||||||||||||||
| 197 | # attribute => 'rfc' | ||||||||||||||||||||
| 198 | # context => '#stay' | ||||||||||||||||||||
| 199 | # type => 'RegExpr' | ||||||||||||||||||||
| 200 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Mm]essage-[Ii][Dd]:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 201 | 0 | return 1 | |||||||||||||||||||
| 202 | } | ||||||||||||||||||||
| 203 | # String => '^[Rr]esent-[Rr]eply-[Tt]o:' | ||||||||||||||||||||
| 204 | # attribute => 'rfc' | ||||||||||||||||||||
| 205 | # context => '#stay' | ||||||||||||||||||||
| 206 | # type => 'RegExpr' | ||||||||||||||||||||
| 207 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]esent-[Rr]eply-[Tt]o:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 208 | 0 | return 1 | |||||||||||||||||||
| 209 | } | ||||||||||||||||||||
| 210 | # String => '^[Rr]eturn-[Pp]ath:' | ||||||||||||||||||||
| 211 | # attribute => 'rfc' | ||||||||||||||||||||
| 212 | # context => '#stay' | ||||||||||||||||||||
| 213 | # type => 'RegExpr' | ||||||||||||||||||||
| 214 | 4926 | ▶ | if ($self->testRegExpr($text, '^[Rr]eturn-[Pp]ath:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 215 | 2 | return 1 | |||||||||||||||||||
| 216 | } | ||||||||||||||||||||
| 217 | # String => '^[Rr]eceived:' | ||||||||||||||||||||
| 218 | # attribute => 'rfc' | ||||||||||||||||||||
| 219 | # context => '#stay' | ||||||||||||||||||||
| 220 | # type => 'RegExpr' | ||||||||||||||||||||
| 221 | 4924 | ▶ | if ($self->testRegExpr($text, '^[Rr]eceived:', 0, 0, 0, undef, 0, '#stay', 'rfc')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 222 | 10 | return 1 | |||||||||||||||||||
| 223 | } | ||||||||||||||||||||
| 224 | # String => '^[Xx]-[Mm]ozilla-[Ss]tatus:' | ||||||||||||||||||||
| 225 | # attribute => 'common' | ||||||||||||||||||||
| 226 | # context => '#stay' | ||||||||||||||||||||
| 227 | # type => 'RegExpr' | ||||||||||||||||||||
| 228 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Mm]ozilla-[Ss]tatus:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 229 | 0 | return 1 | |||||||||||||||||||
| 230 | } | ||||||||||||||||||||
| 231 | # String => '^[Xx]-[Mm]ozilla-[Ss]tatus2:' | ||||||||||||||||||||
| 232 | # attribute => 'common' | ||||||||||||||||||||
| 233 | # context => '#stay' | ||||||||||||||||||||
| 234 | # type => 'RegExpr' | ||||||||||||||||||||
| 235 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Mm]ozilla-[Ss]tatus2:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 236 | 0 | return 1 | |||||||||||||||||||
| 237 | } | ||||||||||||||||||||
| 238 | # String => '^[Ee]nverlope-[Tt]o:' | ||||||||||||||||||||
| 239 | # attribute => 'common' | ||||||||||||||||||||
| 240 | # context => '#stay' | ||||||||||||||||||||
| 241 | # type => 'RegExpr' | ||||||||||||||||||||
| 242 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Ee]nverlope-[Tt]o:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 243 | 0 | return 1 | |||||||||||||||||||
| 244 | } | ||||||||||||||||||||
| 245 | # String => '^[Dd]elivery-[Dd]ate:' | ||||||||||||||||||||
| 246 | # attribute => 'common' | ||||||||||||||||||||
| 247 | # context => '#stay' | ||||||||||||||||||||
| 248 | # type => 'RegExpr' | ||||||||||||||||||||
| 249 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Dd]elivery-[Dd]ate:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 250 | 0 | return 1 | |||||||||||||||||||
| 251 | } | ||||||||||||||||||||
| 252 | # String => '^[Xx]-[Oo]riginating-[Ii][Pp]:' | ||||||||||||||||||||
| 253 | # attribute => 'common' | ||||||||||||||||||||
| 254 | # context => '#stay' | ||||||||||||||||||||
| 255 | # type => 'RegExpr' | ||||||||||||||||||||
| 256 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Oo]riginating-[Ii][Pp]:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 257 | 0 | return 1 | |||||||||||||||||||
| 258 | } | ||||||||||||||||||||
| 259 | # String => '^[Xx]-[Oo]riginating-[Ee]mail:' | ||||||||||||||||||||
| 260 | # attribute => 'common' | ||||||||||||||||||||
| 261 | # context => '#stay' | ||||||||||||||||||||
| 262 | # type => 'RegExpr' | ||||||||||||||||||||
| 263 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Oo]riginating-[Ee]mail:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 264 | 0 | return 1 | |||||||||||||||||||
| 265 | } | ||||||||||||||||||||
| 266 | # String => '^[Xx]-[Ss]ender:' | ||||||||||||||||||||
| 267 | # attribute => 'common' | ||||||||||||||||||||
| 268 | # context => '#stay' | ||||||||||||||||||||
| 269 | # type => 'RegExpr' | ||||||||||||||||||||
| 270 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Ss]ender:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 271 | 0 | return 1 | |||||||||||||||||||
| 272 | } | ||||||||||||||||||||
| 273 | # String => '^[Mm]ime-[Vv]ersion:' | ||||||||||||||||||||
| 274 | # attribute => 'common' | ||||||||||||||||||||
| 275 | # context => '#stay' | ||||||||||||||||||||
| 276 | # type => 'RegExpr' | ||||||||||||||||||||
| 277 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Mm]ime-[Vv]ersion:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 278 | 0 | return 1 | |||||||||||||||||||
| 279 | } | ||||||||||||||||||||
| 280 | # String => '^[Cc]ontent-[Tt]ype:' | ||||||||||||||||||||
| 281 | # attribute => 'common' | ||||||||||||||||||||
| 282 | # context => '#stay' | ||||||||||||||||||||
| 283 | # type => 'RegExpr' | ||||||||||||||||||||
| 284 | 4914 | ▶ | if ($self->testRegExpr($text, '^[Cc]ontent-[Tt]ype:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 285 | 10 | return 1 | |||||||||||||||||||
| 286 | } | ||||||||||||||||||||
| 287 | # String => '^[Xx]-[Mm]ailing-[Ll]ist:' | ||||||||||||||||||||
| 288 | # attribute => 'common' | ||||||||||||||||||||
| 289 | # context => '#stay' | ||||||||||||||||||||
| 290 | # type => 'RegExpr' | ||||||||||||||||||||
| 291 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Mm]ailing-[Ll]ist:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 292 | 0 | return 1 | |||||||||||||||||||
| 293 | } | ||||||||||||||||||||
| 294 | # String => '^[Xx]-[Ll]oop:' | ||||||||||||||||||||
| 295 | # attribute => 'common' | ||||||||||||||||||||
| 296 | # context => '#stay' | ||||||||||||||||||||
| 297 | # type => 'RegExpr' | ||||||||||||||||||||
| 298 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Ll]oop:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 299 | 0 | return 1 | |||||||||||||||||||
| 300 | } | ||||||||||||||||||||
| 301 | # String => '^[Ll]ist-[Pp]ost:' | ||||||||||||||||||||
| 302 | # attribute => 'common' | ||||||||||||||||||||
| 303 | # context => '#stay' | ||||||||||||||||||||
| 304 | # type => 'RegExpr' | ||||||||||||||||||||
| 305 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Ll]ist-[Pp]ost:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 306 | 0 | return 1 | |||||||||||||||||||
| 307 | } | ||||||||||||||||||||
| 308 | # String => '^[Ll]ist-[Hh]elp:' | ||||||||||||||||||||
| 309 | # attribute => 'common' | ||||||||||||||||||||
| 310 | # context => '#stay' | ||||||||||||||||||||
| 311 | # type => 'RegExpr' | ||||||||||||||||||||
| 312 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Ll]ist-[Hh]elp:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 313 | 0 | return 1 | |||||||||||||||||||
| 314 | } | ||||||||||||||||||||
| 315 | # String => '^[Ll]ist-[Uu]nsubscribe:' | ||||||||||||||||||||
| 316 | # attribute => 'common' | ||||||||||||||||||||
| 317 | # context => '#stay' | ||||||||||||||||||||
| 318 | # type => 'RegExpr' | ||||||||||||||||||||
| 319 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Ll]ist-[Uu]nsubscribe:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 320 | 0 | return 1 | |||||||||||||||||||
| 321 | } | ||||||||||||||||||||
| 322 | # String => '^[Pp]recedence:' | ||||||||||||||||||||
| 323 | # attribute => 'common' | ||||||||||||||||||||
| 324 | # context => '#stay' | ||||||||||||||||||||
| 325 | # type => 'RegExpr' | ||||||||||||||||||||
| 326 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Pp]recedence:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 327 | 0 | return 1 | |||||||||||||||||||
| 328 | } | ||||||||||||||||||||
| 329 | # String => '^[Cc]ontent-[Tt]ransfer-[Ee]ncoding:' | ||||||||||||||||||||
| 330 | # attribute => 'common' | ||||||||||||||||||||
| 331 | # context => '#stay' | ||||||||||||||||||||
| 332 | # type => 'RegExpr' | ||||||||||||||||||||
| 333 | 4904 | ▶ | if ($self->testRegExpr($text, '^[Cc]ontent-[Tt]ransfer-[Ee]ncoding:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 334 | 6 | return 1 | |||||||||||||||||||
| 335 | } | ||||||||||||||||||||
| 336 | # String => '^[Cc]ontent-[Tt]ype:' | ||||||||||||||||||||
| 337 | # attribute => 'common' | ||||||||||||||||||||
| 338 | # context => '#stay' | ||||||||||||||||||||
| 339 | # type => 'RegExpr' | ||||||||||||||||||||
| 340 | 4898 | ▶ | if ($self->testRegExpr($text, '^[Cc]ontent-[Tt]ype:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 341 | 0 | return 1 | |||||||||||||||||||
| 342 | } | ||||||||||||||||||||
| 343 | # String => '^[Xx]-[Bb]ulkmail:' | ||||||||||||||||||||
| 344 | # attribute => 'common' | ||||||||||||||||||||
| 345 | # context => '#stay' | ||||||||||||||||||||
| 346 | # type => 'RegExpr' | ||||||||||||||||||||
| 347 | 4898 | ▶ | if ($self->testRegExpr($text, '^[Xx]-[Bb]ulkmail:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 348 | 0 | return 1 | |||||||||||||||||||
| 349 | } | ||||||||||||||||||||
| 350 | # String => '^[Pp]recedence:' | ||||||||||||||||||||
| 351 | # attribute => 'common' | ||||||||||||||||||||
| 352 | # context => '#stay' | ||||||||||||||||||||
| 353 | # type => 'RegExpr' | ||||||||||||||||||||
| 354 | 4898 | ▶ | if ($self->testRegExpr($text, '^[Pp]recedence:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 355 | 0 | return 1 | |||||||||||||||||||
| 356 | } | ||||||||||||||||||||
| 357 | # String => '^[Cc]ontent-[Dd]isposition:' | ||||||||||||||||||||
| 358 | # attribute => 'common' | ||||||||||||||||||||
| 359 | # context => '#stay' | ||||||||||||||||||||
| 360 | # type => 'RegExpr' | ||||||||||||||||||||
| 361 | 4898 | ▶ | if ($self->testRegExpr($text, '^[Cc]ontent-[Dd]isposition:', 0, 0, 0, undef, 0, '#stay', 'common')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 362 | 0 | return 1 | |||||||||||||||||||
| 363 | } | ||||||||||||||||||||
| 364 | # String => '^[0-9a-zA-Z-.]+:' | ||||||||||||||||||||
| 365 | # attribute => 'other' | ||||||||||||||||||||
| 366 | # context => '#stay' | ||||||||||||||||||||
| 367 | # type => 'RegExpr' | ||||||||||||||||||||
| 368 | 4898 | ▶ | if ($self->testRegExpr($text, '^[0-9a-zA-Z-.]+:', 0, 0, 0, undef, 0, '#stay', 'other')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 369 | 34 | return 1 | |||||||||||||||||||
| 370 | } | ||||||||||||||||||||
| 371 | # String => '[a-zA-Z0-9.\-]+\@[a-zA-Z0-9.\-]+' | ||||||||||||||||||||
| 372 | # attribute => 'email' | ||||||||||||||||||||
| 373 | # context => '#stay' | ||||||||||||||||||||
| 374 | # type => 'RegExpr' | ||||||||||||||||||||
| 375 | 4864 | ▶ | if ($self->testRegExpr($text, '[a-zA-Z0-9.\\-]+\\@[a-zA-Z0-9.\\-]+', 0, 0, 0, undef, 0, '#stay', 'email')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 376 | 20 | return 1 | |||||||||||||||||||
| 377 | } | ||||||||||||||||||||
| 378 | # String => '[a-zA-Z0-9.\-]*\s*<[a-zA-Z0-9.\-]+\@[a-zA-Z0-9.\-]+>' | ||||||||||||||||||||
| 379 | # attribute => 'email' | ||||||||||||||||||||
| 380 | # context => '#stay' | ||||||||||||||||||||
| 381 | # type => 'RegExpr' | ||||||||||||||||||||
| 382 | 4844 | ▶ | if ($self->testRegExpr($text, '[a-zA-Z0-9.\\-]*\\s*<[a-zA-Z0-9.\\-]+\\@[a-zA-Z0-9.\\-]+>', 0, 0, 0, undef, 0, '#stay', 'email')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 383 | 6 | return 1 | |||||||||||||||||||
| 384 | } | ||||||||||||||||||||
| 385 | # String => '"[a-zA-Z0-9. \-]+"\s*<[a-zA-Z0-9.\-]+\@[a-zA-Z0-9.\-]+>' | ||||||||||||||||||||
| 386 | # attribute => 'email' | ||||||||||||||||||||
| 387 | # context => '#stay' | ||||||||||||||||||||
| 388 | # type => 'RegExpr' | ||||||||||||||||||||
| 389 | 4838 | ▶ | if ($self->testRegExpr($text, '"[a-zA-Z0-9. \\-]+"\\s*<[a-zA-Z0-9.\\-]+\\@[a-zA-Z0-9.\\-]+>', 0, 0, 0, undef, 0, '#stay', 'email')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 390 | 2 | return 1 | |||||||||||||||||||
| 391 | } | ||||||||||||||||||||
| 392 | # String => '".*"' | ||||||||||||||||||||
| 393 | # attribute => 'string' | ||||||||||||||||||||
| 394 | # context => '#stay' | ||||||||||||||||||||
| 395 | # type => 'RegExpr' | ||||||||||||||||||||
| 396 | 4836 | ▶ | if ($self->testRegExpr($text, '".*"', 0, 0, 0, undef, 0, '#stay', 'string')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 397 | 20 | return 1 | |||||||||||||||||||
| 398 | } | ||||||||||||||||||||
| 399 | # String => ''.*'' | ||||||||||||||||||||
| 400 | # attribute => 'string' | ||||||||||||||||||||
| 401 | # context => '#stay' | ||||||||||||||||||||
| 402 | # type => 'RegExpr' | ||||||||||||||||||||
| 403 | 4816 | ▶ | if ($self->testRegExpr($text, '\'.*\'', 0, 0, 0, undef, 0, '#stay', 'string')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 404 | 0 | return 1 | |||||||||||||||||||
| 405 | } | ||||||||||||||||||||
| 406 | # String => '^[|>]\s*[|>]\s*[|>]\s*[|>]\s*[|>]\s*[|>].*' | ||||||||||||||||||||
| 407 | # attribute => 'indent6' | ||||||||||||||||||||
| 408 | # context => '#stay' | ||||||||||||||||||||
| 409 | # type => 'RegExpr' | ||||||||||||||||||||
| 410 | 4816 | ▶ | if ($self->testRegExpr($text, '^[|>]\\s*[|>]\\s*[|>]\\s*[|>]\\s*[|>]\\s*[|>].*', 0, 0, 0, undef, 0, '#stay', 'indent6')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 411 | 0 | return 1 | |||||||||||||||||||
| 412 | } | ||||||||||||||||||||
| 413 | # String => '^[|>]\s*[|>]\s*[|>]\s*[|>]\s*[|>].*' | ||||||||||||||||||||
| 414 | # attribute => 'indent5' | ||||||||||||||||||||
| 415 | # context => '#stay' | ||||||||||||||||||||
| 416 | # type => 'RegExpr' | ||||||||||||||||||||
| 417 | 4816 | ▶ | if ($self->testRegExpr($text, '^[|>]\\s*[|>]\\s*[|>]\\s*[|>]\\s*[|>].*', 0, 0, 0, undef, 0, '#stay', 'indent5')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 418 | 0 | return 1 | |||||||||||||||||||
| 419 | } | ||||||||||||||||||||
| 420 | # String => '^[|>]\s*[|>]\s*[|>]\s*[|>].*' | ||||||||||||||||||||
| 421 | # attribute => 'indent4' | ||||||||||||||||||||
| 422 | # context => '#stay' | ||||||||||||||||||||
| 423 | # type => 'RegExpr' | ||||||||||||||||||||
| 424 | 4816 | ▶ | if ($self->testRegExpr($text, '^[|>]\\s*[|>]\\s*[|>]\\s*[|>].*', 0, 0, 0, undef, 0, '#stay', 'indent4')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 425 | 0 | return 1 | |||||||||||||||||||
| 426 | } | ||||||||||||||||||||
| 427 | # String => '^[|>]\s*[|>]\s*[|>].*' | ||||||||||||||||||||
| 428 | # attribute => 'indent3' | ||||||||||||||||||||
| 429 | # context => '#stay' | ||||||||||||||||||||
| 430 | # type => 'RegExpr' | ||||||||||||||||||||
| 431 | 4816 | ▶ | if ($self->testRegExpr($text, '^[|>]\\s*[|>]\\s*[|>].*', 0, 0, 0, undef, 0, '#stay', 'indent3')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 432 | 0 | return 1 | |||||||||||||||||||
| 433 | } | ||||||||||||||||||||
| 434 | # String => '^[|>]\s*[|>].*' | ||||||||||||||||||||
| 435 | # attribute => 'indent2' | ||||||||||||||||||||
| 436 | # context => '#stay' | ||||||||||||||||||||
| 437 | # type => 'RegExpr' | ||||||||||||||||||||
| 438 | 4816 | ▶ | if ($self->testRegExpr($text, '^[|>]\\s*[|>].*', 0, 0, 0, undef, 0, '#stay', 'indent2')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 439 | 0 | return 1 | |||||||||||||||||||
| 440 | } | ||||||||||||||||||||
| 441 | # String => '^[|>].*' | ||||||||||||||||||||
| 442 | # attribute => 'indent1' | ||||||||||||||||||||
| 443 | # context => '#stay' | ||||||||||||||||||||
| 444 | # type => 'RegExpr' | ||||||||||||||||||||
| 445 | 4816 | ▶ | if ($self->testRegExpr($text, '^[|>].*', 0, 0, 0, undef, 0, '#stay', 'indent1')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 446 | 0 | return 1 | |||||||||||||||||||
| 447 | } | ||||||||||||||||||||
| 448 | # String => '^([A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/]){10,20}$' | ||||||||||||||||||||
| 449 | # attribute => 'base64' | ||||||||||||||||||||
| 450 | # context => '#stay' | ||||||||||||||||||||
| 451 | # type => 'RegExpr' | ||||||||||||||||||||
| 452 | 4816 | ▶ | if ($self->testRegExpr($text, '^([A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/][A-Za-z0-9+/]){10,20}$', 0, 0, 0, undef, 0, '#stay', 'base64')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 453 | 0 | return 1 | |||||||||||||||||||
| 454 | } | ||||||||||||||||||||
| 455 | # String => '^[A-Za-z0-9+=/]+=$' | ||||||||||||||||||||
| 456 | # attribute => 'base64' | ||||||||||||||||||||
| 457 | # context => '#stay' | ||||||||||||||||||||
| 458 | # type => 'RegExpr' | ||||||||||||||||||||
| 459 | 4816 | ▶ | if ($self->testRegExpr($text, '^[A-Za-z0-9+=/]+=$', 0, 0, 0, undef, 0, '#stay', 'base64')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 460 | 0 | return 1 | |||||||||||||||||||
| 461 | } | ||||||||||||||||||||
| 462 | # String => '^(- )?--(--.*)?' | ||||||||||||||||||||
| 463 | # attribute => 'marker' | ||||||||||||||||||||
| 464 | # context => '#stay' | ||||||||||||||||||||
| 465 | # type => 'RegExpr' | ||||||||||||||||||||
| 466 | 4816 | ▶ | if ($self->testRegExpr($text, '^(- )?--(--.*)?', 0, 0, 0, undef, 0, '#stay', 'marker')) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 467 | 12 | return 1 | |||||||||||||||||||
| 468 | } | ||||||||||||||||||||
| 469 | 4804 | return 0; | |||||||||||||||||||
| 470 | }; | ||||||||||||||||||||
| 471 | |||||||||||||||||||||
| 472 | |||||||||||||||||||||
| 473 | 1 | 1; | |||||||||||||||||||
| 474 | |||||||||||||||||||||
| 475 | __END__ | ||||||||||||||||||||