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 

TNMPOP3 object returns false attachement count

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder
View previous topic :: View next topic  
Author Message
Benoit
Guest





PostPosted: Tue Mar 13, 2007 11:34 pm    Post subject: TNMPOP3 object returns false attachement count Reply with quote



Has anyone experienced any issues related to the "MailMessage-
Quote:
Attachments->Count" property of the TNMPOP3 object? Anyways, I did. I
just found a bug. The makers of this object are off the map. Their

phone number is out of service.

Here is the following:

I have an e-mail sitting in my mailbox at the ISP. There are 4
attachments to it (4 JPG images).

If I telnet directly to my ISP's POP3 server, I can do RETR 1 and it
retrieves e-mail no. 1 and physically displaying on the screen the
contents of the attachements. If I make the command prompt buffer 9999
lines, I can see all 4 attachements without a problem by scrolling-up
through the lines.

I then use MS Outlook to download the e-mail and I in fact see all 4
attachements.

I then use a simple form with a TMemo, TButton and TNMPOP3 component.
When I click the button, I wait for the POP3 Connect event. When I get
this event, I count the mail, which returns 1 (and it should), then I
read the MailMessage->Attachments->Count property and it returns 3.
Then I call the Disconnect( ) method and I close the app.

This is the exact text returned in my TMemo:

POP3HostResolved
POP3Connect
Emails: 1
3 attachments
trig-1_3.jpg
trig+0_3.jpg
trig+1_3.jpg

POP3Disconnect

I set the DeleteOnRead property of the TNMPOP3 to false because when
my application closes, I then Telnet to my mail server again, type
RETR 1 and I see all 4 attachments. I then run Outlook and it
downloads all 4 attchments.

The problem I have is that this problem does not occur all the time. I
tried with more than 4 attachment in the e-mail and it works.
Sometimes 4 attachments will work. As I am writing this, I have the
setup in the "failing" mode so I can reproduce the problem at will. So
this is in fact a bug with the TNMPOP3 component.

If anyone has any idea, please let me know.

Thanks!

Benoit
Back to top
Benoit
Guest





PostPosted: Wed Mar 14, 2007 9:39 pm    Post subject: Re: TNMPOP3 object returns false attachement count Reply with quote



On Mar 13, 2:34 pm, "Benoit" <benoit.st.j...@videotron.ca> wrote:
Quote:
Has anyone experienced any issues related to the "MailMessage->Attachments->Count" property of theTNMPOP3object? Anyways, I did. I

just found a bug. The makers of this object are off the map. Their
phone number is out of service.

Here is the following:

I have an e-mail sitting in my mailbox at the ISP. There are 4
attachments to it (4 JPG images).

If I telnet directly to my ISP's POP3 server, I can do RETR 1 and it
retrieves e-mail no. 1 and physically displaying on the screen the
contents of the attachements. If I make the command prompt buffer 9999
lines, I can see all 4 attachements without a problem by scrolling-up
through the lines.

I then use MS Outlook to download the e-mail and I in fact see all 4
attachements.

I then use a simple form with a TMemo, TButton andTNMPOP3component.
When I click the button, I wait for the POP3 Connect event. When I get
this event, I count the mail, which returns 1 (and it should), then I
read the MailMessage->Attachments->Count property and it returns 3.
Then I call the Disconnect( ) method and I close the app.

This is the exact text returned in my TMemo:

POP3HostResolved
POP3Connect
Emails: 1
3 attachments
trig-1_3.jpg
trig+0_3.jpg
trig+1_3.jpg

POP3Disconnect

I set the DeleteOnRead property of theTNMPOP3to false because when
my application closes, I then Telnet to my mail server again, type
RETR 1 and I see all 4 attachments. I then run Outlook and it
downloads all 4 attchments.

The problem I have is that this problem does not occur all the time. I
tried with more than 4 attachment in the e-mail and it works.
Sometimes 4 attachments will work. As I am writing this, I have the
setup in the "failing" mode so I can reproduce the problem at will. So
this is in fact a bug with theTNMPOP3component.

If anyone has any idea, please let me know.

Thanks!

Benoit

*************** UPDATE ***************
It seems that after further testing, I've discovered that the TNMPOP3
object returns one less attachment count than the actual number of
attachments:

I've tested by sending 8 attachments: outlook reported 8, TNMPOP3
reported 7
I've tested by sending 7 attachments: outlook reported 7, TNMPOP3
reported 6
I've tested by sending 6 attachments: outlook reported 6, TNMPOP3
reported 5
I've tested by sending 1 attachments: outlook reported 1, TNMPOP3
reported 0

So, it seems that the problem is related to the attachments names as
they come-in in a string of text separated by I believe a semi-colon.
Since the TNMPOP3 objects uses Telnet commands in its underlying code
to access the mail server and there is no apparent POP command to
"ask" the mail server how many attachments are part of a specific e-
mail, the TNMPOP3 object most likely parses the string of text
containing the names of the attachments but does it erratically. I
will do further testing to prove this theory.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder 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.