Once you setup Filename
property to point to mailbox file, you should call Lock
method to let wodMailbox actually open mailbox file, count
messages inside, and provides you with information about
it. After Lock is called, you cannot change Filename
property until you Unlock it
first.
You should think of Lock as method that opens file and
interactively access messages, as needed by your
application. Once this method is issued, all the changes to
the mailbox file in the background by 3rd application might
lead to misinterpretations made by wodMailbox, so you
shouldn't access same file using some other program.
wodMailbox keeps position and length of each message in
mailbox file, and if you try to change it somehow it may
lead to invalid mailbox contents to be saved once you call
Update
method.