imapsync/Mail-IMAPClient-3.30/lib/Mail/IMAPClient/Thread.grammar
Nick Bebout 1cb5bee328 1.463
2012-04-16 17:26:18 -05:00

18 lines
303 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;
}