: Re: MS Outlook & OutLook Express - Address Book 
Author Message
 : Re: MS Outlook & OutLook Express - Address Book

I would like to know if anyone come help me with the following
    File Format or VB or C++ sample for reading the address book of the
above.

Thanks
zn



Sat, 23 Feb 2002 03:00:00 GMT  
 : Re: MS Outlook & OutLook Express - Address Book
Secret File Structure of Outlook's Mailbox!!!!
PLEASE HELP ME!

I am a beginner to Visual Basic and I want to write DIRECTLY
to Microsoft Outllook's "inbox.mbx" to ADD new messages to the
INBOX or any other folder that I want to.

Please don't tell me about using  CRAPPY MAPI.
MAPI does NOT give you absolute control over OUTLOOK.

To the best of my knowledge, Microsoft does NOT provide the file
format of Outllook's ".idx" and ".mbx" mailbox files to the public?

So, below are file structures for OUTLOOK's Mail files!
There may be some errors in these due to version differences.
Please tell me if you find any errors?????????

Now, can ANYBODY please give me an example of HOW to
write a NEW Message to Outlook's INBOX in VB ?

Bill SerGio, The Infomercial King(tm)
(305)233-7654

*/ *************************
*/ .IDX FILE FORMAT
*/ *************************
Private Type idxheader
    fileid  As String * 4       '1-4    4 bytes File ID (the ASCII string
"JMF9")
    subid As String * 4         '5-8    4 bytes Sub-ID (the hex value
0x04000100) possibly 2 integers for version number 4.1
    numitems As Long            '9-12   4 bytes Number of items in the index file
(number of e-mail messages)
    thisfilesize As Long        '13-16  4 bytes File size in bytes
    other1 As Long              '17-20  4 bytes ? (seems to contain the hex value
0x01000000)
    filemsgindexinfile As Long  '21-24  4 bytes ? (seems to contain the
hex value 0x10000100)
    other2 As String * 40       '25-64  40 bytes   String composed of
0x00's - buffer to make the header 64 bytes
End Type
Private Type idxrecord
    other0 As String * 16       '0-15   16 bytes seems to be a dummy area. could
be the front or back of each index item
    flags As Long               '16-19  2 bytes used for marking read, delete, unread,
etc. 2 byte for filler
    other1a As Long             '20-23  not sure of these yet
    msgnumber As Long           '24-27  4 bytes cause each msg gets a unique
number
    other1c As Long             '28-31  not sure of these yet
    howlongisit As Long         '32-35  4 bytes length of the index item in this
file
    msgindexinfile As Long      '36-39  4 bytes where in the mbx file this
message starts
    messagesize As Long         '40-43  4 bytes how long is the message in the
mbx file
    other3 As string * 4        '44-47  not sure of these yet seems to be an
offset or a length
    other4 As String * 162      '48-221 not sure of these yet
    messagegotdate As Date      '222-229 win32 filetime structure
    messagesentdate As Date     '230-237 win32 filetime structure
    other5 As Integer           '238-239 filler to make it divisible by 4
End Type
'got to read the rest programmatically
Dim subjectsize As Integer      '4 bytes but only read 2 and throw 2 away
Dim subject As String           'size read in previous field
Dim sendtoaddresssize As Integer'4 bytes but only read 2 and throw 2
away
Dim sendtoaddress As String     'size read in previous field
Dim sendernamesize As Integer   '4 bytes but only read 2 and throw 2 away
Dim sendername As String        'size read in previous field
'you will need to make the record evenly divisible by 4
'read (startofrecord (i.e., seek at the beginning) + howlongisit) -
hereinfile(i.e., seek at this place)
'and throw it away

*/ *************************
*/ .MBX FILE FORMAT
*/ *************************
Private Type mbxheader
    fileid As String * 4        '4 bytes JMF6
    subid As String * 4         '4 bytes could be 2 integers to read version
number
    numofmessages As Long       '4 byte binary number - number of messages in
the file,including messages marked for deletion.
    lastusedmessage As Long     '4 byte binary number - last used message
number.
    thisfilesize As Long        '4 byte binary number - size of this file in
bytes.
    other1 As String * 1        '1 byte hex string x'01' - ?
    filler As String * 63       '63 byte hex string, all x'00' - ?MBX Message
End Type
Private Type mbxrecord
    messageid As String * 4 '4 byte hex string &H007F007F - start of
message id
    messagenumber As Long   '4 byte binary number - message number
    messagesize As Long     '4 byte binary number - total size of the
message including the message header, message text and any optional
padding field
    msgtextsize As Long     '4 byte binary number - size of the
following message text
End Type
Dim msgtext As String       'character field, size specified in previous
field
'This includes the e-mail headers (e.g. From:, To:, etc.), and any
encoded attachments.
'you will need to make the record evenly divisible by 4 - see
messagesize in mbxrecord

Quote:

> I would like to know if anyone come help me with the following
>     File Format or VB or C++ sample for reading the address book of the
> above.

> Thanks
> zn



Fri, 15 Mar 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MS Outlook & OutLook Express - Address Book

2. Outlook / Outlook Express address books

3. Outlook / Outlook Express address books

4. Outlook / Outlook Express address books

5. How to access outlook express address book programatically?

6. How can i read outlook express address book (.WAB)

7. Address Book in Outlook Express

8. How to access Outlook Express Address Book?

9. How to access Outlook Express Address Book?

10. Outlook Express Address Book

11. Outlook Express (address book) and scripts ??

12. Exporting to address book in Outlook Express

 

 
Powered by phpBB® Forum Software