...
Code Block |
---|
IncomingEmail email = getIncomingEmail(); string issueKey = matchText(email.subject, "[A-Z][A-Z]+-[0-9]+"); // find an issue key in the subject if(isNotNull(issueKey)) { for(string att in email.attachments) { // only attach PDFs if(endsWith(att, ".pdf")) { attachFileFromEmail(att, issueKey); } } } |
Info |
---|
See the Predefined Structures page for more information about the JEmailAttachment structure used in this example. |
See also
Filter by label (Content by label) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|