imap/src/osdep/nt/env_nt.c
/* Return mailbox directory name
 * Accepts: destination buffer
 *	    directory prefix
 *	    name in directory
 * Returns: file name or NIL if error
 */
Return mailbox directory name
Accepts: destination buffer
directory prefix
name in directory
Returns: file name or NIL if error
Return mailbox directory name Accepts : destination buffer directory prefix name in directory Returns : file name or NIL if error
char *mailboxdir (char *dst,char *dir,char *name)
{
  char tmp[MAILTMPLEN];
  if (dir || name) {		
    if (dir) {
      if (strlen (dir) > NETMAXMBX) return NIL;
      strcpy (tmp,dir);		
    }
    else tmp[0] = '\0';		
    if (name) {
      if (strlen (name) > NETMAXMBX) return NIL;
      strcat (tmp,name);	
    }
    if (!mailboxfile (dst,tmp)) return NIL;
  }
  else strcpy (dst,myhomedir());
  return dst;			
}
char * mailboxdir ( char * dst , char * dir , char * name ) { char tmp [ MAILTMPLEN ] ; if ( dir || name ) { if ( dir ) { if ( strlen ( dir ) > NETMAXMBX ) return NIL ; strcpy ( tmp , dir ) ; } else tmp [ 0 ] = ' \0 ' ; if ( name ) { if ( strlen ( name ) > NETMAXMBX ) return NIL ; strcat ( tmp , name ) ; } if ( ! mailboxfile ( dst , tmp ) ) return NIL ; } else strcpy ( dst , myhomedir ( ) ) ; return dst ; }
Return mailbox directory name
 Accepts: destination buffer
          directory prefix
          name in directory
 Returns: file name or NIL if error
Return mailbox directory name Accepts : destination buffer directory prefix name in directory Returns : file name or NIL if error
/* if either argument provided */ /* write directory prefix */ /* otherwise null string */ /* write name in directory */ /* validate name, return its name */ /* no arguments, wants home directory */ /* return the name */