*** kmail/kmacctlocal.cpp~ Fri Mar 6 19:51:06 1998 --- kmail/kmacctlocal.cpp Fri Mar 6 19:50:43 1998 *************** *** 13,16 **** --- 13,22 ---- #include #include + #ifdef __FreeBSD__ + #include /* defines _PATH_MAILDIR */ + #endif + #ifndef _PATH_MAILDIR + #define _PATH_MAILDIR "/var/spool/mail" + #endif *************** *** 42,47 **** void KMAcctLocal::init(void) { ! mLocation = "/var/spool/mail/"; mLocation.detach(); mLocation += getenv("USER"); } --- 48,54 ---- void KMAcctLocal::init(void) { ! mLocation = _PATH_MAILDIR; mLocation.detach(); + mLocation += "/"; mLocation += getenv("USER"); } *************** *** 99,103 **** void KMAcctLocal::readConfig(KConfig& config) { ! QString defaultPath("/var/spool/mail/"); defaultPath += getenv("USER"); --- 106,111 ---- void KMAcctLocal::readConfig(KConfig& config) { ! QString defaultPath(_PATH_MAILDIR); ! defaultPath += "/"; defaultPath += getenv("USER");