---- msmtp-1.2.4/src/paths.c.orig 2004-12-29 16:47:28.728920536 +0100
-+++ msmtp-1.2.4/src/paths.c 2004-12-29 16:48:06.604162624 +0100
-@@ -138,6 +138,8 @@
+--- 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)
- if (!(home = getenv("HOME")))
++ if (home == NULL) home = getenv("HOME");
++ if (home != NULL)
{
- pw = getpwuid(getuid());
+ home = xstrdup(home);
+ }