KTnef

ktnefdefs.h
Go to the documentation of this file.
1/*
2 ktnefdefs.h
3
4 SPDX-FileCopyrightText: 2002 Michael Goffioul <kdeprint@swing.be>
5
6 This file is part of KTNEF, the KDE TNEF support library/program.
7
8 SPDX-License-Identifier: LGPL-2.0-or-later
9 */
10/**
11 * @file
12 * This file is part of the API for handling TNEF data and
13 * provides some basic definitions for general use.
14 *
15 * @author Michael Goffioul
16 */
17
18#pragma once
19//@cond IGNORE
20#define TNEF_SIGNATURE 0x223e9f78
21#define LVL_MESSAGE 0x01
22#define LVL_ATTACHMENT 0x02
23
24#define atpSTRING 0x0001
25#define atpTEXT 0x0002
26#define atpDATE 0x0003
27#define atpSHORT 0x0004
28#define atpLONG 0x0005
29#define atpBYTE 0x0006
30#define atpWORD 0x0007
31#define atpDWORD 0x0008
32
33#define attDATESTART 0x0006
34#define attDATEEND 0x0007
35#define attAIDOWNER 0x0008
36#define attREQUESTRES 0x0009
37#define attFROM 0x8000
38#define attSUBJECT 0x8004
39#define attDATESENT 0x8005
40#define attDATERECD 0x8006
41#define attMSGSTATUS 0x8007
42#define attMSGCLASS 0x8008
43#define attMSGID 0x8009
44#define attBODY 0x800c
45#define attMSGPRIORITY 0x800d
46#define attATTACHDATA 0x800f /* Attachment Data */
47#define attATTACHTITLE 0x8010 /* Attachment File Name */
48#define attATTACHMETAFILE 0x8011
49#define attATTACHCREATEDATE 0x8012
50#define attATTACHMODDATE 0x8013
51#define attDATEMODIFIED 0x8020
52#define attATTACHRENDDATA 0x9002
53#define attMAPIPROPS 0x9003
54#define attRECIPTABLE 0x9004
55#define attATTACHMENT 0x9005 /* Attachment properties (?) */
56#define attTNEFVERSION 0x9006
57#define attOEMCODEPAGE 0x9007
58
59/* These are found in TNEF documentation, but have so far not been implemented
60#define attATTACHCREATEDATE 0x0000
61#define attATTACHTRANSPORTFILENAME 0x0000
62#define attCONVERSATIONID 0x0000
63#define attORIGINALMSGCLASS 0x0000
64#define attOWNER 0x0000
65#define attPARENTID 0x0000
66#define attNULL 0x0000
67#define attDELEGATE 0x0000
68#define attSENTFOR 0x0000
69*/
70
71#define fmsModified 0x01
72#define fmsLocal 0x02
73#define fmsSubmitted 0x04
74#define fmsRead 0x20
75#define fmsHasAttach 0x80
76#define MSGFLAG_READ 0x00000001
77#define MSGFLAG_UNMODIFIED 0x00000002
78#define MSGFLAG_SUBMIT 0x00000004
79#define MSGFLAG_UNSENT 0x00000008
80#define MSGFLAG_HASATTACH 0x00000010
81
82// supported MAPI types
83#define MAPI_TYPE_NONE 0x0000
84#define MAPI_TYPE_UINT16 0x0002
85#define MAPI_TYPE_ULONG 0x0003
86#define MAPI_TYPE_FLOAT 0x0004
87#define MAPI_TYPE_DOUBLE 0x0005
88#define MAPI_TYPE_BOOLEAN 0x000b
89#define MAPI_TYPE_OBJECT 0x000d
90#define MAPI_TYPE_TIME 0x0040
91#define MAPI_TYPE_STRING8 0x001e
92#define MAPI_TYPE_USTRING 0x001f
93#define MAPI_TYPE_BINARY 0x0102
94#define MAPI_TYPE_VECTOR 0x1000
95
96// supported MAPI tags
97#define MAPI_TAG_INDEX 0x0e21
98#define MAPI_TAG_SIZE 0x0e20
99#define MAPI_TAG_FILENAME 0x3707
100#define MAPI_TAG_DISPLAYNAME 0x3001
101#define MAPI_TAG_DATA 0x3701
102#define MAPI_TAG_ATTACHENCODING 0x3702
103#define MAPI_TAG_EXTENSION 0x3703
104#define MAPI_TAG_ATTACHMETHOD 0x3705
105#define MAPI_TAG_RENDERINGPOS 0x370b
106#define MAPI_TAG_MIMETAG 0x370e
107#define MAPI_TAG_ATTACHFLAGS 0x3714
108
109#define MAPI_IID_IMessage 0x00020307
110
111// unsupported Outlook Contact Properties
112// note: properties beginning with MAPI_TAG_CONTACT
113// are 'named' properties
114#define MAPI_TAG_PR_MESSAGE_DELIVERY_TIME 0x0E060040 // CreationTime
115#define MAPI_TAG_PR_MESSAGE_SIZE 0x0E080003 // Size
116#define MAPI_TAG_PR_SENSITIVITY 0x00360003 // Sensitivity
117#define MAPI_TAG_PR_MESSAGE_CLASS 0x001A001F // MessageClass
118#define MAPI_TAG_PR_IMPORTANCE 0x00170003 // Importance
119#define MAPI_TAG_PR_ENTRYID 0x0FFF0102 // EntryID
120#define MAPI_TAG_PR_BODY 0x1000001F // Body
121#define MAPI_TAG_CONTACT_Categories "Keywords" // Categories
122#define MAPI_TAG_PR_DISPLAY_NAME 0x3001001F // FullName
123#define MAPI_TAG_PR_TITLE 0x3A17001F // JobTitle
124#define MAPI_TAG_PR_COMPANY_NAME 0x3A16001F // CompanyName
125#define MAPI_TAG_PR_DISPLAY_NAME_PREFIX 0x3A45001E // Title
126#define MAPI_TAG_PR_SURNAME 0x3A11001E // LastName
127#define MAPI_TAG_PR_MIDDLE_NAME 0x3A44001F // MiddleName
128#define MAPI_TAG_PR_GIVEN_NAME 0x3A06001F // FirstName
129#define MAPI_TAG_PR_GENERATION 0x3A05001E // Suffix
130#define MAPI_TAG_PR_BUSINESS_HOME_PAGE 0x3A51001F // BusinessHomePage
131#define MAPI_TAG_PR_PERSONAL_HOME_PAGE 0x3A50001F // PersonalHomePage
132#define MAPI_TAG_PR_FTP_SITE 0x3A4C001E // FTPSite
133#define MAPI_TAG_PR_INITIALS 0x3A0A001E // Initials
134
135#define MAPI_TAG_CONTACT_FILEUNDER "0x8005" // FileAs
136
137#define MAPI_TAG_CONTACT_LASTNAMEANDFIRSTNAME "0x8017" // LastNameandFirstName
138#define MAPI_TAG_CONTACT_COMPANYANDFULLNAME "0x8018" // CompanyAndFullName
139#define MAPI_TAG_CONTACT_FULLNAMEANDCOMPANY "0x8019" // FullNameAndCompany
140
141#define MAPI_TAG_CONTACT_HOMEADDRESS "0x801A" // HomeAddress
142#define MAPI_TAG_CONTACT_BUSINESSADDRESS "0x801B" // BusinessAddress
143#define MAPI_TAG_CONTACT_OTHERADDRESS "0x801C" // OtherAddress
144#define MAPI_TAG_CONTACT_SELECTEDADDRESS "0x8022" // SelectedMailingAddress:
145// 0 = None
146// 1 = Home
147// 2 = Business
148// 3 = Other
149
150#define MAPI_TAG_CONTACT_WEBPAGE "0x802B" // WebPage
151#define MAPI_TAG_CONTACT_YOMIFIRSTNAME "0x802C" // YomiFirstName
152#define MAPI_TAG_CONTACT_YOMILASTNAME "0x802D" // YomiLastName
153#define MAPI_TAG_CONTACT_YOMICOMPANYNAME "0x802E" // YomiCompanyName
154
155#define MAPI_TAG_CONTACT_LASTFIRSTNOSPACE "0x8030" // LastFirstNoSpace
156#define MAPI_TAG_CONTACT_LASTFIRSTSPACEONLY "0x8031" // LastFirstSpaceOnly
157#define MAPI_TAG_CONTACT_COMPANYLASTFIRSTNOSPACE "0x8032" // CompanyLastFirstNoSpace
158#define MAPI_TAG_CONTACT_COMPANYLASTFIRSTSpaceOnly "0x8033" // CompanyLastFirstSpaceOnly
159#define MAPI_TAG_CONTACT_LASTFIRSTNOSPACECOMPANY "0x8034" // LastFirstNoSpaceCompany
160#define MAPI_TAG_CONTACT_LASTFIRSTSPACEONLYCOMPANY "0x8035" // LastFirstSpaceOnlyCompany
161#define MAPI_TAG_CONTACT_LASTFIRSTANDSuffix "0x8036" // LastFirstAndSuffix
162
163#define MAPI_TAG_CONTACT_BUSINESSADDRESSSTREET "0x8045" // BusinessAddressStreet
164#define MAPI_TAG_CONTACT_BUSINESSADDRESSCITY "0x8046" // BusinessAddressCity
165#define MAPI_TAG_CONTACT_BUSINESSADDRESSSTATE "0x8047" // BusinessAddressState
166#define MAPI_TAG_CONTACT_BUSINESSADDRESSPOSTALCODE "0x8048" // BusinessAddressPostalCode
167#define MAPI_TAG_CONTACT_BUSINESSADDRESSCOUNTRY "0x8049" // BusinessAddressCountry
168#define MAPI_TAG_CONTACT_BUSINESSADDRESSPOBOX "0x804A" // BusinessAddressPostOfficeBox
169
170#define MAPI_TAG_CONTACT_USERFIELD1 "0x804F" // UserField1
171#define MAPI_TAG_CONTACT_USERFIELD2 "0x8050" // UserField2
172#define MAPI_TAG_CONTACT_USERFIELD3 "0x8051" // UserField3
173#define MAPI_TAG_CONTACT_USERFIELD4 "0x8052" // UserField4
174
175#define MAPI_TAG_CONTACT_IMADDRESS "0x8062" // InternetMailAddress (>= Outlook 2002)
176
177#define MAPI_TAG_CONTACT_EMAIL1ADDRTYPE "0x8082" // EMail1AddressType
178#define MAPI_TAG_CONTACT_EMAIL1EMAILADDRESS "0x8083" // EMail1Address
179#define MAPI_TAG_CONTACT_EMAIL1ORIGINALDISPLAYNAME "0x8084" // EMail1DisplayName
180#define MAPI_TAG_CONTACT_EMAIL1ORIGINALENTRYID "0x8085" // EMail1EntryID
181
182#define MAPI_TAG_CONTACT_EMAIL2ADDRTYPE "0x8092" // EMail2AddressType
183#define MAPI_TAG_CONTACT_EMAIL2EMAILADDRESS "0x8093" // EMail2Address
184#define MAPI_TAG_CONTACT_EMAIL2ORIGINALDISPLAYNAME "0x8094" // EMail2DisplayName
185#define MAPI_TAG_CONTACT_EMAIL2ORIGINALENTRYID "0x8095" // EMail2EntryID
186
187#define MAPI_TAG_CONTACT_EMAIL3ADDRTYPE "0x80A2" // EMail3AddressType
188#define MAPI_TAG_CONTACT_EMAIL3EMAILADDRESS "0x80A3" // EMail3Address
189#define MAPI_TAG_CONTACT_EMAIL3ORIGINALDISPLAYNAME "0x80A4" // EMail3DisplayName
190#define MAPI_TAG_CONTACT_EMAIL3ORIGINALENTRYID "0x80A5" // EMail3EntryID
191
192#define MAPI_TAG_CONTACT_INTERNETFREEBUSYADDRESS "0x80D8" // InternetFreeBusyAddress
193
194#define MAPI_TAG_CONTACT_BILLINGINFORMATION "0x8535" // BillingInformation
195#define MAPI_TAG_CONTACT_REMINDERTIME "0x8502" // N/A
196#define MAPI_TAG_CONTACT_MILEAGE "0x8534" // Mileage
197
198#define MAPI_TAG_PR_ASSISTANT_TELEPHONE_NUMBER 0x3A2E001F // AssistantTelephoneNumber
199#define MAPI_TAG_PR_BUSINESS_TELEPHONE_NUMBER 0x3A08001F // BusinessTelephoneNumber
200#define MAPI_TAG_PR_BUSINESS2_TELEPHONE_NUMBER 0x3A1B001F // Business2TelephoneNumber
201#define MAPI_TAG_PR_BUSINESS_FAX_NUMBER 0x3A24001F // BusinessFaxNumber
202#define MAPI_TAG_PR_CALLBACK_TELEPHONE_NUMBER 0x3A02001F // CallbackTelephoneNumber
203#define MAPI_TAG_PR_CAR_TELEPHONE_NUMBER 0x3A1E001F // CarTelephoneNumber
204
205#define MAPI_TAG_PR_COMPANY_MAIN_PHONE_NUMBER 0x3A57001F // CompanyMainTelephoneNumber
206
207#define MAPI_TAG_PR_HOME_TELEPHONE_NUMBER 0x3A09001F // HomeTelephoneNumber
208
209#define MAPI_TAG_PR_HOME2_TELEPHONE_NUMBER 0x3A2F001F // Home2TelephoneNumber
210#define MAPI_TAG_PR_HOME_FAX_NUMBER 0x3A25001F // HomeFaxNumber
211#define MAPI_TAG_PR_ISDN_NUMBER 0x3A2D001F // ISDNNumber
212
213#define MAPI_TAG_PR_MOBILE_TELEPHONE_NUMBER 0x3A1C001F // MobileTelephoneNumber
214
215#define MAPI_TAG_PR_OTHER_TELEPHONE_NUMBER 0x3A1F001F // OtherTelephoneNumber
216#define MAPI_TAG_PR_PRIMARY_FAX_NUMBER 0x3A23001F // OtherFaxNumber
217#define MAPI_TAG_PR_PAGER_TELEPHONE_NUMBER 0x3A21001F // PagerNumber
218#define MAPI_TAG_PR_PRIMARY_TELEPHONE_NUMBER 0x3A1A001F // PrimaryTelephoneNumber
219
220#define MAPI_TAG_PR_RADIO_TELEPHONE_NUMBER 0x3A1D001F // RadioTelephoneNumber
221
222#define MAPI_TAG_PR_TELEX_NUMBER 0x3A2C001F // TelexNumber
223#define MAPI_TAG_PR_TTYTDD_PHONE_NUMBER 0x3A4B001F // TTYTDDTelephoneNumber
224#define MAPI_TAG_PR_POSTAL_ADDRESS 0x3A15001F // MailingAddress
225
226#define MAPI_TAG_PR_BUSINESS_ADDRESS_COUNTRY 0x3A26001E // MailingAddressCountry
227#define MAPI_TAG_PR_LOCALITY 0x3A27001F // MailingAddressCity
228#define MAPI_TAG_PR_STATE_OR_PROVINCE 0x3A28001E // MailingAddressState
229#define MAPI_TAG_PR_STREET_ADDRESS 0x3A29001F // MailingAddressStreet
230#define MAPI_TAG_PR_POSTAL_CODE 0x3A2A001E // MailingAddressPostalCode
231#define MAPI_TAG_PR_PO_BOX 0x3A2B001E // MailingAddressPostOfficeBox
232
233#define MAPI_TAG_PR_HOME_ADDRESS_CITY 0x3A59001E // HomeAddressCity
234#define MAPI_TAG_PR_HOME_ADDRESS_STREET 0x3A5D001E // HomeAddressStreet
235#define MAPI_TAG_PR_HOME_ADDRESS_STATE_OR_PROVINCE 0x3A5C001E // HomeAddressState
236#define MAPI_TAG_PR_HOME_ADDRESS_COUNTRY 0x3A5A001E // HomeAddressCountry
237#define MAPI_TAG_PR_HOME_ADDRESS_PO_BOX 0x3A5E001E // HomeAddressPostOfficeBox
238#define MAPI_TAG_PR_HOME_ADDRESS_POSTAL_CODE 0x3A5B001E // HomeAddressPostalCode
239
240#define MAPI_TAG_PR_OTHER_ADDRESS_CITY 0x3A5F001E // OtherAddressCity
241#define MAPI_TAG_PR_OTHER_ADDRESS_STREET 0x3A63001E // OtherAddressStreet
242#define MAPI_TAG_PR_OTHER_ADDRESS_STATE_OR_PROVINCE 0x3A62001E // OtherAddressState
243#define MAPI_TAG_PR_OTHER_ADDRESS_COUNTRY 0x3A60001E // OtherAddressCountry
244#define MAPI_TAG_PR_OTHER_ADDRESS_POSTAL_CODE 0x3A61001E // OtherAddressPostalCode
245#define MAPI_TAG_PR_OTHER_ADDRESS_PO_BOX 0x3A64001E // OtherAddressPostOfficeBox
246
247#define MAPI_TAG_PR_DEPARTMENT_NAME 0x3A18001F // Department
248#define MAPI_TAG_PR_MANAGER_NAME 0x3A4E001F // ManagerName
249#define MAPI_TAG_PR_OFFICE_LOCATION 0x3A19001F // Location
250#define MAPI_TAG_PR_ASSISTANT 0x3A30001F // AssistantName
251#define MAPI_TAG_PR_PROFESSION 0x3A46001F // Profession
252#define MAPI_TAG_PR_NICKNAME 0x3A4F001F // NickName
253#define MAPI_TAG_PR_BIRTHDAY 0x3A420040 // Birthday
254#define MAPI_TAG_PR_SPOUSE_NAME 0x3A48001F // SpouseName
255#define MAPI_TAG_PR_WEDDING_ANNIVERSARY 0x3A410040 // Anniversary
256#define MAPI_TAG_PR_ACCOUNT 0x3A00001E // Account
257#define MAPI_TAG_PR_COMPUTER_NETWORK_NAME 0x3A49001E // ComputerNetworkName
258#define MAPI_TAG_PR_CHILDRENS_NAMES 0x3A58101E // Children
259#define MAPI_TAG_PR_CUSTOMER_ID 0x3A4A001E // CustomerID
260#define MAPI_TAG_PR_GENDER 0x3A4D0002 // Gender:
261// 0 = Unspecified
262// 1 = Female
263// 2 = Male
264#define MAPI_TAG_PR_GOVERNMENT_ID_NUMBER 0x3A07001E // GovernmentIDNumber
265#define MAPI_TAG_PR_HOBBIES 0x3A43001E // Hobby
266#define MAPI_TAG_PR_LANGUAGE 0x3A0C001E // Language
267#define MAPI_TAG_PR_LOCATION 0x3A0D001E // OfficeLocation
268#define MAPI_TAG_PR_ORGANIZATIONAL_ID_NUMBER 0x3A10001E // OrganizationalIDNumber
269#define MAPI_TAG_PR_REFERRED_BY_NAME 0X3A47001E // ReferredBy
270//@endcond
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:00 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.