Continued work.
This commit is contained in:
1 parent
30cd31c171
commit
c9cdc822a2
21 files changed
+1531
-148
No files matched your search
+10
-1
@@ -1,15 +1,20 @@
|
||||
|
||||
#include "MailFileSystem.h"
|
||||
# include "INotify.h"
|
||||
# include "Log.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
MailFileSystem::MailFileSystem(coreutils::ZString &mailPath) : mailPath(mailPath) {}
|
||||
MailFileSystem::MailFileSystem(coreutils::ZString &mailPath) : mailPath(mailPath) {
|
||||
queuePath << mailPath << "/.queue/";
|
||||
}
|
||||
|
||||
bool MailFileSystem::ifMailBoxExists(coreutils::ZString &mailbox) {
|
||||
coreutils::Log(coreutils::LOG_DEBUG_2) << "if exists mailbox: " << mailbox << ".";
|
||||
if(stat(getMailBoxPath(mailbox).c_str(), &statbuf) != -1)
|
||||
if(S_ISDIR(statbuf.st_mode))
|
||||
return true;
|
||||
coreutils::Log(coreutils::LOG_DEBUG_2) << "doesnt exist mailbox: " << mailbox << ".";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -36,4 +41,8 @@ namespace mail {
|
||||
return mailPath;
|
||||
}
|
||||
|
||||
coreutils::ZString& MailFileSystem::getQueuePath() {
|
||||
return queuePath;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user