1998-05-21 21:13:15 +00:00
|
|
|
*** kmail/kmacctlocal.cpp.orig Tue Mar 3 01:42:57 1998
|
|
|
|
--- kmail/kmacctlocal.cpp Sat May 9 20:37:49 1998
|
1998-03-04 23:18:04 +00:00
|
|
|
***************
|
1998-03-06 19:44:12 +00:00
|
|
|
*** 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
|
|
|
|
|
|
|
|
|
|
|
|
***************
|
1998-05-21 21:13:15 +00:00
|
|
|
*** 40,45 ****
|
1998-03-04 23:18:04 +00:00
|
|
|
void KMAcctLocal::init(void)
|
|
|
|
{
|
|
|
|
! mLocation = "/var/spool/mail/";
|
|
|
|
mLocation.detach();
|
|
|
|
mLocation += getenv("USER");
|
1998-03-06 19:44:12 +00:00
|
|
|
}
|
1998-05-21 21:13:15 +00:00
|
|
|
--- 46,52 ----
|
1998-03-04 23:18:04 +00:00
|
|
|
void KMAcctLocal::init(void)
|
|
|
|
{
|
1998-03-06 19:44:12 +00:00
|
|
|
! mLocation = _PATH_MAILDIR;
|
1998-03-04 23:18:04 +00:00
|
|
|
mLocation.detach();
|
1998-03-06 19:44:12 +00:00
|
|
|
+ mLocation += "/";
|
1998-03-04 23:18:04 +00:00
|
|
|
mLocation += getenv("USER");
|
1998-03-06 19:44:12 +00:00
|
|
|
}
|
1998-03-04 23:18:04 +00:00
|
|
|
***************
|
1998-05-21 21:13:15 +00:00
|
|
|
*** 104,108 ****
|
1998-03-04 23:18:04 +00:00
|
|
|
void KMAcctLocal::readConfig(KConfig& config)
|
|
|
|
{
|
|
|
|
! QString defaultPath("/var/spool/mail/");
|
|
|
|
defaultPath += getenv("USER");
|
|
|
|
|
1998-05-21 21:13:15 +00:00
|
|
|
--- 111,116 ----
|
1998-03-04 23:18:04 +00:00
|
|
|
void KMAcctLocal::readConfig(KConfig& config)
|
|
|
|
{
|
1998-03-06 19:44:12 +00:00
|
|
|
! QString defaultPath(_PATH_MAILDIR);
|
|
|
|
! defaultPath += "/";
|
1998-03-04 23:18:04 +00:00
|
|
|
defaultPath += getenv("USER");
|
|
|
|
|