summaryrefslogtreecommitdiffabout
path: root/kmicromail/libmailwrapper
authorzautrix <zautrix>2004-09-10 15:30:01 (UTC)
committer zautrix <zautrix>2004-09-10 15:30:01 (UTC)
commit4af018e98a29e859df1b28a437c4965bb9676394 (patch) (side-by-side diff)
treeac71fa15fdd2eca263730493de378482952d8c80 /kmicromail/libmailwrapper
parent14056eb4ec076bc243dcb9f600999eb437fb8afd (diff)
downloadkdepimpi-4af018e98a29e859df1b28a437c4965bb9676394.zip
kdepimpi-4af018e98a29e859df1b28a437c4965bb9676394.tar.gz
kdepimpi-4af018e98a29e859df1b28a437c4965bb9676394.tar.bz2
path fixes for kopiemail
Diffstat (limited to 'kmicromail/libmailwrapper') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/libmailwrapper/abstractmail.cpp2
-rw-r--r--kmicromail/libmailwrapper/settings.cpp20
2 files changed, 11 insertions, 11 deletions
diff --git a/kmicromail/libmailwrapper/abstractmail.cpp b/kmicromail/libmailwrapper/abstractmail.cpp
index 3b0ca1f..cef4e97 100644
--- a/kmicromail/libmailwrapper/abstractmail.cpp
+++ b/kmicromail/libmailwrapper/abstractmail.cpp
@@ -123,13 +123,13 @@ int AbstractMail::createMbox(const QString&,const FolderP&,const QString& ,bool)
return 0;
}
QString AbstractMail::defaultLocalfolder()
{
// QString f = getenv( "HOME" );
- QString f = locateLocal( "data", "kmicromail/localmail");
+ QString f = locateLocal( "data", "kopiemail/localmail");
// f += "/Applications/opiemail/localmail";
return f;
}
QString AbstractMail::draftFolder()
{
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp
index bdb2a25..b0a539e 100644
--- a/kmicromail/libmailwrapper/settings.cpp
+++ b/kmicromail/libmailwrapper/settings.cpp
@@ -25,13 +25,13 @@ Settings::Settings()
}
void Settings::checkDirectory()
{
qDebug("Settings::checkDirectory() ");
return;
- locateLocal("data", "kmicromail" );
+ locateLocal("data", "kopiemail" );
/*
if ( !QDir( (QString) getenv( "HOME" ) + "/Applications/opiemail/" ).exists() ) {
system( "mkdir -p $HOME/Applications/opiemail" );
qDebug("$HOME/Applications/opiemail created ");
}
*/
@@ -53,13 +53,13 @@ void Settings::delAccount( Account *account )
account->remove();
}
void Settings::updateAccounts()
{
accounts.clear();
- QDir dir( locateLocal("data", "kmicromail" ) );
+ QDir dir( locateLocal("data", "kopiemail" ) );
QStringList::Iterator it;
QStringList imap = dir.entryList( "imap-*" );
for ( it = imap.begin(); it != imap.end(); it++ ) {
IMAPaccount *account = new IMAPaccount( (*it).replace(0, 5, "") );
accounts.append( account );
@@ -145,13 +145,13 @@ IMAPaccount::IMAPaccount( QString filename )
QString IMAPaccount::getUniqueFileName()
{
int num = 0;
QString unique;
- QDir dir( locateLocal("data", "kmicromail" ) );
+ QDir dir( locateLocal("data", "kopiemail" ) );
QStringList imap = dir.entryList( "imap-*" );
do {
unique.setNum( num++ );
} while ( imap.contains( "imap-" + unique ) > 0 );
@@ -200,13 +200,13 @@ void IMAPaccount::save()
delete conf;
}
QString IMAPaccount::getFileName()
{
- return locateLocal("data", "kmicromail" ) +"/imap-" + file;
+ return locateLocal("data", "kopiemail" ) +"/imap-" + file;
}
POP3account::POP3account()
: Account()
{
file = POP3account::getUniqueFileName();
@@ -230,13 +230,13 @@ POP3account::POP3account( QString filename )
QString POP3account::getUniqueFileName()
{
int num = 0;
QString unique;
- QDir dir( locateLocal("data", "kmicromail" ) );
+ QDir dir( locateLocal("data", "kopiemail" ) );
QStringList imap = dir.entryList( "pop3-*" );
do {
unique.setNum( num++ );
} while ( imap.contains( "pop3-" + unique ) > 0 );
@@ -276,13 +276,13 @@ void POP3account::save()
delete conf;
}
QString POP3account::getFileName()
{
- return locateLocal("data", "kmicromail" ) +"/pop3-" + file;
+ return locateLocal("data", "kopiemail" ) +"/pop3-" + file;
}
SMTPaccount::SMTPaccount()
: Account()
{
file = SMTPaccount::getUniqueFileName();
@@ -311,13 +311,13 @@ SMTPaccount::SMTPaccount( QString filename )
QString SMTPaccount::getUniqueFileName()
{
int num = 0;
QString unique;
- QDir dir( locateLocal("data", "kmicromail" ) );
+ QDir dir( locateLocal("data", "kopiemail" ) );
QStringList imap = dir.entryList( "smtp-*" );
do {
unique.setNum( num++ );
} while ( imap.contains( "smtp-" + unique ) > 0 );
@@ -357,13 +357,13 @@ void SMTPaccount::save()
delete conf;
}
QString SMTPaccount::getFileName()
{
- return locateLocal("data", "kmicromail" ) +"/smtp-" + file;
+ return locateLocal("data", "kopiemail" ) +"/smtp-" + file;
}
NNTPaccount::NNTPaccount()
: Account()
{
file = NNTPaccount::getUniqueFileName();
@@ -387,13 +387,13 @@ NNTPaccount::NNTPaccount( QString filename )
QString NNTPaccount::getUniqueFileName()
{
int num = 0;
QString unique;
- QDir dir( locateLocal("data", "kmicromail" ) );
+ QDir dir( locateLocal("data", "kopiemail" ) );
QStringList imap = dir.entryList( "nntp-*" );
do {
unique.setNum( num++ );
} while ( imap.contains( "nntp-" + unique ) > 0 );
@@ -433,8 +433,8 @@ void NNTPaccount::save()
delete conf;
}
QString NNTPaccount::getFileName()
{
- return locateLocal("data", "kmicromail" ) +"/nntp-" + file;
+ return locateLocal("data", "kopiemail" ) +"/nntp-" + file;
}