======Spam Filter Rules: CopyBag====== ^Statement |CopyBag | ^Version |6.17+ | ^Purpose |Copies the contents of one bag into another bag | The **CopyBag** statement requires an operator, "from bag" name and "to bag" name, in the format AddBag * may be either 'overwrite', 'add', 'subtract' * If is 'overwrite', then the 'from bag' is copied exactly to the 'to bag' * If is 'add', then entries in the 'from bag' are added to the 'to bag' if they aren't already there * If is 'subtract', then entries in the 'from bag' are removed from the 'to bag' if they are there =====Example===== CopyBag overwrite mybag mynewbag CopyBag overwrite mybag1 mynewbag CopyBag add mybag2 mynewbag