It forbade the use of "disloyal, profane, scurrilous, or abusive language" about the United States government, its flag, or its armed forces or that caused others to view the American government or its institutions with contempt. Those convicted under the act generally received sentences of imprisonment for five to 20 years. The act also allowed the Postmaster General to refuse to deliver mail that met those same standards for punishable speech or opinion. It applied only to times "when the United States is in war." The U.S. was in a declared state of war at the time of passage, the First World War. The law was repealed on December 13, 1920.