Modified extension to use "[newer|older]_than" search operators to simplify logic (https://support.google.com/mail/answer/7190?hl=en).