Alaska Software Inc. - getContent() problem
Username: Password:
AuthorTopic: getContent() problem
Johan LammassaarigetContent() problem
on Mon, 22 Aug 2011 07:20:58 +0200
Hi,

I've made my own spam filter and its been running for couple of weeks 
without problems: But this weekend it encountered a message it could not 
handle: My routine, line 160,  is getting the content of the mail with 
"xTemp := oMimeMsg:getContent()" (it's actually the recvmail.prg from Asinet 
examples) and this brakes the program with xpperror.log stated below. Is 
this a bug with getContent()? Workaround?

Regards,

Johan Lammassaari



ERROR LOG of "R:\SpamFilt\SpamFilt.EXE" Date: 08/22/2011 06:58:11

Xbase++ version     : Xbase++ (R) Version 1.90.355
Operating system    : Windows Vista 06.01 Build 07601 Service Pack 1
------------------------------------------------------------------------------
oError:args         :
          -> VALTYPE: C VALUE: This is a multi-part message in MIME format.

------=_NextPart_000_4F34_01CC6047.36F40CD0
Content-Type: text/html;
charset="windows-1251"
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; 
charset=3Dwindows-1251">
<META content=3D"MSHTML 6.00.2900.3138" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgcolor="#ffffff" text="#000000">
<a href="http://zqidv.pillslkes.com?zkyrn"><img 
src="http://www.viagra.com/PublicResources/ContentAssets/1.0_p1.jpg"></a>
</BODY>
</HTML>

------=_NextPart_000_4F34_01CC6047.36F40CD0
          -> VALTYPE: N VALUE: 650
oError:canDefault   : N
oError:canRetry     : N
oError:canSubstitute: Y
oError:cargo        : NIL
oError:description  : Error in array index
oError:filename     :
oError:genCode      :          4
oError:operation    : <C of 649>[<650>]
oError:osCode       :          0
oError:severity     :          2
oError:subCode      :       1012
oError:subSystem    : BASE
oError:thread       :          1
oError:tries        :          0
------------------------------------------------------------------------------
CALLSTACK:
------------------------------------------------------------------------------
Called from MIMECONTENT:GETCONTENT(636)
Called from MIMEMESSAGE:GETCONTENT(74)
Called from RECEIVEMAIL(160)
Called from GETMAIL(126)
Called from SPAMFIX(83)
Called from SPAMSTART(62)
Called from MAIN(26)