imapsync/Mail-IMAPClient-3.28/lib/Mail/IMAPClient/Thread.grammar
Nick Bebout 09dfa9982d 1.411
2011-04-24 16:19:36 -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;
}