wodMailbox ActiveX Control - MailInfo Property
      
 

Description

Holds info about sender of the message.


Property type

A String value.  


Syntax

object.MailInfo [= value]



The MailInfo Property syntax has these parts:

Part Description
object An expression evaluating to an object of type Message.
value A String value.

Remarks

Once you access your mailbox, you will find that MailInfo property contains only one line of text. If you look at mailbox file from Notepad, you will notice this is actually the line that's preceding message body contents.

UNIX mailboxes always keep messages sequenced in following form:

From sender date
.... message headers ...

... message text ...

From anotherserver anotherdate
... message headers ...

... message text ...

As you might notice, before actual message headers there's one line that is added by your SMTP server and is used for separating messages. Contents of this line is stored in MailInfo property. When mailbox contents is recreated using Update method, this line is written back to mailbox. If you change it, mailbox contents will change also, and it's possible that it will not be property readable next time it's opened - so try to be careful if you change this property.

If message has several parts, and Message.MailInfo property you're refering to is actually mbox.Message(index).Parts(index2).MailInfo, then MailInfo can hold boundary value for owning message. In this case *do not change this line* because you will destroy message and it's parts may be 'glued' together.