User Tools

Site Tools


reference:quarantine_mailer_script

Differences

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

Link to this comparison view

Next revision
Previous revision
reference:quarantine_mailer_script [2026/05/20 11:58] – created paulreference:quarantine_mailer_script [2026/05/26 13:55] (current) – [GetSortOrder] paul
Line 38: Line 38:
   * Size   * Size
   * Score   * Score
 +  * SenderDomain
  
 quarantineItems is a table of items, where each is: quarantineItems is a table of items, where each is:
-  *+  * Id - internal ID (string) 
 +  * Sender (string) 
 +  * SenderName (string) 
 +  * Date (string) 
 +  * Time (string) 
 +  * Subject (string) 
 +  * Size (number, in bytes) 
 +  * Score (number)
  
 ====GenerateMessage==== ====GenerateMessage====
Line 52: Line 60:
 ====GetHtmlTemplate==== ====GetHtmlTemplate====
  
-  function GetHtmlTemplate(username, quarantineItems, numberOfItems, limitReached)+  function GetHtmlTemplate(templateName, defaultFilename, username, quarantineItems, numberOfItems, limitReached) 
 +   
 +  * templateName = internal name ('root' or as passed in '~include~' directive) 
 +  * defaultFilename = filename to be used by VPOP3 if nothing is returned by the function
      
 returns filename, templateContents returns filename, templateContents
Line 116: Line 127:
   * ~comment~<data>~end~ - removed during processing - useful for comments for later reference when maintaining the template   * ~comment~<data>~end~ - removed during processing - useful for comments for later reference when maintaining the template
  
 +====GetReportRecipients====
 +
 +  function GetReportRecipients(username, globalRecipients, userRecipients, recipients, subject)
 +
 +  * globalRecipients = global "Send all quarantine reports to" setting
 +  * userRecipients = User -> Advanced "Daily Quarantine Report Recipient" setting
 +  
 +returns newRecipients, newSubject
 +
 +  * newRecipients = comma separated list of recipients. * will be replaced by the username
reference/quarantine_mailer_script.1779274729.txt.gz · Last modified: by paul