* Applied a patch sent in by Wilfried Goesgens which allows the various
[citadel.git] / citadel / citmail.c
index 50704818d68e40b8bef2247b9c5cd9ae8d7d1601..69af5958f036a5b79aba20bd4bd608b43f84fa09 100644 (file)
@@ -203,7 +203,13 @@ int main(int argc, char **argv) {
        }
        strip_trailing_nonprint(fromline);
 
-       serv_sock = uds_connectsock("lmtp.socket");
+       serv_sock = uds_connectsock(
+#ifndef HAVE_RUN_DIR
+                                                  "."
+#else
+                                                  RUN_DIR
+#endif
+                                                  "/lmtp.socket");
        serv_gets(buf);
        if (buf[0]!='2') cleanup(1);