Re: Looping through mailbox file (General questions)
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.LockFor 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.UnlockEnd Sub[/code]
Apparently the code tag strips out backslashes. That was C:TestSent , Sent being the file I'm attempting to alter.
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