| View previous topic :: View next topic |
| Author |
Message |
[ Eduardo Tavares ] Guest
|
Posted: Fri Feb 20, 2004 3:54 pm Post subject: Problems with tidmessage INDY |
|
|
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
|
Posted: Fri Feb 20, 2004 9:03 pm Post subject: Re: Problems with tidmessage INDY |
|
|
"[ 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
|
Posted: Sat Feb 21, 2004 6:07 am Post subject: Re: Problems with tidmessage INDY |
|
|
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
|
Posted: Sat Feb 21, 2004 8:48 am Post subject: Re: Problems with tidmessage INDY |
|
|
"[ 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
|
Posted: Sat Feb 21, 2004 2:39 pm Post subject: Re: Problems with tidmessage INDY |
|
|
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 |
|
 |
|