disclaimer_add

March 26, 2020 Contributors

Name

disclaimer_add — add a disclaimer to an email

Synopsis

disclaimer_add { hash }

Description

Use the disclaimer_add function to append a message to an email. For example, this function may be used to indicate that an email has been scanned.

Sieve scripts using disclaimer_add can be used in any stage or environment where you have a complete message body.

$h = hash_create;
 hash_set $h "html" "<HR>
 <DIV align=center><FONT face=Arial size=2>This email has been scanned
 for viruses.</FONT></DIV>
 <DIV>
 <HR>
 </DIV>";
 disclaimer_add $h;

$h = hash_create;
 hash_set $h "plain" "This email has been scanned for viruses";
 disclaimer_add $h;

When using html as a key, the module will look for all text/html parts that are not attachments and append the HTML disclaimer. When using plain as a key, the module will look for all text/plain parts that are not attachments and append the plain disclaimer. If using both, it will look for both, adding the html disclaimer to the html parts, and the plain disclaimer to the plain parts.