User Tools

Site Tools


reference:attachment_processing_script

This is an old revision of the document!


Attachment Processing Script

(Added in v7.6)

This script has functions to allow message attachments to be altered:

  • NeedsRecode
  • NeedsRewrite
  • GetRename
  • GetContentDispositionLine (added in v7.8)
  • IsLockNeeded
  • 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.1530176665.txt.gz · Last modified: 2018/11/14 10:44 (external edit)