Ticket #1187: extract-attachments.txt

File extract-attachments.txt, 344 bytes (added by Blucecio, 14 months ago)

Automation script to test the method extractAttachments of MailTool?

Line 
1#set($documents = $MailTool.extractAttachments($document, "pdf", "admin"))
2#if($documents)
3  #set($docSize = $documents.size())
4  $log.info("found documents: $docSize")
5#else
6  $log.info("No attachments found")     
7#end
8
9#foreach( $adoc in $documents )
10  $log.info("fileName: $adoc.fileName")
11  $DocTool.move($adoc, 'attachments')
12#end