====== Scrub Messages ======
The Scrub Message module (''scrubmsgs.js'') may be used (e.g. executed via [[util:JSexec]]) to scan through one or more message bases (e.g. sub-boards) and remove illegal control characters from specific message header fields (e.g. to, from, subject, etc.).

===== Usage =====

If you receive the [[util:chksmb]] error (''Header field contains control characters'') for one or more messages in a message base, this script is designed to resolve that issue.

==== Syntax ====

  jsexec scrubmsgs [-debug] [-scan] <sub-code> [sub-code] [/path/to/subfile]
  
=== Options ===
The ''-debug'' option will cause scrubmsgs to output a lot of detailed status messages you likely do not need to see.

The ''-scan'' option will cause scrubmsgs to just scan a message-base for any corrupted header fields (i.e. containing illegal control characters) and not actually perform any modification of the message (no "fixes" applied).
  

===== See Also =====
  * [[:module:|module index]]
  * [[:util:chksmb]]
  * [[:util:fixsmb]]
  * [[:util:smbutil]]

{{tag>smb}}
