Added default mail directory path.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 20 Jul 2000 05:49:32 +0000 (05:49 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 20 Jul 2000 05:49:32 +0000 (05:49 +0000)
apps/silc/clientutil.c

index 9ab6c912f322f33ed13e5897c33d9db28efebe4c..a68a37e37a5157c7c744aa19f7608a5049f9d38f 100644 (file)
@@ -20,6 +20,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.8  2000/07/20 05:49:32  priikone
+ *     Added default mail directory path.
+ *
  * Revision 1.7  2000/07/19 07:07:16  priikone
  *     Search mail by From:
  *
@@ -130,6 +133,10 @@ char *silc_get_mail_path()
 {
   char pathbuf[MAXPATHLEN];
   char *path;
+
+#ifndef _PATH_MAILDIR
+#define _PATH_MAILDIR "/var/mail"
+#endif
   
   path = getenv("MAIL");
   if (path) {