Just an update from the freebsd port collection.

svn path=/trunk/kdenetwork/kmail/; revision=10421
wilder-work
Hans Petter Bieker 28 years ago
parent ce61b88972
commit cb5a5a6d4c
  1. 12
      kmacctlocal.cpp

@ -13,6 +13,12 @@
#include <stdlib.h>
#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,8 +46,9 @@ const char* KMAcctLocal::type(void) const
//-----------------------------------------------------------------------------
void KMAcctLocal::init(void)
{
mLocation = "/var/spool/mail/";
mLocation = _PATH_MAILDIR;
mLocation.detach();
mLocation += "/";
mLocation += getenv("USER");
}
@ -110,7 +117,8 @@ bool KMAcctLocal::processNewMail(KMIOStatus *statusWdg)
//-----------------------------------------------------------------------------
void KMAcctLocal::readConfig(KConfig& config)
{
QString defaultPath("/var/spool/mail/");
QString defaultPath(_PATH_MAILDIR);
defaultPath += "/";
defaultPath += getenv("USER");
KMAcctLocalInherited::readConfig(config);

Loading…
Cancel
Save