In the Unix email reader program mailx, when you type ~! at the front of a line, it opens a subshell. Using this regex, formmail.cgi is inserting a space in front of every occurrence of tilde-bang, so that it never looks like it’s at the front of a line (and therefore mailx will never open a subshell, which would be one way for someone to hack into your computer).
In the Unix email reader program mailx, when you type ~! at the front of a line, it opens a subshell. Using this regex, formmail.cgi is inserting a space in front of every occurrence of tilde-bang, so that it never looks like it’s at the front of a line (and therefore mailx will never open a subshell, which would be one way for someone to hack into your computer).