mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
ok, I suck. I accidentally broke Local Mail migration when you used imap in 4.x. this fixes it.
This commit is contained in:
parent
bb3286dcc1
commit
d210e3d7a9
@ -1561,13 +1561,14 @@ nsMsgAccountManager::MigrateLocalMailAccount(nsIMsgIdentity *identity)
|
||||
mailDir->CreateDir();
|
||||
}
|
||||
|
||||
nsXPIDLCString key;
|
||||
rv = server->GetKey(getter_Copies(key));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = mailDir->AppendRelativeUnixPath(key);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// set the local path for this "none" server
|
||||
//
|
||||
// we need to set this to <profile>/Mail/Local Mail, because that's where
|
||||
// the 4.x local mail (when using imap) got copied.
|
||||
// it would be great to use the server key, but we don't know it
|
||||
// when we are copying of the mail.
|
||||
rv = mailDir->AppendRelativeUnixPath(LOCAL_MAIL_FAKE_HOST_NAME);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = server->SetLocalPath(mailDir);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user