Message passing approach for general epidemic models | Synapse