-char *
-make_default_mailpath ()
-{
- char *mp;
-
- mp = xmalloc (1 + sizeof (DEFAULT_MAIL_PATH) + strlen (current_user.user_name));
- strcpy (mp, DEFAULT_MAIL_PATH);
- strcpy (mp + sizeof (DEFAULT_MAIL_PATH) - 1, current_user.user_name);
- return (mp);
-}
-
-/* Return the colon separated list of pathnames to check for mail. */
-static char *
-get_mailpaths ()
-{
- char *mailpaths;
-
- mailpaths = get_string_value ("MAILPATH");
-
- if (!mailpaths)
- mailpaths = get_string_value ("MAIL");
-
- if (mailpaths)
- return (savestring (mailpaths));
-
- return (make_default_mailpath ());
-}
-