/usr/include/libmapi/mapidefs.h is in libmapi-dev 1:2.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | /*
OpenChange MAPI implementation.
MAPI definitions
Copyright (C) Julien Kerihuel 2005 - 2007.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __MAPIDEFS_H__
#define __MAPIDEFS_H__
#define PROP_TAG(type, id) (((id << 16))| (type))
#define MV_FLAG 0x1000
/* UNICODE flags */
#define MAPI_UNICODE 0x80000000
/* Other GetProps/SetProps flags */
#define MAPI_PROPS_SKIP_NAMEDID_CHECK 0x00000001
/* Property types */
#define PT_UNSPECIFIED 0x0
#define PT_NULL 0x1
#define PT_I2 0x2
#define PT_SHORT 0x2
#define PT_LONG 0x3
#define PT_FLOAT 0x4
#define PT_DOUBLE 0x5
#define PT_CURRENCY 0x6
#define PT_APPTIME 0x7
#define PT_ERROR 0xa
#define PT_BOOLEAN 0xb
#define PT_OBJECT 0xd
#define PT_I8 0x14
#define PT_STRING8 0x1e
#define PT_UNICODE 0x1f
#define PT_SYSTIME 0x40
#define PT_CLSID 0x48
#define PT_SVREID 0xFB
#define PT_SRESTRICT 0xFD
#define PT_ACTIONS 0xFE
#define PT_BINARY 0x102
/* Multi valued property types */
#define PT_MV_SHORT (MV_FLAG | PT_SHORT)
#define PT_MV_LONG (MV_FLAG | PT_LONG)
#define PT_MV_FLOAT (MV_FLAG | PT_FLOAT)
#define PT_MV_DOUBLE (MV_FLAG | PT_DOUBLE)
#define PT_MV_CURRENCY (MV_FLAG | PT_CURRENCY)
#define PT_MV_APPTIME (MV_FLAG | PT_APPTIME)
#define PT_MV_I8 (MV_FLAG | PT_I8)
#define PT_MV_STRING8 (MV_FLAG | PT_STRING8)
#define PT_MV_UNICODE (MV_FLAG | PT_UNICODE)
#define PT_MV_SYSTIME (MV_FLAG | PT_SYSTIME)
#define PT_MV_CLSID (MV_FLAG | PT_CLSID)
#define PT_MV_BINARY (MV_FLAG | PT_BINARY)
/* Restriction types */
#define RES_AND 0
#define RES_OR 1
#define RES_NOT 2
#define RES_CONTENT 3
#define RES_PROPERTY 4
#define RES_COMPAREPROPS 5
#define RES_BITMASK 6
#define RES_SIZE 7
#define RES_EXIST 8
#define RES_SUBRESTRICTION 9
#define RES_COMMENT 10
/* Resolve types */
#define MAPI_UNRESOLVED 0x0
#define MAPI_AMBIGUOUS 0x1
#define MAPI_RESOLVED 0x2
/* Positioning Minimal Entry IDs */
#define MID_BEGINNING_OF_TABLE 0x0
#define MID_CURRENT 0x1
#define MID_END_OF_TABLE 0x2
/* Object Type */
#define MAPI_STORE 0x1 /* Message Store */
#define MAPI_ADDRBOOK 0x2 /* Address Book */
#define MAPI_FOLDER 0x3 /* Folder */
#define MAPI_ABCONT 0x4 /* Address Book Container */
#define MAPI_MESSAGE 0x5 /* Message */
#define MAPI_MAILUSER 0x6 /* Individual Recipient */
#define MAPI_ATTACH 0x7 /* Attachment */
#define MAPI_DISTLIST 0x8 /* Distribution List Recipient */
#define MAPI_PROFSECT 0x9 /* Profile Section */
#define MAPI_STATUS 0xA /* Status Object */
#define MAPI_SESSION 0xB /* Session */
#define MAPI_FORMINFO 0xC /* Form Information */
/* Display Type */
#define DT_MAILUSER 0x0
#define DT_DISTLIST 0x1
#define DT_FORUM 0x2
#define DT_AGENT 0x3
#define DT_ORGANIZATION 0x4
#define DT_PRIVATE_DISTLIST 0x5
#define DT_REMOTE_MAILUSER 0x6
#define DT_CONTAINER 0x100
#define DT_TEMPLATE 0x101
#define DT_ADDRESS_TEMPLATE 0x102
#define DT_SEARCH 0x200
/* Attachment method */
#define NO_ATTACHMENT 0
#define ATTACH_BY_VALUE 1
#define ATTACH_BY_REFERENCE 2
#define ATTACH_BY_REF_RESOLVE 3
#define ATTACH_BY_REF_ONLY 4
#define ATTACH_EMBEDDED_MSG 5
#define ATTACH_OLE 6
/* Creation flags */
#define MAPI_CREATE 0x2
/* SaveChanges flags */
#define KEEP_OPEN_READONLY 0x09
#define KEEP_OPEN_READWRITE 0x0A
#define FORCE_SAVE 0x0C
/* OpenMessage flags */
#define MAPI_MODIFY 0x1
/* see MAPI_CREATE above */
/* GetGALTable flags */
#define TABLE_START 0x0
#define TABLE_CUR 0x1
/*
* ENTRYID flags
*/
/* definition for abFlags[0] */
#define MAPI_SHORTTERM 0x80
#define MAPI_NOTRECIP 0x40
#define MAPI_THISSESSION 0x20
#define MAPI_NOW 0x10
#define MAPI_NOTRESERVED 0x08
/* definition for abFlags[1] */
#define MAPI_COMPOUND 0x80
/*
* Priority
*/
#define PRIORITY_LOW -1
#define PRIORITY_NORMAL 0
#define PRIORITY_HIGH 1
/*
* Importance
*/
#define IMPORTANCE_LOW 0
#define IMPORTANCE_NORMAL 1
#define IMPORTANCE_HIGH 2
/*
* Color
*/
#define olBlue 0
#define olGreen 1
#define olPink 2
#define olYellow 3
#define olWhite 4
/*
* Appointment flags with PR_APPOINTMENT_BUSY_STATUS
*/
#define BUSY_STATUS_FREE 0
#define BUSY_STATUS_TENTATIVE 1
#define BUSY_STATUS_BUSY 2
#define BUSY_STATUS_OUTOFOFFICE 3
/*
* Appointment meeting status
*/
#define MEETING_STATUS_NONMEETING 0
#define MEETING_STATUS_MEETING 1
/*
* Task status
*/
#define olTaskNotStarted 0
#define olTaskInProgress 1
#define olTaskComplete 2
#define olTaskWaiting 3
#define olTaskDeferred 4
/*
* Task OwnerShip
*/
#define olNewTask 0
#define olDelegatedTask 1
#define olOwnTask 2
/*
* PR_MESSAGE_EDITOR_FORMAT type
*/
#define EDITOR_FORMAT_PLAINTEXT 1
#define EDITOR_FORMAT_HTML 2
#define EDITOR_FORMAT_RTF 3
#define olEditorText 1
#define olEditorHTML 2
#define olEditorRTF 3
#define olEditorWord 4
/*
* Default folders
*/
#define olFolderMailboxRoot 0
#define olFolderTopInformationStore 1
#define olFolderDeletedItems 3
#define olFolderOutbox 4
#define olFolderSentMail 5
#define olFolderInbox 6
#define olFolderCommonView 8
#define olFolderCalendar 9
#define olFolderContacts 10
#define olFolderJournal 11
#define olFolderNotes 12
#define olFolderTasks 13
#define olFolderDrafts 16
#define olPublicFoldersAllPublicFolders 18
#define olFolderConflicts 19
#define olFolderSyncIssues 20
#define olFolderLocalFailures 21
#define olFolderServerFailures 22
#define olFolderJunk 23
#define olFolderFinder 24
#define olFolderPublicRoot 25
#define olFolderPublicIPMSubtree 26
#define olFolderPublicNonIPMSubtree 27
#define olFolderPublicEFormsRoot 28
#define olFolderPublicFreeBusyRoot 29
#define olFolderPublicOfflineAB 30
#define olFolderPublicEFormsRegistry 31
#define olFolderPublicLocalFreeBusy 32
#define olFolderPublicLocalOfflineAB 33
#define olFolderPublicNNTPArticle 34
/*
* IPF container class
*/
#define IPF_APPOINTMENT "IPF.Appointment"
#define IPF_CONTACT "IPF.Contact"
#define IPF_JOURNAL "IPF.Journal"
#define IPF_NOTE "IPF.Note"
#define IPF_STICKYNOTE "IPF.StickyNote"
#define IPF_TASK "IPF.Task"
#define IPF_POST "IPF.Post"
/*
* Common OLEGUID - see MS-OXPROPS, Section 1.3.2
*/
#define PSETID_Appointment "00062002-0000-0000-c000-000000000046"
#define PSETID_Task "00062003-0000-0000-c000-000000000046"
#define PSETID_Address "00062004-0000-0000-c000-000000000046"
#define PSETID_Common "00062008-0000-0000-c000-000000000046"
#define PSETID_Note "0006200e-0000-0000-c000-000000000046"
#define PSETID_Log "0006200a-0000-0000-c000-000000000046"
#define PSETID_Sharing "00062040-0000-0000-c000-000000000046"
#define PSETID_PostRss "00062041-0000-0000-c000-000000000046"
#define PSETID_UnifiedMessaging "4442858e-a9e3-4e80-b900-317a210cc15b"
#define PSETID_Meeting "6ed8da90-450b-101b-98da-00aa003f1305"
#define PSETID_AirSync "71035549-0739-4dcb-9163-00f0580dbbdf"
#define PSETID_Messaging "41f28f13-83f4-4114-a584-eedb5a6b0bff"
#define PSETID_Attachment "96357f7f-59e1-47d0-99a7-46515c183b54"
#define PSETID_CalendarAssistant "11000e07-b51b-40d6-af21-caa85edab1d0"
#define PS_PUBLIC_STRINGS "00020329-0000-0000-c000-000000000046"
#define PS_INTERNET_HEADERS "00020386-0000-0000-c000-000000000046"
#define PS_MAPI "00020328-0000-0000-c000-000000000046"
#define PSETID_Report "00062013-0000-0000-c000-000000000046"
#define PSETID_Remote "00062014-0000-0000-c000-000000000046"
#define PS_UNKNOWN_0006200b_0000_0000_c000_000000000046 "0006200b-0000-0000-c000-000000000046"
#define PSETID_Appointment2 "02200600-0000-0000-c000-000000000046"
/* FreeBusy strings for Exchange 2003 and below */
#define FREEBUSY_FOLDER "EX:/o=%s/ou=%s"
#define FREEBUSY_USER "USER-/CN=RECIPIENTS/CN=%s"
#endif /*!__MAPIDEFS_H__ */
|