Avoid melancholy with all your might. It hurts the service of God more than sin. Satan takes less pleasure in sin than in a man's melancholy over having sinned again and so feeling that he is a slave to sin. Thus the Evil One has caught the poor soul in the net of despair.