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:
parent
5705745f09
commit
e3beb7c047
@ -58,6 +58,8 @@ POP3Protocol::POP3Protocol(BMailAccountSettings* settings)
|
||||
fSettings = fAccountSettings.InboundSettings().Settings();
|
||||
#ifdef USE_SSL
|
||||
fUseSSL = (fSettings.FindInt32("flavor") == 1);
|
||||
fSSL = NULL;
|
||||
fSSLContext = NULL;
|
||||
#endif
|
||||
|
||||
if (fSettings.FindString("destination", &fDestinationDir) != B_OK)
|
||||
@ -177,6 +179,7 @@ POP3Protocol::SyncMessages()
|
||||
BPath path(fDestinationDir);
|
||||
BString fileName = "Downloading file... uid: ";
|
||||
fileName += uid;
|
||||
fileName.ReplaceAll("/", "_SLASH_");
|
||||
path.Append(fileName);
|
||||
BEntry entry(path.Path());
|
||||
BFile file(&entry, B_READ_WRITE | B_CREATE_FILE | B_ERASE_FILE);
|
||||
|
Loading…
Reference in New Issue
Block a user