Init ssl variables. Replace "/" in temporary filename. This should fix #7267.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40935 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -58,6 +58,8 @@ POP3Protocol::POP3Protocol(BMailAccountSettings* settings)
|
|||||||
fSettings = fAccountSettings.InboundSettings().Settings();
|
fSettings = fAccountSettings.InboundSettings().Settings();
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
fUseSSL = (fSettings.FindInt32("flavor") == 1);
|
fUseSSL = (fSettings.FindInt32("flavor") == 1);
|
||||||
|
fSSL = NULL;
|
||||||
|
fSSLContext = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (fSettings.FindString("destination", &fDestinationDir) != B_OK)
|
if (fSettings.FindString("destination", &fDestinationDir) != B_OK)
|
||||||
@@ -177,6 +179,7 @@ POP3Protocol::SyncMessages()
|
|||||||
BPath path(fDestinationDir);
|
BPath path(fDestinationDir);
|
||||||
BString fileName = "Downloading file... uid: ";
|
BString fileName = "Downloading file... uid: ";
|
||||||
fileName += uid;
|
fileName += uid;
|
||||||
|
fileName.ReplaceAll("/", "_SLASH_");
|
||||||
path.Append(fileName);
|
path.Append(fileName);
|
||||||
BEntry entry(path.Path());
|
BEntry entry(path.Path());
|
||||||
BFile file(&entry, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
|
BFile file(&entry, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
|
||||||
|
|||||||
Reference in New Issue
Block a user