email patch from XarHs

A user reported that this change solved a problem they were having with the library.  I have not tested this change but it should be safe.