ccfd3f21cf
extractAttrs(block, 't:FileAttachment', 'Id') always returned empty array because the attachment Id lives in a child <t:AttachmentId Id="..."/>, not on the <t:FileAttachment> tag itself. This caused all Exchange inbox checks to silently find zero PDF attachments and report "no matching emails". Fixed by iterating FileAttachment blocks individually and extracting t:AttachmentId/@Id from within each block. Also added filename (.pdf) as fallback when ContentType is application/octet-stream. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>