BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problems with tidmessage INDY

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
[ Eduardo Tavares ]
Guest





PostPosted: Fri Feb 20, 2004 3:54 pm    Post subject: Problems with tidmessage INDY Reply with quote



Untitled DocumentUntitled DocumentHi!
I am having this problem for the couple of months but I coudnt fix it yet.
I had this same code working and after I formatted my HD it doesnt work
anymore.
This line:
idMsg := TidMessage.Create(Self);
idMsg.Clear;
Mail.Retrieve(nMsg,idMsg);
for x := 0 to idMsg.MessageParts.Count -1 do//this line always shows 0
The App needs to block any email that has an attachment that is saved in my
database.
So my app check each email for an attach and if it is in my DB.
But even if the email has an attach it never gets deleted because of that
line is always 0.

Can You help me?

Thank You!
Eduardo TAvares
Delphi Developer - ICQ:155-386-256
www.EduardoTavares.com.br


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Feb 20, 2004 9:03 pm    Post subject: Re: Problems with tidmessage INDY Reply with quote




"[ Eduardo Tavares ]" <davares (AT) earthlink (DOT) net> wrote


Quote:
for x := 0 to idMsg.MessageParts.Count -1 do//this line always shows 0

Then the message is non MIME-encoded to begin with, or you have the
TIdMessage.NoDecode property set to True instead of False.


Gambit



Back to top
[ Eduardo Tavares ]
Guest





PostPosted: Sat Feb 21, 2004 6:07 am    Post subject: Re: Problems with tidmessage INDY Reply with quote



i'm creating idmessage at runtime
thx
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote

Quote:

"[ Eduardo Tavares ]" <davares (AT) earthlink (DOT) net> wrote in message
news:40362dae (AT) newsgroups (DOT) borland.com...

for x := 0 to idMsg.MessageParts.Count -1 do//this line always shows
0

Then the message is non MIME-encoded to begin with, or you have the
TIdMessage.NoDecode property set to True instead of False.


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Feb 21, 2004 8:48 am    Post subject: Re: Problems with tidmessage INDY Reply with quote


"[ Eduardo Tavares ]" <davares (AT) earthlink (DOT) net> wrote

Quote:
i'm creating idmessage at runtime

What I said earlier still applies. Either NoDecode is True, or the message
is not encoded to begin with. When the MessageParts.Count is 0, you need to
look at the Body property instead for the message content. If it contains
data that you expect should be in the MessageParts instead, then you need to
post that message data so that someone can trace through it to see why it
didn't make it in the MessageParts.


Gambit



Back to top
[ Eduardo Tavares ]
Guest





PostPosted: Sat Feb 21, 2004 2:39 pm    Post subject: Re: Problems with tidmessage INDY Reply with quote

Can You send me an example?
"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> wrote

Quote:

"[ Eduardo Tavares ]" <davares (AT) earthlink (DOT) net> wrote in message
news:4036f5b4$1 (AT) newsgroups (DOT) borland.com...
i'm creating idmessage at runtime

What I said earlier still applies. Either NoDecode is True, or the
message
is not encoded to begin with. When the MessageParts.Count is 0, you need
to
look at the Body property instead for the message content. If it contains
data that you expect should be in the MessageParts instead, then you need
to
post that message data so that someone can trace through it to see why it
didn't make it in the MessageParts.


Gambit





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.