Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: Body with multipart Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Giampaolo
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 26 July 2005 at 6:44am | IP Logged Quote Giampaolo

We need to save the messages on the database and we wolud like to know if with IMAP it is possible to have all the messages completed with all their multipart.

Thanks
Back to Top View Giampaolo's Profile Search for other posts by Giampaolo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 July 2005 at 8:57am | IP Logged Quote Alex

You can get the entire source of a message received from IMAP4 (or from POP3) using .RawBody property of Message object. It returns a string containing message source with all headers, multiparts, etc.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Giampaolo
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 28 July 2005 at 11:59am | IP Logged Quote Giampaolo

If i send a message with SMTP object and then i read the message with IMAP, i can't have the multiparts...using RawBody.
If i send an outlook message, the IMAP object read the message with multiparts.
How can i do?

Thanks
Back to Top View Giampaolo's Profile Search for other posts by Giampaolo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 28 July 2005 at 12:10pm | IP Logged Quote Alex

It just meams the message you sent with SMTP was not multipart. This is normal if the message does not contain any attachments or alternative html and plain text body.

Multipart message is only special case of a mail message. Messages may be or may not be multipart depending on situation.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Giampaolo
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 28 July 2005 at 12:22pm | IP Logged Quote Giampaolo

I send the same multipart message with SMTP object and outlook and the result is different.
In the mail sent with outlook i have the multiparts.

Regards,
Giampaolo
Back to Top View Giampaolo's Profile Search for other posts by Giampaolo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 28 July 2005 at 1:03pm | IP Logged Quote Alex

You said you send multi-part message with SMTP but it's not multi-part. I'm afraid I didn't understand this correctly. How do you know the message you sent with SMTP is multipart if it's not multipart when you then received it? And are you sure you received the same message you sent? Maybe another message (such as bounced message telling about delivery error) arrives into mailbox instead of actual message or something like that.

When you save message which was sent by SMTP object to a file, is it multipart or not? E.g.:

SMTP.Send
SMTP.Message.SaveMessage "C:\1.eml"

If this 1.eml is not multipart, it just means you created non-multipart message with SMTP object.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Giampaolo
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 29 July 2005 at 2:55am | IP Logged Quote Giampaolo

It's multipart!
Another info: i use Outlook and Exchange 2003.
I send a multipart message...i'm sure. When i receive it...

Set oMsg = oIMAP.RetrieveSingleMessage(lUID, True)
sMessage = oMsg.RawBody

...sMessage don't contain multiparts.

Regards
Giampaolo
Back to Top View Giampaolo's Profile Search for other posts by Giampaolo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 29 July 2005 at 9:01am | IP Logged Quote Alex

Please send us example of messages (as .eml files) you're sending. For example, create multipart message with Outlook, then receive it with Outlook Express, save it in 1.eml file. Take a look into the file to make sure it's multipart.

Now receive the SAME message with MailBee and save it sa 2.eml (you can use Message.SaveMessage method for this).
If this message looks different (not multipart), please send us both 1.eml and 2.eml to support@afterlogic.com for examination.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide