[MAPI_W_PARTIAL_COMPLETION(40680)]

G

George Hester

Am now getting this error using CDO in Windows 2000 SP4. It is error #2664
with description MAPI_W_PARTIAL_COMPLETION(40680) source is Collaboration
Data Objects. I have this in ThiOutlookSession class module in the Item_Add
event:

objCDO.Delete
If Err <> 0 Then
MsgBox "The error gets written here
End If

This is ONLY happening with one type of e-mail at the moment. It is a
Viagra Spam that has no links in it other than mailto links. Again I'll
repeat this is ONLY happening with ONE type of email as I described above.
MANY others I get get caught in this statement objCDO.Delete and there is no
issue.

Has anyone noticed this error lately. Does anyone know what it means?
Could you construct an e-mail message that would cause this error using the
above statement? Thanks.
 
G

George Hester

Outlook 2002. SP2 Windows 2000 Professional SP4 Office XP SP2 MSDE SP3

"Also, try delete True, True" - TR

?

Like this:

objCDO.Delete True, True

?

Thanks.

--
George Hester
__________________________________
Tom Rizzo said:
Which version of Outlook? Also, try delete True, True.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp


George Hester said:
Am now getting this error using CDO in Windows 2000 SP4. It is error #2664
with description MAPI_W_PARTIAL_COMPLETION(40680) source is Collaboration
Data Objects. I have this in ThiOutlookSession class module in the Item_Add
event:

objCDO.Delete
If Err <> 0 Then
MsgBox "The error gets written here
End If

This is ONLY happening with one type of e-mail at the moment. It is a
Viagra Spam that has no links in it other than mailto links. Again I'll
repeat this is ONLY happening with ONE type of email as I described above.
MANY others I get get caught in this statement objCDO.Delete and there
is
 
G

George Hester

If the word Viagra appears in a email message it gets caught in this
obj.Delete. I remove comments so that I catch Viagra if it is camouflaged by
comments <!-- -->. If it is camouflged by bogus tags such as <Imabogustag>
then it won't catch it but it does if explicitly viagra or
v<!lll-->i<!--kkk-->a<!--yyy-->g<!--ppp--:>r<!--ooo-->a it will catch that
too.

I have another way this statement will catch the email. If there is a link
of the form http://###.###.###.### where ###.###.###.### is an IP address
like 208.113.45.56 it will catch that and here I do NOT get this
MAPI_PARTIAL error. Only on this ONE email. The viagra isn't even
camouflaged. This is the test that is bringing the email into the statment
obj.Delete.

Oh I can replicate this each and every time.

--
George Hester
__________________________________
Tom Rizzo said:
Which version of Outlook? Also, try delete True, True.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp


George Hester said:
Am now getting this error using CDO in Windows 2000 SP4. It is error #2664
with description MAPI_W_PARTIAL_COMPLETION(40680) source is Collaboration
Data Objects. I have this in ThiOutlookSession class module in the Item_Add
event:

objCDO.Delete
If Err <> 0 Then
MsgBox "The error gets written here
End If

This is ONLY happening with one type of e-mail at the moment. It is a
Viagra Spam that has no links in it other than mailto links. Again I'll
repeat this is ONLY happening with ONE type of email as I described above.
MANY others I get get caught in this statement objCDO.Delete and there
is
 
D

Dmitry Streblechenko

Does the message actually get deleted? Note that this is a noncritical error
(since it is <0x80000000) and can be safely ignored in most cases.
This usualy happens if there is an outstanding reference to the message or
one of its subobjects (e.g. attachment) when Delete is called.

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

George Hester

No it does not get deleted. It goes to the Delete folder but does not get
deleted entirely. It should though. I think what is happening is the email
is being sent to the Delete Folder in the Item_Add method but in that metod,
the email continues on and then hits where I try to delete it entirely from
the Inbox. Since it has been sent to the Delete folder already I get the
error. Sound reasonable?

--
George Hester
__________________________________
Dmitry Streblechenko said:
Does the message actually get deleted? Note that this is a noncritical error
(since it is <0x80000000) and can be safely ignored in most cases.
This usualy happens if there is an outstanding reference to the message or
one of its subobjects (e.g. attachment) when Delete is called.

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


George Hester said:
Am now getting this error using CDO in Windows 2000 SP4. It is error #2664
with description MAPI_W_PARTIAL_COMPLETION(40680) source is Collaboration
Data Objects. I have this in ThiOutlookSession class module in the Item_Add
event:

objCDO.Delete
If Err <> 0 Then
MsgBox "The error gets written here
End If

This is ONLY happening with one type of e-mail at the moment. It is a
Viagra Spam that has no links in it other than mailto links. Again I'll
repeat this is ONLY happening with ONE type of email as I described above.
MANY others I get get caught in this statement objCDO.Delete and there
is
 
D

Dmitry Streblechenko

Yes, if you are trying to delete message from one of Outlook callbacks (such
as Item_Add), Outlook can get very confused. As a workaround, you might want
to simply add the entry id to a list, then use a timer to look at the list
and delete all all message every once in a while.

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


George Hester said:
No it does not get deleted. It goes to the Delete folder but does not get
deleted entirely. It should though. I think what is happening is the email
is being sent to the Delete Folder in the Item_Add method but in that metod,
the email continues on and then hits where I try to delete it entirely from
the Inbox. Since it has been sent to the Delete folder already I get the
error. Sound reasonable?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top