imapsync/W/Mail-IMAPClient-2.2.9/Thread/Thread.grammar_new
Nick Bebout c08a56e486 1.504
2012-09-02 19:08:57 -05:00

19 lines
304 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;
}