imapsync/Mail-IMAPClient-2.2.9/Thread/Thread.grammar_new
Nick Bebout 9ca0e338a4 1.284
2011-03-12 02:44:47 +00:00

19 lines
304 B
Text

# Atoms:
NUMBER: /\d+/
# Rules:
threadmember: NUMBER { $return = $item{NUMBER} ; } |
thread { $return = $item{thread} ; }
thread: "(" threadmember(s) ")"
{
$return = $item{'threadmember(s)'}||undef;
}
# Start:
start: /^\* THREAD /i thread(s?) {
$return=$item{'thread(s?)'}||undef;
}