imapsync/W/Mail-IMAPClient-3.35/lib/Mail/IMAPClient/Thread.grammar
Nick Bebout 6a0efa6bc8 1.580
2013-12-29 20:03:13 -06: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;
}