A novel metal iodide promoted three-component synthesis of substituted pyrrolidines.