msys.cloudmark.set_af_mode_movemsg
Last updated March 2020
Name
msys.cloudmark.set_af_mode_movemsg — Set the Cloudmark ActiveFilter mode to MOVEMSG.
Synopsis
require('msys.cloudmark')
msys.cloudmark.set_af_mode_movemsg(inbox, spam, unread_only)
inbox: string spam: string unread_only: string
Description
This sets the Cloudmark ActiveFilter mode to MOVEMSG. That is, move messages around based on their status.
- 
inbox– The Inbox folder name.
- 
spam– The Spam folder name.
- 
unread_only– Whether or not to move unread messages only. Values are"yes"or"no".
Note
You must set the ActiveFilter mode by invoking one of the following functions:
- 
msys.cloudmark.set_af_mode_discard
- 
msys.cloudmark.set_af_mode_keep
- 
msys.cloudmark.set_af_mode_movemsg
require("msys.cloudmark");
local mod = {};
function mod:init()
  msys.cloudmark.set_af_mode_movemsg("Inbox", "Spam", "no");
  msys.cloudmark.set_af_msi_address("msi@msi.local");
  return 0;
end
msys.registerModule("af_test", mod);
See Also
Was this page helpful?