blob: 3a1bfeb887668216142b525b14cbe187116615f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 = ["NntpProtocolInfo"];
var { MsgProtocolInfo } = ChromeUtils.importESModule(
"resource:///modules/MsgProtocolInfo.sys.mjs"
);
/**
* @implements {nsIMsgProtocolInfo}
*/
class NntpProtocolInfo extends MsgProtocolInfo {
QueryInterface = ChromeUtils.generateQI(["nsIMsgProtocolInfo"]);
serverIID = Components.ID("{dc4ad42f-bc98-4193-a469-0cfa95ed9bcb}");
requiresUsername = false;
preflightPrettyNameWithEmailAddress = false;
canDelete = true;
canLoginAtStartUp = true;
canDuplicate = true;
canGetMessages = true;
canGetIncomingMessages = false;
defaultDoBiff = false;
showComposeMsgLink = false;
foldersCreatedAsync = false;
getDefaultServerPort(isSecure) {
return isSecure
? Ci.nsINntpUrl.DEFAULT_NNTPS_PORT
: Ci.nsINntpUrl.DEFAULT_NNTP_PORT;
}
// @see MsgProtocolInfo.sys.mjs
RELATIVE_PREF = "mail.root.nntp-rel";
ABSOLUTE_PREF = "mail.root.nntp";
DIR_SERVICE_PROP = "NewsD";
}
NntpProtocolInfo.prototype.classID = Components.ID(
"{7d71db22-0624-4c9f-8d70-dea6ab3ff076}"
);
|