Hello everybody,

[I am new to this list - if there is a searchable archive of this list
then please let me know, I might find there the answer to the
following questions]

I'm writing a small program (in Delphi) which helps me to export all
TheBat! Mailboxes in one go (recursively stepping down the folders and
calling TheBat! with the /export command line)(to mbox format as used
by KMail).

However I encountered a problem: empty mailboxes/folders. To be
precise: if a mailbox/folder once contained messages which have been
deleted in the meantime, the files Messages.tbb and Messages.tdi are
present. But because they contain no messages, the /export command
outputs no file. The target system, however, expects an empty mbox
file in this case.

I see two possible solutions:

1) Check if the Messages.tbb/Messages.tdi files contain any messages.
That means that I have to understand the format of these files (which
might be a good idea anyhow ;-) So, is there a specification I could
have look at?

2) Call TheBat! with the /export command and then check if there is
any output. The difficulty here is that TheBat! returns almost
immediatly even if it is still working on the command. Where do I get
a clue that TheBat! has completed its export?

Any help is very appreciated.

Jens Wolk

-- 
[EMAIL PROTECTED]

Jens Wolk
Torfstrasse 19
D-13353 Berlin

+49 (030) 440 173 18



-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to