OPENCHANGE-MAPI-DELETEMAIL
From OpenChange wiki
Contents |
Objectives
This torture test reproduces Outlook behavior when deleting mails from the inbox. Please consider using this torture test with cautious. The mails selected for deletion will be definitively be removed from the server and automatically disappear from your Outlook inbox.
Running the test
smbtorture --option="mapi:subject=A second" -Uusername%secretpass ncacn_ip_tcp:192.168.102.100[print] OPENCHANGE-MAPI-DELETEMAIL
smbtorture parameters
- mapi:profile_store: Path to the profile database
- mapi:profile: profile to use
- mapi:subject: the torture test will use the specified string as a pattern to match. Any mails in your inbox beginning with this string will be removed from the server.
- -UAdministrator%secretpass: These are the credentials for DCERPC/AUTH3 authentication on epmapper and emsmdb endpoints
- ncacn_ip_tcp:192.168.0.20[print]: This is the binding string used to contact the Exchange server:
- OPENCHANGE-MAPI-DELETEMAIL: The torture test name we are running
Remarks
If your profile database is at the default location $HOME/.openchange/profiles.ldb and you have set a default profile using mapiprofile -S you can ommit both the mapi:profile_store and mapi:profile options.
Torture Test Output
Loading openchange torture test
Using seed 1170812564
EcDoConnect: struct EcDoConnect
in: struct EcDoConnect
name : '/o=OpenChange Organization/ou=First Administrative Group/cn=Recipients/cn=test2'
unknown1: ARRAY(3)
unknown1 : 0x00000000 (0)
unknown1 : 0x1eeebaac (518961836)
unknown1 : 0x00000000 (0)
code_page : 0x000004e4 (1252)
input_locale: struct input_locale
language : 0x0000040c (1036)
method : 0x00000409 (1033)
unknown2 : 0xffffffff (4294967295)
unknown3 : 0x0001 (1)
emsmdb_client_version: ARRAY(3)
emsmdb_client_version : 0x000a (10)
emsmdb_client_version : 0x0000 (0)
emsmdb_client_version : 0x1013 (4115)
alloc_space : *
alloc_space : 0x00000000 (0)
EcDoConnect: struct EcDoConnect
out: struct EcDoConnect
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
unknown4: ARRAY(3)
unknown4 : 0x0000ea60 (60000)
unknown4 : 0x00000006 (6)
unknown4 : 0x00002710 (10000)
session_nb : *
session_nb : 0x0012 (18)
org_group : *
org_group : '/O=OPENCHANGE ORGANIZATION/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN='
user : *
user : 'test2 test2_last_name'
store_version: ARRAY(3)
store_version : 0x0006 (6)
store_version : 0x1b20 (6944)
store_version : 0x0003 (3)
emsmdb_client_version: ARRAY(3)
emsmdb_client_version : 0x000a (10)
emsmdb_client_version : 0x0000 (0)
emsmdb_client_version : 0x1013 (4115)
alloc_space : *
alloc_space : 0x826ade18 (2188041752)
result : MAPI_E_SUCCESS (0x0)
EcDoConnect : MAPI_E_SUCCESS (0x0)
EcDoRpc: struct EcDoRpc
in: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_request : *
mapi_len : 0x00000064 (100)
length : 0x0060 (96)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0xfe (254)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 254)
mapi_OpenMsgStore: struct OpenMsgStore_req
col : 0x00 (0)
codepage : 0x00000c01 (3073)
padding : 0x00000000 (0)
row : 0x00 (0)
mailbox_path : '/o=OpenChange Organization/ou=First Administrative Group/cn=Recipients/cn=test2'
mapi_request : (handles) number=1
handle id : 0xffffffff (4294967295)
length : *
length : 0x0064 (100)
max_data : 0x0200 (512)
EcDoRpc: struct EcDoRpc
out: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_response : *
mapi_response : length=168
mapi_response: ARRAY(166)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0xfe (254)
mapi_flags : 0x00 (0)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 254)
mapi_OpenMsgStore: struct OpenMsgStore_repl
PR_OBJECT_TYPE : MAPI_STORE (0x1)
folder_id: ARRAY(13)
folder_id : 0x84b9000000000001 (-8883068790011592703)
folder_id : 0x86b9000000000001 (-8738953601935736831)
folder_id : 0x87b9000000000001 (-8666896007897808895)
folder_id : 0x85b9000000000001 (-8811011195973664767)
folder_id : 0x88b9000000000001 (-8594838413859880959)
folder_id : 0x89b9000000000001 (-8522780819821953023)
folder_id : 0x8ab9000000000001 (-8450723225784025087)
folder_id : 0x8bb9000000000001 (-8378665631746097151)
folder_id : 0x8eb9000000000001 (-8162492849632313343)
folder_id : 0x8fb9000000000001 (-8090435255594385407)
folder_id : 0x8cb9000000000001 (-8306608037708169215)
folder_id : 0x8db9000000000001 (-8234550443670241279)
folder_id : 0x90b9000000000001 (-8018377661556457471)
unknown3 : 0x07 (7)
entryid: struct MAPIUID
ab: ARRAY(16)
[0] : 0xbf (191)
[1] : 0x4b (75)
[2] : 0x5a (90)
[3] : 0x5a (90)
[4] : 0x1d (29)
[5] : 0x98 (152)
[6] : 0xb5 (181)
[7] : 0x4e (78)
[8] : 0xbc (188)
[9] : 0x2f (47)
[10] : 0x78 (120)
[11] : 0x4f (79)
[12] : 0xcc (204)
[13] : 0xd7 (215)
[14] : 0x86 (134)
[15] : 0x35 (53)
default_store : 0x0001 (1)
msgstore: struct MAPIUID
ab: ARRAY(16)
[0] : 0x17 (23)
[1] : 0xd8 (216)
[2] : 0x9c (156)
[3] : 0xe9 (233)
[4] : 0xaf (175)
[5] : 0x25 (37)
[6] : 0xa7 (167)
[7] : 0x4d (77)
[8] : 0x87 (135)
[9] : 0x5f (95)
[10] : 0x36 (54)
[11] : 0xcb (203)
[12] : 0x4d (77)
[13] : 0x9e (158)
[14] : 0x0d (13)
[15] : 0xe5 (229)
ts_access: struct FILETIME
dwLowDateTime : 0x03012c1e (50408478)
dwHighDateTime : 0x07d70207 (131531271)
creation_date : 'î4�½çBã�'
terminator : 0x00 (0)
unknown4 : 0x0100 (256)
mapi_response : (handles) number=1
handle id : 0x00000121 (289)
length : *
length : 0x00ac (172)
result : MAPI_E_SUCCESS (0x0)
EcDoRpc: struct EcDoRpc
in: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_request : *
mapi_len : 0x0000000a (10)
length : 0x0006 (6)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0x27 (39)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 39)
mapi_GetReceiveFolder: struct GetReceiveFolder_req
handle_id : 0x0000 (0)
mapi_request : (handles) number=1
handle id : 0x00000121 (289)
length : *
length : 0x000a (10)
max_data : 0x0200 (512)
EcDoRpc: struct EcDoRpc
out: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_response : *
mapi_response : length=17
mapi_response: ARRAY(15)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0x27 (39)
mapi_flags : 0x00 (0)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 39)
mapi_GetReceiveFolder: struct GetReceiveFolder_repl
folder_id : 0x88b9000000000001 (-8594838413859880959)
mapi_response : (handles) number=1
handle id : 0x00000121 (289)
length : *
length : 0x0015 (21)
result : MAPI_E_SUCCESS (0x0)
EcDoRpc: struct EcDoRpc
in: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_request : *
mapi_len : 0x00000017 (23)
length : 0x000f (15)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0x02 (2)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 2)
mapi_OpenFolder: struct OpenFolder_req
handle : 0x0100 (256)
folder_id : 0x88b9000000000001 (-8594838413859880959)
unknown : 0x00 (0)
mapi_request : (handles) number=2
handle id : 0x00000121 (289)
handle id : 0xffffffff (4294967295)
length : *
length : 0x0017 (23)
max_data : 0x0200 (512)
EcDoRpc: struct EcDoRpc
out: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_response : *
mapi_response : length=10
mapi_response: ARRAY(8)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0x02 (2)
mapi_flags : 0x01 (1)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 2)
mapi_OpenFolder: struct OpenFolder_repl
unknown : 0x0000 (0)
mapi_response : (handles) number=2
handle id : 0x00000121 (289)
handle id : 0x00000110 (272)
length : *
length : 0x0012 (18)
result : MAPI_E_SUCCESS (0x0)
EcDoRpc: struct EcDoRpc
in: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_request : *
mapi_len : 0x0000000f (15)
length : 0x0007 (7)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0x05 (5)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 5)
mapi_GetContentsTable: struct GetContentsTable_req
unknown : 0x00 (0)
unknown2 : 0x0001 (1)
mapi_request : (handles) number=2
handle id : 0x00000110 (272)
handle id : 0xffffffff (4294967295)
length : *
length : 0x000f (15)
max_data : 0x0200 (512)
EcDoRpc: struct EcDoRpc
out: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_response : *
mapi_response : length=12
mapi_response: ARRAY(10)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0x05 (5)
mapi_flags : 0x01 (1)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 5)
mapi_GetContentsTable: struct GetContentsTable_repl
cn_rows : 0x0004 (4)
unknown : 0x0000 (0)
mapi_response : (handles) number=2
handle id : 0x00000110 (272)
handle id : 0x00000109 (265)
length : *
length : 0x0014 (20)
result : MAPI_E_SUCCESS (0x0)
EcDoRpc: struct EcDoRpc
in: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_request : *
mapi_len : 0x00000027 (39)
length : 0x0023 (35)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0x12 (18)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 18)
mapi_SetColumns: struct SetColumns_req
handle : 0x00 (0)
unknown : 0x00 (0)
prop_count : 0x0005 (5)
properties: ARRAY(5)
properties : PR_FID (0x67480014)
properties : PR_MID (0x674A0014)
properties : PR_INST_ID (0x674D0014)
properties : PR_INSTANCE_NUM (0x674E0003)
properties : PR_SUBJECT (0x37001E)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0x15 (21)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 21)
mapi_QueryRows: struct QueryRows_req
unknown : 0x00 (0)
flag_noadvance : 0x00 (0)
unknown1 : 0x01 (1)
row_count : 0x0100 (256)
mapi_request : (handles) number=1
handle id : 0x00000109 (265)
length : *
length : 0x0027 (39)
max_data : 0x0200 (512)
EcDoRpc: struct EcDoRpc
out: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_response : *
mapi_response : length=198
mapi_response: ARRAY(196)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0x12 (18)
mapi_flags : 0x00 (0)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 18)
mapi_SetColumns: struct SetColumns_repl
unknown : 0x00 (0)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0x15 (21)
mapi_flags : 0x00 (0)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 21)
mapi_QueryRows: struct QueryRows_repl
unknown : 0x02 (2)
results_count : 0x0004 (4)
unknown2 : 0x00 (0)
inbox : DATA_BLOB length=179
mapi_response : (handles) number=1
handle id : 0x00000109 (265)
length : *
length : 0x00ca (202)
result : MAPI_E_SUCCESS (0x0)
delete(8abc000000000001) delete(89bc000000000001) delete(88bc000000000001)
EcDoRpc: struct EcDoRpc
in: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_request : *
mapi_len : 0x00000025 (37)
length : 0x0021 (33)
mapi_request: struct EcDoRpc_MAPI_REQ
opnum : 0x1e (30)
mapi_flags : 0x00 (0)
u : union EcDoRpc_MAPI_REQ_UNION(case 30)
mapi_DeleteMessages: struct DeleteMessages_req
unknown : 0x00 (0)
flags : 0x0100 (256)
cn_ids : 0x0003 (3)
message_ids: ARRAY(3)
message_ids : 0x8abc000000000001 (-8449878800853893119)
message_ids : 0x89bc000000000001 (-8521936394891821055)
message_ids : 0x88bc000000000001 (-8593993988929748991)
mapi_request : (handles) number=1
handle id : 0x00000110 (272)
length : *
length : 0x0025 (37)
max_data : 0x0200 (512)
EcDoRpc: struct EcDoRpc
out: struct EcDoRpc
handle : *
handle: struct policy_handle
handle_type : 0x00000000 (0)
uuid : 4e75b8e2-c92f-432e-839a-a4905945bba5
size : 0x00000200 (512)
offset : 0x00000000 (0)
mapi_response : *
mapi_response : length=102
mapi_response: ARRAY(100)
mapi_repl: struct EcDoRpc_MAPI_REPL
opnum : 0x1e (30)
mapi_flags : 0x00 (0)
error_code : MAPI_E_SUCCESS (0x0)
u : union EcDoRpc_MAPI_REPL_UNION(case 30)
mapi_DeleteMessages: struct DeleteMessages_repl
unknown : 0x2a00 (10752)
entries : DATA_BLOB length=92
mapi_response : (handles) number=1
handle id : 0x00000110 (272)
length : *
length : 0x006a (106)
result : MAPI_E_SUCCESS (0x0)
