idpop3 接受邮件的问题(50分)

拥有

Unregistered / Unconfirmed
GUEST, unregistred user!
碰到一个问题:for y:=0 to pred(Msg.MessageParts.Count)do

在邮件只有正文没有附件的情况下
pred(Msg.MessageParts.Count)的值显示为 -1 不能进入循环
直接用Msg.MessageParts.Count 则
f (msg.MessageParts.Items[y] is TidAttachment) then
判别时出错!
望给予指点。
 

Similar threads

S
回复
0
查看
796
SUNSTONE的Delphi笔记
S
S
回复
0
查看
797
SUNSTONE的Delphi笔记
S
S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
959
SUNSTONE的Delphi笔记
S
顶部