Coughing up thick, green mucus may mean a bacterial or, less often, viral infection, but that's not always true. You ...