Path-integral approach to the general Schwinger model with massive fermions