Since the goal is to only get emails with attachments, the query can be structured with `has:attachment`, as per [these docs](https://support.google.com/mail/answer/7190). The result shouldn't be any different, but it will probably have significant performance improvement to include that.
Since the goal is to only get emails with attachments, the query can be structured with
has:attachment, as per these docs.The result shouldn't be any different, but it will probably have significant performance improvement to include that.