Gmail OCR with Google Apps Script

The script will save Gmail attachments to Google Drive and because Drive supports OCR for images, you can then search for text inside these images.