mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-13 23:36:08 +00:00
46 lines
1021 B
Plaintext
46 lines
1021 B
Plaintext
*** kmail/kmacctlocal.cpp.orig Tue Mar 3 01:42:57 1998
|
|
--- kmail/kmacctlocal.cpp Sat May 9 20:37:49 1998
|
|
***************
|
|
*** 13,16 ****
|
|
--- 13,22 ----
|
|
#include <stdio.h>
|
|
#include <errno.h>
|
|
+ #ifdef __FreeBSD__
|
|
+ #include <paths.h> /* defines _PATH_MAILDIR */
|
|
+ #endif
|
|
+ #ifndef _PATH_MAILDIR
|
|
+ #define _PATH_MAILDIR "/var/spool/mail"
|
|
+ #endif
|
|
|
|
|
|
***************
|
|
*** 40,45 ****
|
|
void KMAcctLocal::init(void)
|
|
{
|
|
! mLocation = "/var/spool/mail/";
|
|
mLocation.detach();
|
|
mLocation += getenv("USER");
|
|
}
|
|
--- 46,52 ----
|
|
void KMAcctLocal::init(void)
|
|
{
|
|
! mLocation = _PATH_MAILDIR;
|
|
mLocation.detach();
|
|
+ mLocation += "/";
|
|
mLocation += getenv("USER");
|
|
}
|
|
***************
|
|
*** 104,108 ****
|
|
void KMAcctLocal::readConfig(KConfig& config)
|
|
{
|
|
! QString defaultPath("/var/spool/mail/");
|
|
defaultPath += getenv("USER");
|
|
|
|
--- 111,116 ----
|
|
void KMAcctLocal::readConfig(KConfig& config)
|
|
{
|
|
! QString defaultPath(_PATH_MAILDIR);
|
|
! defaultPath += "/";
|
|
defaultPath += getenv("USER");
|
|
|