From 3d8685c753ef3cac3e34c38bc7d039b33cf8a1b5 Mon Sep 17 00:00:00 2001 From: Jorg K Date: Thu, 4 Mar 2021 10:30:53 +0100 Subject: [PATCH] Bug 1695703 - Follow-up: Password manager stores mailbox: instead of pop3:. r=benc --- mailnews/base/src/nsMsgIncomingServer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mailnews/base/src/nsMsgIncomingServer.cpp b/mailnews/base/src/nsMsgIncomingServer.cpp index d7bc6e94a0..93b871e80e 100644 --- a/mailnews/base/src/nsMsgIncomingServer.cpp +++ b/mailnews/base/src/nsMsgIncomingServer.cpp @@ -99,7 +99,11 @@ nsMsgIncomingServer::Observe(nsISupports* aSubject, const char* aTopic, GetHostName(hostname); nsAutoCString fullName; GetType(fullName); - fullName += "://"_ns + hostname; + if (fullName.EqualsLiteral("pop3")) { + fullName = "mailbox://"_ns + hostname; + } else { + fullName += "://"_ns + hostname; + } if (!fullName.Equals(NS_ConvertUTF16toUTF8(hostnameInfo))) return NS_OK; } rv = ForgetSessionPassword();