Compiles but lotsa problems.
This commit is contained in:
1 parent
09c6163a74
commit
bb1c2cf944
9 files changed
+50
-49
No files matched your search
+5
-3
@@ -56,10 +56,12 @@ namespace mail {
|
||||
void inCreate(std::string name) {
|
||||
int pos = name.find(".") + 10;
|
||||
std::string mail = name.substr(0, pos);
|
||||
std::string recipient = name.substr(pos);
|
||||
coreutils::ZString recipient = name.substr(pos);
|
||||
if(recipient != "") {
|
||||
std::string fileName = mailPath + "/.queue/" + name;
|
||||
std::string path = mailFileSystem.getMailBoxPath(recipient) + "/Inbox/" + mail;
|
||||
coreutils::MString fileName;
|
||||
fileName << mailPath << "/.queue/" << name;
|
||||
coreutils::MString path;
|
||||
path << mailFileSystem.getMailBoxPath(recipient) << "/Inbox/" << mail;
|
||||
int rc = link(fileName.c_str(), path.c_str());
|
||||
rc = unlink(fileName.c_str());
|
||||
coreutils::Log(coreutils::LOG_INFO) << "Message " << mail << " delivered to " << recipient << ".";
|
||||
|
||||
Reference in new issue
Block a user