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
Next revisionBoth sides next revision
reference:attachment_processing_script [2018/06/28 09:41] – created paulreference:attachment_processing_script [2018/11/14 10:45] – external edit 127.0.0.1
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: 2022/11/24 09:29 by paul