findMailAttachments

Finds the first message attachment that meets a set of criteria.

It has no input but outputs a map describing the email attachment; an individual element of the list at /request/mail/attachments. The output is null if a matching attachment cannot be found.

Attributes

  1. index: if specified, the value of the index attribute is used to identify the attachment to be considered, using /request/mail/attachments#indexValue.
  2. file-name: if specified, an attachment is only selected if its file name matches the regular expression specified.
  3. content-type: if specified, an attachment is only selected if the MIME type contained in its Content-Type header matches the regular expression specified.
More