1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 | #ifndef __MAILMSGPROPS_H__
|
---|
7 | #define __MAILMSGPROPS_H__
|
---|
8 |
|
---|
9 | #define IMMPID_START_LIST(name,start,guid) struct __declspec(uuid(guid)) tagIMMPID_##name##_STRUCT; typedef enum tagIMMPID_##name##_ENUM { IMMPID_##name##_BEFORE__ = (start)-1,
|
---|
10 | #define IMMPID_END_LIST(name) IMMPID_##name##_AFTER__ } IMMPID_##name##_ENUM;
|
---|
11 |
|
---|
12 | IMMPID_START_LIST(MP,0x1000,"13384CF0-B3C4-11d1-AA92-00AA006BC80B")
|
---|
13 | IMMPID_MP_RECIPIENT_LIST,IMMPID_MP_CONTENT_FILE_NAME,IMMPID_MP_SENDER_ADDRESS_SMTP,IMMPID_MP_SENDER_ADDRESS_X500,IMMPID_MP_SENDER_ADDRESS_X400,IMMPID_MP_SENDER_ADDRESS_LEGACY_EX_DN,IMMPID_MP_DOMAIN_LIST,IMMPID_MP_PICKUP_FILE_NAME,IMMPID_MP_AUTHENTICATED_USER_NAME,IMMPID_MP_CONNECTION_IP_ADDRESS,IMMPID_MP_HELO_DOMAIN,IMMPID_MP_EIGHTBIT_MIME_OPTION,IMMPID_MP_CHUNKING_OPTION,IMMPID_MP_BINARYMIME_OPTION,IMMPID_MP_REMOTE_AUTHENTICATION_TYPE,IMMPID_MP_ERROR_CODE,IMMPID_MP_DSN_ENVID_VALUE,IMMPID_MP_DSN_RET_VALUE,IMMPID_MP_REMOTE_SERVER_DSN_CAPABLE,IMMPID_MP_ARRIVAL_TIME,IMMPID_MP_MESSAGE_STATUS,IMMPID_MP_EXPIRE_DELAY,IMMPID_MP_EXPIRE_NDR,IMMPID_MP_LOCAL_EXPIRE_DELAY,IMMPID_MP_LOCAL_EXPIRE_NDR,IMMPID_MP_ARRIVAL_FILETIME,IMMPID_MP_HR_CAT_STATUS,IMMPID_MP_MSG_GUID,IMMPID_MP_SUPERSEDES_MSG_GUID,IMMPID_MP_SCANNED_FOR_CRLF_DOT_CRLF,IMMPID_MP_FOUND_EMBEDDED_CRLF_DOT_CRLF,IMMPID_MP_MSG_SIZE_HINT,IMMPID_MP_RFC822_MSG_ID,IMMPID_MP_RFC822_MSG_SUBJECT,IMMPID_MP_RFC822_FROM_ADDRESS,IMMPID_MP_RFC822_TO_ADDRESS,IMMPID_MP_RFC822_CC_ADDRESS,IMMPID_MP_RFC822_BCC_ADDRESS,IMMPID_MP_CONNECTION_SERVER_IP_ADDRESS,IMMPID_MP_SERVER_NAME,IMMPID_MP_SERVER_VERSION,IMMPID_MP_NUM_RECIPIENTS,IMMPID_MP_X_PRIORITY,IMMPID_MP_FROM_ADDRESS,IMMPID_MP_SENDER_ADDRESS,IMMPID_MP_DEFERRED_DELIVERY_FILETIME,IMMPID_MP_SENDER_ADDRESS_OTHER,IMMPID_MP_ORIGINAL_ARRIVAL_TIME,IMMPID_MP_MSGCLASS,IMMPID_MP_CONTENT_TYPE,IMMPID_MP_ENCRYPTION_TYPE,IMMPID_MP_CONNECTION_SERVER_PORT,IMMPID_MP_CLIENT_AUTH_USER,IMMPID_MP_CLIENT_AUTH_TYPE,IMMPID_MP_CRC_GLOBAL,IMMPID_MP_CRC_RECIPS,IMMPID_MP_INBOUND_MAIL_FROM_AUTH,IMMPID_END_LIST(MP)
|
---|
14 |
|
---|
15 | #define MP_MSGCLASS_SYSTEM 1
|
---|
16 | #define MP_MSGCLASS_REPLICATION 2
|
---|
17 | #define MP_MSGCLASS_DELIVERY_REPORT 3
|
---|
18 | #define MP_MSGCLASS_NONDELIVERY_REPORT 4
|
---|
19 |
|
---|
20 | #define MP_STATUS_SUCCESS 0
|
---|
21 | #define MP_STATUS_RETRY 1
|
---|
22 | #define MP_STATUS_ABORT_DELIVERY 2
|
---|
23 | #define MP_STATUS_BAD_MAIL 3
|
---|
24 | #define MP_STATUS_SUBMITTED 4
|
---|
25 | #define MP_STATUS_CATEGORIZED 5
|
---|
26 | #define MP_STATUS_ABANDON_DELIVERY 6
|
---|
27 |
|
---|
28 | #define RP_RECIP_FLAGS_RESERVED 0x0000000F
|
---|
29 |
|
---|
30 | #define RP_DSN_NOTIFY_SUCCESS 0x01000000
|
---|
31 | #define RP_DSN_NOTIFY_FAILURE 0x02000000
|
---|
32 | #define RP_DSN_NOTIFY_DELAY 0x04000000
|
---|
33 | #define RP_DSN_NOTIFY_NEVER 0x08000000
|
---|
34 |
|
---|
35 | #define RP_DSN_NOTIFY_MASK 0x0F000000
|
---|
36 |
|
---|
37 | #define RP_HANDLED 0x00000010
|
---|
38 | #define RP_GENERAL_FAILURE 0x00000020
|
---|
39 | #define RP_DSN_HANDLED 0x00000040
|
---|
40 |
|
---|
41 | #define RP_DELIVERED 0x00000110
|
---|
42 | #define RP_DSN_SENT_NDR 0x00000450
|
---|
43 | #define RP_FAILED 0x00000830
|
---|
44 | #define RP_UNRESOLVED 0x00001030
|
---|
45 | #define RP_ENPANDED 0x00002010
|
---|
46 | #define RP_EXPANDED 0x00002010
|
---|
47 | #define RP_DSN_SENT_DELAYED 0x00004000
|
---|
48 | #define RP_DSN_SENT_EXPANDED 0x00008040
|
---|
49 | #define RP_DSN_SENT_RELAYED 0x00010040
|
---|
50 | #define RP_DSN_SENT_DELIVERED 0x00020040
|
---|
51 | #define RP_REMOTE_MTA_NO_DSN 0x00080000
|
---|
52 | #define RP_ERROR_CONTEXT_STORE 0x00100000
|
---|
53 | #define RP_ERROR_CONTEXT_CAT 0x00200000
|
---|
54 | #define RP_ERROR_CONTEXT_MTA 0x00400000
|
---|
55 |
|
---|
56 | #define RP_VOLATILE_FLAGS_MASK 0xF0000000
|
---|
57 |
|
---|
58 | #define RP_DSN_NOTIFY_INVALID 0x00000000
|
---|
59 |
|
---|
60 | IMMPID_START_LIST(RP,0x2000,"79E82048-D320-11d1-9FF4-00C04FA37348")
|
---|
61 | IMMPID_RP_DSN_NOTIFY_SUCCESS,IMMPID_RP_DSN_NOTIFY_INVALID,IMMPID_RP_ADDRESS_TYPE,IMMPID_RP_ADDRESS,IMMPID_RP_ADDRESS_TYPE_SMTP,IMMPID_RP_ERROR_CODE,IMMPID_RP_ERROR_STRING,IMMPID_RP_DSN_NOTIFY_VALUE,IMMPID_RP_DSN_ORCPT_VALUE,IMMPID_RP_ADDRESS_SMTP,IMMPID_RP_ADDRESS_X400,IMMPID_RP_ADDRESS_X500,IMMPID_RP_LEGACY_EX_DN,IMMPID_RP_RECIPIENT_FLAGS,IMMPID_RP_SMTP_STATUS_STRING,IMMPID_RP_DSN_PRE_CAT_ADDRESS,IMMPID_RP_MDB_GUID,IMMPID_RP_USER_GUID,IMMPID_RP_DOMAIN,IMMPID_RP_ADDRESS_OTHER,IMMPID_RP_DISPLAY_NAME,IMMPID_END_LIST(RP)
|
---|
62 | IMMPID_START_LIST(MPV,0x3000,"CBE69706-C9BD-11d1-9FF2-00C04FA37348")
|
---|
63 | IMMPID_MPV_STORE_DRIVER_HANDLE,IMMPID_MPV_MESSAGE_CREATION_FLAGS,IMMPID_MPV_MESSAGE_OPEN_HANDLES,IMMPID_MPV_TOTAL_OPEN_HANDLES,IMMPID_MPV_TOTAL_OPEN_PROPERTY_STREAM_HANDLES,IMMPID_MPV_TOTAL_OPEN_CONTENT_HANDLES,IMMPID_END_LIST(MPV)
|
---|
64 |
|
---|
65 | typedef struct tagIMMP_MPV_STORE_DRIVER_HANDLE {
|
---|
66 | GUID guidSignature;
|
---|
67 | } IMMP_MPV_STORE_DRIVER_HANDLE;
|
---|
68 |
|
---|
69 | #define MPV_INBOUND_CUTOFF_EXCEEDED 0x00000001
|
---|
70 | #define MPV_WRITE_CONTENT 0x00000002
|
---|
71 |
|
---|
72 | IMMPID_START_LIST(RPV,0x4000,"79E82049-D320-11d1-9FF4-00C04FA37348")
|
---|
73 | IMMPID_RPV_DONT_DELIVER,IMMPID_RPV_NO_NAME_COLLISIONS,IMMPID_END_LIST(RPV)
|
---|
74 |
|
---|
75 | #define IMMPID_RP_DONT_DELIVER IMMPID_RPV_DONT_DELIVER
|
---|
76 |
|
---|
77 | #define IMMPID_RP_NO_NAME_COLLISIONS IMMPID_RPV_NO_NAME_COLLISIONS
|
---|
78 |
|
---|
79 | IMMPID_START_LIST(NMP,0x6000,"7433a9aa-20e2-11d2-94d6-00c04fa379f1")
|
---|
80 | IMMPID_NMP_SECONDARY_GROUPS,IMMPID_NMP_SECONDARY_ARTNUM,IMMPID_NMP_PRIMARY_GROUP,IMMPID_NMP_PRIMARY_ARTID,IMMPID_NMP_POST_TOKEN,IMMPID_NMP_NEWSGROUP_LIST,IMMPID_NMP_HEADERS,IMMPID_NMP_NNTP_PROCESSING,IMMPID_NMP_NNTP_APPROVED_HEADER,IMMPID_END_LIST(NMP)
|
---|
81 |
|
---|
82 | #define NMP_PROCESS_POST 0x00000001
|
---|
83 | #define NMP_PROCESS_CONTROL 0x00000002
|
---|
84 | #define NMP_PROCESS_MODERATOR 0x00000004
|
---|
85 |
|
---|
86 | IMMPID_START_LIST(CPV,0x8000,"A2A76B2A-E52D-11d1-AA64-00C04FA35B82")
|
---|
87 | IMMPID_CP_START,IMMPID_END_LIST(CPV)
|
---|
88 |
|
---|
89 | #define IMMPID_DECLARE_ENTRY(name) {&_uuidof(tagIMMPID_##name##_STRUCT),IMMPID_##name##_BEFORE__+1,IMMPID_##name##_AFTER__-1}
|
---|
90 |
|
---|
91 | extern const __declspec(selectany) struct tagIMMPID_GUIDLIST_ITEM {
|
---|
92 | const GUID *pguid;
|
---|
93 | DWORD dwStart;
|
---|
94 | DWORD dwLast;
|
---|
95 | } IMMPID_GUIDS[] = {IMMPID_DECLARE_ENTRY(MP),IMMPID_DECLARE_ENTRY(RP),IMMPID_DECLARE_ENTRY(MPV),IMMPID_DECLARE_ENTRY(RPV),{&GUID_NULL,0,0}};
|
---|
96 | #endif
|
---|