pst-extractor 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ColumnDescriptor.class.d.ts +26 -26
- package/dist/ColumnDescriptor.class.js +51 -48
- package/dist/DescriptorIndexNode.class.d.ts +25 -26
- package/dist/DescriptorIndexNode.class.js +53 -53
- package/dist/LZFu.class.d.ts +11 -12
- package/dist/LZFu.class.js +95 -95
- package/dist/NodeInfo.class.d.ts +33 -33
- package/dist/NodeInfo.class.js +52 -52
- package/dist/NodeMap.class.d.ts +35 -35
- package/dist/NodeMap.class.js +86 -83
- package/dist/OffsetIndexItem.class.d.ts +23 -24
- package/dist/OffsetIndexItem.class.js +45 -45
- package/dist/OutlookProperties.d.ts +275 -275
- package/dist/OutlookProperties.js +281 -281
- package/dist/PSTActivity.class.d.ts +103 -103
- package/dist/PSTActivity.class.js +144 -144
- package/dist/PSTAppointment.class.d.ts +270 -271
- package/dist/PSTAppointment.class.js +376 -376
- package/dist/PSTAttachment.class.d.ts +172 -172
- package/dist/PSTAttachment.class.js +317 -314
- package/dist/PSTContact.class.d.ts +884 -884
- package/dist/PSTContact.class.js +1227 -1227
- package/dist/PSTDescriptorItem.class.d.ts +45 -46
- package/dist/PSTDescriptorItem.class.js +99 -96
- package/dist/PSTFile.class.d.ts +215 -216
- package/dist/PSTFile.class.js +818 -792
- package/dist/PSTFolder.class.d.ts +129 -129
- package/dist/PSTFolder.class.js +318 -307
- package/dist/PSTMessage.class.d.ts +788 -789
- package/dist/PSTMessage.class.js +1321 -1318
- package/dist/PSTMessageStore.class.d.ts +13 -13
- package/dist/PSTMessageStore.class.js +17 -17
- package/dist/PSTNodeInputStream.class.d.ts +122 -123
- package/dist/PSTNodeInputStream.class.js +514 -488
- package/dist/PSTObject.class.d.ts +133 -134
- package/dist/PSTObject.class.js +326 -323
- package/dist/PSTRecipient.class.d.ts +65 -65
- package/dist/PSTRecipient.class.js +103 -103
- package/dist/PSTTable.class.d.ts +52 -52
- package/dist/PSTTable.class.js +175 -172
- package/dist/PSTTable7C.class.d.ts +45 -45
- package/dist/PSTTable7C.class.js +281 -278
- package/dist/PSTTableBC.class.d.ts +31 -31
- package/dist/PSTTableBC.class.js +111 -108
- package/dist/PSTTableItem.class.d.ts +47 -48
- package/dist/PSTTableItem.class.js +124 -121
- package/dist/PSTTask.class.d.ts +146 -146
- package/dist/PSTTask.class.js +205 -205
- package/dist/PSTUtil.class.d.ts +134 -135
- package/dist/PSTUtil.class.js +795 -790
- package/dist/RecurrencePattern.class.d.ts +49 -50
- package/dist/RecurrencePattern.class.js +120 -120
- package/dist/index.d.ts +6 -6
- package/dist/index.js +15 -15
- package/example/package.json +7 -7
- package/example/test-min.ts +31 -12
- package/example/{test-mem.ts → test.ts} +38 -30
- package/example/testdata/output.txt +278 -0
- package/example/testdata/outputBody.txt +3404 -0
- package/example/yarn.lock +112 -50
- package/junit.xml +36 -36
- package/package.json +28 -27
- package/readme.md +1 -3
- package/example/test-max.ts +0 -251
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
import { PSTDescriptorItem } from './PSTDescriptorItem.class';
|
|
2
|
-
import { PSTFile } from './PSTFile.class';
|
|
3
|
-
import { PSTMessage } from './PSTMessage.class';
|
|
4
|
-
import { PSTNodeInputStream } from './PSTNodeInputStream.class';
|
|
5
|
-
import { PSTObject } from './PSTObject.class';
|
|
6
|
-
import { PSTTableBC } from './PSTTableBC.class';
|
|
7
|
-
export declare class PSTAttachment extends PSTObject {
|
|
8
|
-
static ATTACHMENT_METHOD_NONE: number;
|
|
9
|
-
static ATTACHMENT_METHOD_BY_VALUE: number;
|
|
10
|
-
static ATTACHMENT_METHOD_BY_REFERENCE: number;
|
|
11
|
-
static ATTACHMENT_METHOD_BY_REFERENCE_RESOLVE: number;
|
|
12
|
-
static ATTACHMENT_METHOD_BY_REFERENCE_ONLY: number;
|
|
13
|
-
static ATTACHMENT_METHOD_EMBEDDED: number;
|
|
14
|
-
static ATTACHMENT_METHOD_OLE: number;
|
|
15
|
-
/**
|
|
16
|
-
* Creates an instance of PSTAttachment.
|
|
17
|
-
* @param {PSTFile} pstFile
|
|
18
|
-
* @param {PSTTableBC} table
|
|
19
|
-
* @param {Map<number, PSTDescriptorItem>} localDescriptorItems
|
|
20
|
-
* @memberof PSTAttachment
|
|
21
|
-
*/
|
|
22
|
-
constructor(pstFile: PSTFile, table: PSTTableBC, localDescriptorItems: Map<number, PSTDescriptorItem>);
|
|
23
|
-
/**
|
|
24
|
-
* The PR_ATTACH_SIZE property contains the sum, in bytes, of the sizes of all properties on an attachment.
|
|
25
|
-
* https://msdn.microsoft.com/en-us/library/gg156074(v=winembedded.70).aspx
|
|
26
|
-
* @readonly
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof PSTAttachment
|
|
29
|
-
*/
|
|
30
|
-
get size(): number;
|
|
31
|
-
/**
|
|
32
|
-
* Contains the creation date and time of a message.
|
|
33
|
-
* https://msdn.microsoft.com/en-us/library/office/cc765677.aspx
|
|
34
|
-
* @readonly
|
|
35
|
-
* @type {Date}
|
|
36
|
-
* @memberof PSTAttachment
|
|
37
|
-
*/
|
|
38
|
-
get creationTime(): Date | null;
|
|
39
|
-
/**
|
|
40
|
-
* Contains the date and time when the object or subobject was last modified.
|
|
41
|
-
* https://msdn.microsoft.com/en-us/library/office/cc815689.aspx
|
|
42
|
-
* @readonly
|
|
43
|
-
* @type {Date}
|
|
44
|
-
* @memberof PSTAttachment
|
|
45
|
-
*/
|
|
46
|
-
get modificationTime(): Date | null;
|
|
47
|
-
/**
|
|
48
|
-
* Get an embedded message.
|
|
49
|
-
* @readonly
|
|
50
|
-
* @type {PSTMessage}
|
|
51
|
-
* @memberof PSTAttachment
|
|
52
|
-
*/
|
|
53
|
-
get embeddedPSTMessage(): PSTMessage | null;
|
|
54
|
-
/**
|
|
55
|
-
* The file input stream.
|
|
56
|
-
* https://msdn.microsoft.com/en-us/library/gg154634(v=winembedded.70).aspx
|
|
57
|
-
* @readonly
|
|
58
|
-
* @type {PSTNodeInputStream}
|
|
59
|
-
* @memberof PSTAttachment
|
|
60
|
-
*/
|
|
61
|
-
get fileInputStream(): PSTNodeInputStream | null;
|
|
62
|
-
/**
|
|
63
|
-
* Size of the attachment file itself.
|
|
64
|
-
* https://msdn.microsoft.com/en-us/library/gg154634(v=winembedded.70).aspx
|
|
65
|
-
* @readonly
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof PSTAttachment
|
|
68
|
-
*/
|
|
69
|
-
get filesize(): number;
|
|
70
|
-
/**
|
|
71
|
-
* Contains an attachment's base file name and extension, excluding path.
|
|
72
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842517.aspx
|
|
73
|
-
* @readonly
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof PSTAttachment
|
|
76
|
-
*/
|
|
77
|
-
get filename(): string;
|
|
78
|
-
/**
|
|
79
|
-
* Contains a MAPI-defined constant representing the way the contents of an attachment can be accessed.
|
|
80
|
-
* https://msdn.microsoft.com/en-us/library/office/cc815439.aspx
|
|
81
|
-
* @readonly
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof PSTAttachment
|
|
84
|
-
*/
|
|
85
|
-
get attachMethod(): number;
|
|
86
|
-
/**
|
|
87
|
-
* Contains a number that uniquely identifies the attachment within its parent message.
|
|
88
|
-
* https://msdn.microsoft.com/en-us/library/office/cc841969.aspx
|
|
89
|
-
* @readonly
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof PSTAttachment
|
|
92
|
-
*/
|
|
93
|
-
get attachNum(): number;
|
|
94
|
-
/**
|
|
95
|
-
* Contains an attachment's long filename and extension, excluding path.
|
|
96
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842157.aspx
|
|
97
|
-
* @readonly
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof PSTAttachment
|
|
100
|
-
*/
|
|
101
|
-
get longFilename(): string;
|
|
102
|
-
/**
|
|
103
|
-
* Contains an attachment's fully-qualified path and filename.
|
|
104
|
-
* https://msdn.microsoft.com/en-us/library/office/cc839889.aspx
|
|
105
|
-
* @readonly
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof PSTAttachment
|
|
108
|
-
*/
|
|
109
|
-
get pathname(): string;
|
|
110
|
-
/**
|
|
111
|
-
* Contains an offset, in characters, to use in rendering an attachment within the main message text.
|
|
112
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842381.aspx
|
|
113
|
-
* @readonly
|
|
114
|
-
* @type {number}
|
|
115
|
-
* @memberof PSTAttachment
|
|
116
|
-
*/
|
|
117
|
-
get renderingPosition(): number;
|
|
118
|
-
/**
|
|
119
|
-
* Contains an attachment's fully-qualified long path and filename.
|
|
120
|
-
* https://msdn.microsoft.com/en-us/library/office/cc815443.aspx
|
|
121
|
-
* @readonly
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof PSTAttachment
|
|
124
|
-
*/
|
|
125
|
-
get longPathname(): string;
|
|
126
|
-
/**
|
|
127
|
-
* Contains formatting information about a Multipurpose Internet Mail Extensions (MIME) attachment.
|
|
128
|
-
* https://msdn.microsoft.com/en-us/library/office/cc842516.aspx
|
|
129
|
-
* @readonly
|
|
130
|
-
* @type {string}
|
|
131
|
-
* @memberof PSTAttachment
|
|
132
|
-
*/
|
|
133
|
-
get mimeTag(): string;
|
|
134
|
-
/**
|
|
135
|
-
* Contains the MIME sequence number of a MIME message attachment.
|
|
136
|
-
* https://msdn.microsoft.com/en-us/library/office/cc963256.aspx
|
|
137
|
-
* @readonly
|
|
138
|
-
* @type {number}
|
|
139
|
-
* @memberof PSTAttachment
|
|
140
|
-
*/
|
|
141
|
-
get mimeSequence(): number;
|
|
142
|
-
/**
|
|
143
|
-
* Contains the content identification header of a Multipurpose Internet Mail Extensions (MIME) message attachment.
|
|
144
|
-
* https://msdn.microsoft.com/en-us/library/office/cc765868.aspx
|
|
145
|
-
* @readonly
|
|
146
|
-
* @type {string}
|
|
147
|
-
* @memberof PSTAttachment
|
|
148
|
-
*/
|
|
149
|
-
get contentId(): string;
|
|
150
|
-
/**
|
|
151
|
-
* Indicates that this attachment is not available to HTML rendering applications and should be ignored in Multipurpose Internet Mail Extensions (MIME) processing.
|
|
152
|
-
* https://msdn.microsoft.com/en-us/library/office/cc765876.aspx
|
|
153
|
-
* @readonly
|
|
154
|
-
* @type {boolean}
|
|
155
|
-
* @memberof PSTAttachment
|
|
156
|
-
*/
|
|
157
|
-
get isAttachmentInvisibleInHtml(): boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Indicates that this attachment is not available to applications rendering in Rich Text Format (RTF) and should be ignored by MAPI.
|
|
160
|
-
* https://msdn.microsoft.com/en-us/library/office/cc765876.aspx
|
|
161
|
-
* @readonly
|
|
162
|
-
* @type {boolean}
|
|
163
|
-
* @memberof PSTAttachment
|
|
164
|
-
*/
|
|
165
|
-
get isAttachmentInvisibleInRTF(): boolean;
|
|
166
|
-
/**
|
|
167
|
-
* JSON stringify the object properties.
|
|
168
|
-
* @returns {string}
|
|
169
|
-
* @memberof PSTAttachment
|
|
170
|
-
*/
|
|
171
|
-
toJSON(): any;
|
|
172
|
-
}
|
|
1
|
+
import { PSTDescriptorItem } from './PSTDescriptorItem.class';
|
|
2
|
+
import { PSTFile } from './PSTFile.class';
|
|
3
|
+
import { PSTMessage } from './PSTMessage.class';
|
|
4
|
+
import { PSTNodeInputStream } from './PSTNodeInputStream.class';
|
|
5
|
+
import { PSTObject } from './PSTObject.class';
|
|
6
|
+
import { PSTTableBC } from './PSTTableBC.class';
|
|
7
|
+
export declare class PSTAttachment extends PSTObject {
|
|
8
|
+
static ATTACHMENT_METHOD_NONE: number;
|
|
9
|
+
static ATTACHMENT_METHOD_BY_VALUE: number;
|
|
10
|
+
static ATTACHMENT_METHOD_BY_REFERENCE: number;
|
|
11
|
+
static ATTACHMENT_METHOD_BY_REFERENCE_RESOLVE: number;
|
|
12
|
+
static ATTACHMENT_METHOD_BY_REFERENCE_ONLY: number;
|
|
13
|
+
static ATTACHMENT_METHOD_EMBEDDED: number;
|
|
14
|
+
static ATTACHMENT_METHOD_OLE: number;
|
|
15
|
+
/**
|
|
16
|
+
* Creates an instance of PSTAttachment.
|
|
17
|
+
* @param {PSTFile} pstFile
|
|
18
|
+
* @param {PSTTableBC} table
|
|
19
|
+
* @param {Map<number, PSTDescriptorItem>} localDescriptorItems
|
|
20
|
+
* @memberof PSTAttachment
|
|
21
|
+
*/
|
|
22
|
+
constructor(pstFile: PSTFile, table: PSTTableBC, localDescriptorItems: Map<number, PSTDescriptorItem>);
|
|
23
|
+
/**
|
|
24
|
+
* The PR_ATTACH_SIZE property contains the sum, in bytes, of the sizes of all properties on an attachment.
|
|
25
|
+
* https://msdn.microsoft.com/en-us/library/gg156074(v=winembedded.70).aspx
|
|
26
|
+
* @readonly
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PSTAttachment
|
|
29
|
+
*/
|
|
30
|
+
get size(): number;
|
|
31
|
+
/**
|
|
32
|
+
* Contains the creation date and time of a message.
|
|
33
|
+
* https://msdn.microsoft.com/en-us/library/office/cc765677.aspx
|
|
34
|
+
* @readonly
|
|
35
|
+
* @type {Date}
|
|
36
|
+
* @memberof PSTAttachment
|
|
37
|
+
*/
|
|
38
|
+
get creationTime(): Date | null;
|
|
39
|
+
/**
|
|
40
|
+
* Contains the date and time when the object or subobject was last modified.
|
|
41
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815689.aspx
|
|
42
|
+
* @readonly
|
|
43
|
+
* @type {Date}
|
|
44
|
+
* @memberof PSTAttachment
|
|
45
|
+
*/
|
|
46
|
+
get modificationTime(): Date | null;
|
|
47
|
+
/**
|
|
48
|
+
* Get an embedded message.
|
|
49
|
+
* @readonly
|
|
50
|
+
* @type {PSTMessage}
|
|
51
|
+
* @memberof PSTAttachment
|
|
52
|
+
*/
|
|
53
|
+
get embeddedPSTMessage(): PSTMessage | null;
|
|
54
|
+
/**
|
|
55
|
+
* The file input stream.
|
|
56
|
+
* https://msdn.microsoft.com/en-us/library/gg154634(v=winembedded.70).aspx
|
|
57
|
+
* @readonly
|
|
58
|
+
* @type {PSTNodeInputStream}
|
|
59
|
+
* @memberof PSTAttachment
|
|
60
|
+
*/
|
|
61
|
+
get fileInputStream(): PSTNodeInputStream | null;
|
|
62
|
+
/**
|
|
63
|
+
* Size of the attachment file itself.
|
|
64
|
+
* https://msdn.microsoft.com/en-us/library/gg154634(v=winembedded.70).aspx
|
|
65
|
+
* @readonly
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof PSTAttachment
|
|
68
|
+
*/
|
|
69
|
+
get filesize(): number;
|
|
70
|
+
/**
|
|
71
|
+
* Contains an attachment's base file name and extension, excluding path.
|
|
72
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842517.aspx
|
|
73
|
+
* @readonly
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PSTAttachment
|
|
76
|
+
*/
|
|
77
|
+
get filename(): string;
|
|
78
|
+
/**
|
|
79
|
+
* Contains a MAPI-defined constant representing the way the contents of an attachment can be accessed.
|
|
80
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815439.aspx
|
|
81
|
+
* @readonly
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof PSTAttachment
|
|
84
|
+
*/
|
|
85
|
+
get attachMethod(): number;
|
|
86
|
+
/**
|
|
87
|
+
* Contains a number that uniquely identifies the attachment within its parent message.
|
|
88
|
+
* https://msdn.microsoft.com/en-us/library/office/cc841969.aspx
|
|
89
|
+
* @readonly
|
|
90
|
+
* @type {number}
|
|
91
|
+
* @memberof PSTAttachment
|
|
92
|
+
*/
|
|
93
|
+
get attachNum(): number;
|
|
94
|
+
/**
|
|
95
|
+
* Contains an attachment's long filename and extension, excluding path.
|
|
96
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842157.aspx
|
|
97
|
+
* @readonly
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof PSTAttachment
|
|
100
|
+
*/
|
|
101
|
+
get longFilename(): string;
|
|
102
|
+
/**
|
|
103
|
+
* Contains an attachment's fully-qualified path and filename.
|
|
104
|
+
* https://msdn.microsoft.com/en-us/library/office/cc839889.aspx
|
|
105
|
+
* @readonly
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof PSTAttachment
|
|
108
|
+
*/
|
|
109
|
+
get pathname(): string;
|
|
110
|
+
/**
|
|
111
|
+
* Contains an offset, in characters, to use in rendering an attachment within the main message text.
|
|
112
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842381.aspx
|
|
113
|
+
* @readonly
|
|
114
|
+
* @type {number}
|
|
115
|
+
* @memberof PSTAttachment
|
|
116
|
+
*/
|
|
117
|
+
get renderingPosition(): number;
|
|
118
|
+
/**
|
|
119
|
+
* Contains an attachment's fully-qualified long path and filename.
|
|
120
|
+
* https://msdn.microsoft.com/en-us/library/office/cc815443.aspx
|
|
121
|
+
* @readonly
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof PSTAttachment
|
|
124
|
+
*/
|
|
125
|
+
get longPathname(): string;
|
|
126
|
+
/**
|
|
127
|
+
* Contains formatting information about a Multipurpose Internet Mail Extensions (MIME) attachment.
|
|
128
|
+
* https://msdn.microsoft.com/en-us/library/office/cc842516.aspx
|
|
129
|
+
* @readonly
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof PSTAttachment
|
|
132
|
+
*/
|
|
133
|
+
get mimeTag(): string;
|
|
134
|
+
/**
|
|
135
|
+
* Contains the MIME sequence number of a MIME message attachment.
|
|
136
|
+
* https://msdn.microsoft.com/en-us/library/office/cc963256.aspx
|
|
137
|
+
* @readonly
|
|
138
|
+
* @type {number}
|
|
139
|
+
* @memberof PSTAttachment
|
|
140
|
+
*/
|
|
141
|
+
get mimeSequence(): number;
|
|
142
|
+
/**
|
|
143
|
+
* Contains the content identification header of a Multipurpose Internet Mail Extensions (MIME) message attachment.
|
|
144
|
+
* https://msdn.microsoft.com/en-us/library/office/cc765868.aspx
|
|
145
|
+
* @readonly
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof PSTAttachment
|
|
148
|
+
*/
|
|
149
|
+
get contentId(): string;
|
|
150
|
+
/**
|
|
151
|
+
* Indicates that this attachment is not available to HTML rendering applications and should be ignored in Multipurpose Internet Mail Extensions (MIME) processing.
|
|
152
|
+
* https://msdn.microsoft.com/en-us/library/office/cc765876.aspx
|
|
153
|
+
* @readonly
|
|
154
|
+
* @type {boolean}
|
|
155
|
+
* @memberof PSTAttachment
|
|
156
|
+
*/
|
|
157
|
+
get isAttachmentInvisibleInHtml(): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Indicates that this attachment is not available to applications rendering in Rich Text Format (RTF) and should be ignored by MAPI.
|
|
160
|
+
* https://msdn.microsoft.com/en-us/library/office/cc765876.aspx
|
|
161
|
+
* @readonly
|
|
162
|
+
* @type {boolean}
|
|
163
|
+
* @memberof PSTAttachment
|
|
164
|
+
*/
|
|
165
|
+
get isAttachmentInvisibleInRTF(): boolean;
|
|
166
|
+
/**
|
|
167
|
+
* JSON stringify the object properties.
|
|
168
|
+
* @returns {string}
|
|
169
|
+
* @memberof PSTAttachment
|
|
170
|
+
*/
|
|
171
|
+
toJSON(): any;
|
|
172
|
+
}
|