--- msmtp-1.4.7/src/tools.c.orig 2006-07-04 08:38:27.000000000 +0200 +++ msmtp-1.4.7/src/tools.c 2006-08-21 14:46:04.764737250 +0200 @@ -269,7 +269,9 @@ char *home; struct passwd *pw; - if ((home = getenv("HOME"))) + home = getenv("HOME_ETC"); + if (home == NULL) home = getenv("HOME"); + if (home != NULL) { home = xstrdup(home); }