Compiles but lotsa problems.

This commit is contained in:
Brad Arant committed 2022-07-30 17:46:35 -07:00
1 parent 09c6163a74
commit bb1c2cf944
9 files changed
+50 -49

No files matched your search

+5 -3
View File
@@ -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 << ".";