Non-isothermal mass transport in porous media