Involved in the degradation of the pyridine ring of trigonelline (TG; N-methylnicotinate) into succinate and methylamine as carbon and nitrogen sources, respectively. Catalyzes the NAD(+)-dependent oxidation of (Z)-2-((N-methylformamido)methylene)-5-hydroxybutyrolactone (MFMB) to yield (E)-2-((N-methylformamido)methylene)succinate (MFMS). (Z)-2-((N-methylformamido)methylene)-5-hydroxybutanolactone + H2O + NAD(+) = (E)-2-((N-methylformamido) methylene)succinate + 3 H(+) + NADH kcat is 2.5 sec(-1) for NAD as substrate. Homodimer. Belongs to the aldehyde dehydrogenase family.