Skip to content

Pid* values taken from \[MS-OXPROPS\].pdf.#124

Open
pobicus wants to merge 1 commit intokoodaamo:masterfrom
pobicus:master
Open

Pid* values taken from \[MS-OXPROPS\].pdf.#124
pobicus wants to merge 1 commit intokoodaamo:masterfrom
pobicus:master

Conversation

@pobicus
Copy link

@pobicus pobicus commented Nov 20, 2023

Pid* values taken from [MS-OXPROPS].pdf.

Ran PDFTOTEXT over it and then:

grep -Pi '(?:Canonical name|Property ID):' MS-OXPROPS.txt | grep -iPo '(?:Canonical name|Property ID).*' | grep 'Property ID' --before-context=1 > pid0

Gives 573 entries the first being:

spam7 ~/tnef 1066: head pid0
Canonical name: The name used to refer to the property in the Exchange Server Protocols Property ID: An unsigned 16-bit quantity that identifies a tagged property. Property IDs are not --
Canonical name: PidTagAccess
Property ID: 0x0FF4

cut -f2 -d':' pid0 | tail -n 1144 | sed -e :a -e '$!N;s/\n *0/ 0/;ta' -e 'P;D'

gives:

PidTagWlinkSection 0x6852
PidTagWlinkStoreEntryId 0x684E
PidTagWlinkType 0x6849

awk '{print $1 " = " $2}' pid1
awk '{print $1 ": "" $1 "","}' pid1

to get the correct bits

Ran PDFTOTEXT over it and then:

grep -Pi '(?:Canonical name|Property ID):' MS-OXPROPS.txt  | grep -iPo '(?:Canonical name|Property ID).*' | grep 'Property ID' --before-context=1 > pid0

Gives 573 entries the first being:

spam7 ~/tnef 1066: head pid0
Canonical name: The name used to refer to the property in the Exchange Server Protocols
Property ID: An unsigned 16-bit quantity that identifies a tagged property. Property IDs are not
--
Canonical name: PidTagAccess
Property ID: 0x0FF4

cut -f2 -d':' pid0  | tail -n 1144 | sed -e :a -e '$!N;s/\n  *0/ 0/;ta' -e 'P;D'

gives:

  PidTagWlinkSection 0x6852
 PidTagWlinkStoreEntryId 0x684E
 PidTagWlinkType 0x6849

 awk '{print $1 " = " $2}' pid1
 awk '{print $1 ": \"" $1 "\","}' pid1

to get the correct bits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant