User Tools

Site Tools


reference:attachment_processing_script

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
reference:attachment_processing_script [2018/06/28 08:41]
paul created
reference:attachment_processing_script [2018/11/14 10:45] (current)
Line 10: Line 10:
   * IsLockNeeded   * IsLockNeeded
   * RewriteAttachment   * RewriteAttachment
 +
 +====NeedsRecode====
 +function NeedsRecode(filtervariables,​ attachments_array,​ mime_structure)
 +
 +Called when VPOP3 is about to process a message
 +
 +returns true if the Lua script wants to alter any of the attachments of the whole message
 +
 +====NeedsRewrite====
 +function NeedsRewrite(attachmentname,​ MIMEtype, filtervariables)
 +
 +Called when VPOP3 is about to process an attachment in a message (Only called if '​NeedsRecode'​ returned true, or there is some other reason for VPOP3 to process attachments,​ eg to remove/​rename an attachment due to Attachment Filtering)
 +
 +returns true if the Lua script wants to rewrite/​rename the attachment
  
reference/attachment_processing_script.txt ยท Last modified: 2018/11/14 10:45 (external edit)