imapsync/W/Mail-IMAPClient-3.42/lib/Mail/IMAPClient/Thread.grammar
2021-02-26 16:09:11 +00:00

19 lines
303 B
Plaintext

# 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;
}