Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant