From 6bf0a5cb5034a7e684dcc3500e841785237ce2dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:32:43 +0200 Subject: Adding upstream version 1:115.7.0. Signed-off-by: Daniel Baumann --- comm/mailnews/local/src/Pop3ProtocolInfo.jsm | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 comm/mailnews/local/src/Pop3ProtocolInfo.jsm (limited to 'comm/mailnews/local/src/Pop3ProtocolInfo.jsm') diff --git a/comm/mailnews/local/src/Pop3ProtocolInfo.jsm b/comm/mailnews/local/src/Pop3ProtocolInfo.jsm new file mode 100644 index 0000000000..57fc9b07d9 --- /dev/null +++ b/comm/mailnews/local/src/Pop3ProtocolInfo.jsm @@ -0,0 +1,44 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +const EXPORTED_SYMBOLS = ["Pop3ProtocolInfo"]; + +var { MsgProtocolInfo } = ChromeUtils.importESModule( + "resource:///modules/MsgProtocolInfo.sys.mjs" +); + +/** + * @implements {nsIMsgProtocolInfo} + */ +class Pop3ProtocolInfo extends MsgProtocolInfo { + QueryInterface = ChromeUtils.generateQI(["nsIMsgProtocolInfo"]); + + serverIID = Components.ID("{f99fdbf7-2e79-4ce3-9d94-7af3763b82fc}"); + + requiresUsername = true; + preflightPrettyNameWithEmailAddress = true; + canDelete = true; + canLoginAtStartUp = true; + canDuplicate = true; + canGetMessages = true; + canGetIncomingMessages = true; + defaultDoBiff = true; + showComposeMsgLink = true; + foldersCreatedAsync = false; + + getDefaultServerPort(isSecure) { + return isSecure + ? Ci.nsIPop3URL.DEFAULT_POP3S_PORT + : Ci.nsIPop3URL.DEFAULT_POP3_PORT; + } + + // @see MsgProtocolInfo.sys.mjs + RELATIVE_PREF = "mail.root.pop3-rel"; + ABSOLUTE_PREF = "mail.root.pop3"; + DIR_SERVICE_PROP = "MailD"; +} + +Pop3ProtocolInfo.prototype.classID = Components.ID( + "{7689942f-cbd1-42ad-87b9-44128354f55d}" +); -- cgit v1.2.3