chore: formatting
This commit is contained in:
@@ -2,17 +2,17 @@ import { XMLParser } from "fast-xml-parser";
|
||||
import https from "node:https";
|
||||
import { createRequire } from "node:module";
|
||||
import { promisify } from "node:util";
|
||||
import { extractEmail, type Email } from "../utils/extract_email.ts";
|
||||
import { extractFolders, type Folder } from "../utils/extract_folder.ts";
|
||||
import { initDataDir } from "../utils/data.ts";
|
||||
import { type Email, extractEmail } from "../utils/extract_email.ts";
|
||||
import { extractFolders, type Folder } from "../utils/extract_folder.ts";
|
||||
import {
|
||||
loadConfig,
|
||||
saveConfig,
|
||||
clearConfig,
|
||||
setPassword,
|
||||
getPassword,
|
||||
hasPassword,
|
||||
loadConfig,
|
||||
type LoginConfig,
|
||||
saveConfig,
|
||||
setPassword,
|
||||
} from "../utils/login.ts";
|
||||
|
||||
const ntlm: any = createRequire(import.meta.url)("httpntlm");
|
||||
@@ -130,7 +130,8 @@ export class EwsClient {
|
||||
|
||||
async getFolderId(folderName: string): Promise<string> {
|
||||
const lower = folderName.toLowerCase();
|
||||
const distinguished = (DISTINGUISHED_FOLDERS as Record<string, string>)[lower];
|
||||
const distinguished =
|
||||
(DISTINGUISHED_FOLDERS as Record<string, string>)[lower];
|
||||
|
||||
if (distinguished) {
|
||||
const soap = buildSoapEnvelope(`\
|
||||
@@ -205,7 +206,8 @@ export class EwsClient {
|
||||
} = options;
|
||||
|
||||
const isDistinguished =
|
||||
(DISTINGUISHED_FOLDERS as Record<string, string>)[folderId.toLowerCase()] !== undefined;
|
||||
(DISTINGUISHED_FOLDERS as Record<string, string>)[folderId.toLowerCase()]
|
||||
!== undefined;
|
||||
|
||||
const folderIdXml = isDistinguished
|
||||
? `<t:DistinguishedFolderId Id="${folderId}"/>`
|
||||
|
||||
Reference in New Issue
Block a user