The cost-effective synthesis of furan- and thienyl-based microporous polyaminals for adsorption of gases and organic vapors.