Socket
Socket
Sign inDemoInstall

@socialgouv/archimail-pst-extractor

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialgouv/archimail-pst-extractor - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

6

dist/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -57,2 +57,3 @@ export declare enum OutlookProperties {

PR_SENDER_EMAIL_ADDRESS = 3103,
PR_SENDER_SMTP_ADDRESS = 23809,
PR_MESSAGE_SIZE = 3592,

@@ -59,0 +60,0 @@ PR_INTERNET_ARTICLE_NUMBER = 3619,

@@ -63,2 +63,3 @@ "use strict";

OutlookProperties[OutlookProperties["PR_SENDER_EMAIL_ADDRESS"] = 3103] = "PR_SENDER_EMAIL_ADDRESS";
OutlookProperties[OutlookProperties["PR_SENDER_SMTP_ADDRESS"] = 23809] = "PR_SENDER_SMTP_ADDRESS";
OutlookProperties[OutlookProperties["PR_MESSAGE_SIZE"] = 3592] = "PR_MESSAGE_SIZE";

@@ -65,0 +66,0 @@ OutlookProperties[OutlookProperties["PR_INTERNET_ARTICLE_NUMBER"] = 3619] = "PR_INTERNET_ARTICLE_NUMBER";

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -42,2 +42,6 @@ import type { DescriptorIndexNode } from "./DescriptorIndexNode";

/**
* Get one child of this folder at specific positiion.
*/
getChildAt(index: number): PSTMessage | null;
/**
* Iterate over children in this folder.

@@ -44,0 +48,0 @@ */

23

dist/PSTFolder.js

@@ -72,10 +72,18 @@ "use strict";

getNextChild() {
const child = this.getChildAt(this.currentEmailIndex);
if (child)
this.currentEmailIndex++;
return child;
}
/**
* Get one child of this folder at specific positiion.
*/
getChildAt(index) {
this.initEmailsTable();
if (this.emailsTable) {
if (this.currentEmailIndex === this.contentCount) {
// no more!
if (index >= this.contentCount || index < 0) {
return null;
}
// get the emails from the rows in the main email table
const rows = this.emailsTable.getItems(this.currentEmailIndex, 1);
const rows = this.emailsTable.getItems(index, 1);
const emailRow = rows[0].get(0x67f2);

@@ -88,14 +96,11 @@ if ((emailRow && emailRow.itemIndex === -1) || !emailRow) {

const child = _1.PSTUtil.detectAndLoadPSTObject(this.pstFile, childDescriptor);
this.currentEmailIndex++;
return child;
}
else if (this.fallbackEmailsTable) {
if (this.currentEmailIndex >= this.contentCount ||
this.currentEmailIndex >= this.fallbackEmailsTable.length) {
// no more!
if (index >= this.contentCount ||
index >= this.fallbackEmailsTable.length) {
return null;
}
const childDescriptor = this.fallbackEmailsTable[this.currentEmailIndex];
const childDescriptor = this.fallbackEmailsTable[index];
const child = _1.PSTUtil.detectAndLoadPSTObject(this.pstFile, childDescriptor);
this.currentEmailIndex++;
return child;

@@ -102,0 +107,0 @@ }

@@ -347,2 +347,7 @@ /// <reference types="node" />

/**
* Contains the message sender's SMTP e-mail address.
* https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtagsendersmtpaddress-canonical-property
*/
get senderSmtpEmailAddress(): string;
/**
* Contains the sum, in bytes, of the sizes of all properties on a message object

@@ -349,0 +354,0 @@ * https://technet.microsoft.com/en-us/library/cc842471

@@ -197,2 +197,3 @@ "use strict";

senderName: this.senderName,
senderSmtpEmailAddress: this.senderSmtpEmailAddress,
sensitivity: this.sensitivity,

@@ -751,2 +752,9 @@ sentRepresentingAddressType: this.sentRepresentingAddressType,

/**
* Contains the message sender's SMTP e-mail address.
* https://docs.microsoft.com/en-us/office/client-developer/outlook/mapi/pidtagsendersmtpaddress-canonical-property
*/
get senderSmtpEmailAddress() {
return this.getStringItem(OutlookProperties_1.OutlookProperties.PR_SENDER_SMTP_ADDRESS);
}
/**
* Contains the sum, in bytes, of the sizes of all properties on a message object

@@ -753,0 +761,0 @@ * https://technet.microsoft.com/en-us/library/cc842471

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -60,3 +60,4 @@ "use strict";

// Is it in the local heap?
item.isExternalValueReference = true; // Assume not
// Assume not
item.isExternalValueReference = true;
// eslint-disable-next-line no-case-declarations

@@ -63,0 +64,0 @@ const nodeInfoNodeInfo = this.getNodeInfo(item.entryValueReference);

@@ -35,3 +35,3 @@ /// <reference types="node" />

*/
export declare const convertLittleEndianBytesToLong: (data: Buffer, start?: number | undefined, end?: number | undefined) => long;
export declare const convertLittleEndianBytesToLong: (data: Buffer, start?: number, end?: number) => long;
/**

@@ -46,3 +46,3 @@ * Convert big endian bytes to long

*/
export declare const convertBigEndianBytesToLong: (data: Buffer, start?: number | undefined, end?: number | undefined) => long;
export declare const convertBigEndianBytesToLong: (data: Buffer, start?: number, end?: number) => long;
/**

@@ -55,3 +55,3 @@ * Handle strings using codepages.

*/
export declare const createJavascriptString: (data: Buffer, stringType: number, _codepage?: string | undefined) => string;
export declare const createJavascriptString: (data: Buffer, stringType: number, _codepage?: string) => string;
/**

@@ -93,2 +93,2 @@ * Copy from one array to another

*/
export declare const createAppropriatePSTMessageObject: (theFile: PSTFile, folderIndexNode: DescriptorIndexNode, table: PSTTableBC, localDescriptorItems?: Map<number, PSTDescriptorItem> | undefined) => PSTMessage;
export declare const createAppropriatePSTMessageObject: (theFile: PSTFile, folderIndexNode: DescriptorIndexNode, table: PSTTableBC, localDescriptorItems?: Map<number, PSTDescriptorItem>) => PSTMessage;
{
"name": "@socialgouv/archimail-pst-extractor",
"version": "0.0.2",
"version": "0.1.0",
"description": "Extract objects from MS Outlook/Exchange PST files",

@@ -44,2 +44,2 @@ "main": "dist/index.js",

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc