View Single Post
  #7  
Old February 15th 06, 08:45 PM posted to microsoft.public.outlook.program_vba
emanson
external usenet poster
 
Posts: 13
Default Move .DeleteAfterSubmit not working (outlook 98)

I call a move because I want the email, with its now applied audit tags,
moved from the inbox to the sent mail folder. Is there another way I can
accomplish this without a copy of the email being written to any other folder?

Above I issue a send command with DeleteAfterSubmit = true to send the
actual response to the customer. If I left the DeleteAfterSubmit = false it
writes a copy to the personal sent items folder of the handling agent.

So I just want to move the email from the inbox to the sent items folder of
the account in which the associates are currently working. If I issue a copy
command it writes to the specified sent items folder but leaves the email in
the inbox. If I then issue a delete command it writes a copy to the personal
deleted items folder for the associate who worked the email.

Thanks for your help with this!
Ed

"Dmitry Streblechenko" wrote:

Why do you call Move? It is a function returning new item; the original
mesasge must be immediately relased, much less sent.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"emanson" wrote in message
...
Hello,

Any ideas why in the following the .DeleteAfterSubmit command does not
work?

With itm
.SentOnBehalfOfName = emailaccountname
.To = UserSender
.Unread = True
.VotingResponse = ReasonCode
.Body = UserBody
.Subject = UserSubject
.RemoteStatus = AgentCode
.Mileage = AuditInfo & "," & Date & " " & Time
.FlagRequest = ServerTime
.DeleteAfterSubmit = True
.Move
End With

The code still writes the moved message to the personal namespace delete
folder of the user running the vb6.0 application?




Ads