imapsync/Mail-IMAPClient-3.05/lib/Mail/IMAPClient/Thread.grammar
Nick Bebout 1c5b2411f6 1.249
2011-03-12 02:44:36 +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;
}