Looping through mailbox file (wodWebServer / wodWebServer.NET)
I'm trying to insert a header into about 2300 messages. This is a Thunderbird folder. VB keeps crashing, Outlook also. Is it my code or limitations of WodMailbox?
[code]Sub InsertMessageIdHeader()
Dim oMailbox As wodMailboxCom
Set oMailbox = New wodMailboxCom
oMailbox.FileName = C:TestSent
oMailbox.Lock
For Each oMessage In oMailbox.Messages
If oMessage.Headers.Exists( Date ) And _
Not oMessage.Headers.Exists( Message-Id ) Then
oMessage.Headers.Add Message-Id , oMessage.Headers( Date )
End If
Next oMessage
oMailbox.Update
oMailbox.Unlock
End Sub[/code]
Complete thread:
- Looping through mailbox file - Joey, 2009-03-16, 03:32
- Re: Looping through mailbox file - Joey, 2009-03-16, 03:36
- Re: Looping through mailbox file - wodDamir, 2009-03-16, 08:56
- Re: Looping through mailbox file - Joey, 2009-03-16, 18:31
- Re: Looping through mailbox file - woddrazen, 2009-03-16, 18:49
- Re: Looping through mailbox file - Joey, 2009-03-16, 18:54
- Re: Looping through mailbox file - woddrazen, 2009-03-16, 19:04
- Re: Looping through mailbox file - Joey, 2009-03-16, 19:31
- Re: Looping through mailbox file - woddrazen, 2009-03-16, 22:21
- Re: Looping through mailbox file - Joey, 2009-03-16, 19:31
- Re: Looping through mailbox file - woddrazen, 2009-03-16, 19:04
- Re: Looping through mailbox file - Joey, 2009-03-16, 18:54
- Re: Looping through mailbox file - woddrazen, 2009-03-16, 18:49
- Re: Looping through mailbox file - Joey, 2009-03-16, 18:31
- Re: Looping through mailbox file - wodDamir, 2009-03-16, 08:56
- Re: Looping through mailbox file - Joey, 2009-03-16, 03:36