Sometimes, a cold may cause swelling in the sinuses, hollow spaces in your skull that are connected to each other. The swelling can prevent the flow of mucus. This can lead to a sinus infection. If you have pain around your face and eyes -- and thick yellow or green mucus for more than a week -- see your doctor.