imapsync/Mail-IMAPClient-2.99_02/lib/Mail/IMAPClient/Thread.grammar
Nick Bebout 6576e43299 1.233
2011-03-12 02:44:35 +00: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;
}