Author |
|
webchetan Newbie
Joined: 23 October 2006
Online Status: Offline Posts: 20
|
Posted: 16 November 2006 at 3:06pm | IP Logged
|
|
|
Alex - The sample.zip file is just the subject of the email. The original file is newdata.zip and Yes you won't be able to unpack/unzip it since the file is Encrypted!
All I want is how can we convert the Body part to MIME type or more easier...if I can downlaod the attachment (which currently is in binary format so to say in the body part of the message)
When I manually forward this incoming email to the same email it came from...some how MS Outlook converts the binary form to MIME type and then YES I am able to download the ZIP attachment.
Could you throw a light on this...
Thank you once again...
Sincerely,
Chetan A.Sharma
webchetan@gmail.com
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 16 November 2006 at 3:58pm | IP Logged
|
|
|
I mean we need the entire source of the message which does contain an attachment (in its body part).
MailBee.NET automatically detects and decodes such attachments (and they should not appear in the body text). But in your case they do appear. This may occur either due to using not the latest version or due to a quite specific format of such attachment (i.e. it's uuencoded in unusual way). Thus, if we get the entire source of the message with such attachment, I believe we'll be able to find out what happens. Thus, test_chetan.eml you already sent us is of no use since it contains only headers, no body part with embedded attachment. We need the entire message.
We'll save it to disk and open with MS Outlook Express first to make sure the attachment is there.
Then, we'll make sure MailBee.NET can also open it and detect the attachment properly (and make the necessary fix to the DLL if required).
Of course, you should NOT FORWARD the problem mail to us. You should SAVE it as .EML and then ATTACH it as .EML file to your reply. If you forwarded it, it would break the original formatting (for instance, the attachment would be converted to MIME).
Regards,
Alex
|
Back to Top |
|
|
webchetan Newbie
Joined: 23 October 2006
Online Status: Offline Posts: 20
|
Posted: 16 November 2006 at 4:13pm | IP Logged
|
|
|
Hi Alex - I have renamed the .EML to .EML_1 and have emailed you again. Please rename it back to .EML and double click the file chetan_test.EML
You should see that Outlook Express shows you the Attachment as newdata.zip file. Ofcourse you won't be able to unzip...as its encrypted...
Would appreciate your reply.
Thank you,
|
Back to Top |
|
|
webchetan Newbie
Joined: 23 October 2006
Online Status: Offline Posts: 20
|
Posted: 16 November 2006 at 4:54pm | IP Logged
|
|
|
Hi Alex - Any progress on the email file I sent accross? I am sure you were able to view the attachment.
Thaks for your outstanding help...Awaiting reply from your end.
Thank you!
|
Back to Top |
|
|
webchetan Newbie
Joined: 23 October 2006
Online Status: Offline Posts: 20
|
Posted: 16 November 2006 at 5:50pm | IP Logged
|
|
|
Hi All - Any helps with my above problem would be highly appreciated!
Thank you!
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 17 November 2006 at 9:06am | IP Logged
|
|
|
Thank you for the eml file you provided. The issue was caused by a bug in MailBee.NET Objects. We've fixed this bug. Please download the latest version of MailBee.NET.dll.
Best regards,
Andrew
|
Back to Top |
|
|
webchetan Newbie
Joined: 23 October 2006
Online Status: Offline Posts: 20
|
Posted: 17 November 2006 at 11:12am | IP Logged
|
|
|
Thanks Andrew - For your quick reply! I really appreciate it! Please hlp me out with the last issue...as below...
Btw I downloaded the latest version of MailBee.NET DLL and recompiled my project and it works fine with an Uuencoded attachment which is 1MB or < 1MB but there are 2 attachments in the email which have 1 attachment ofcourse but the size of the zip file is 5MB. Now here is where it takes a lot of time and finally I have to use Task Manager to END the Task.
Is there a size limit to what MailBee.NET object downloads or processes header.
I also used the New DLL you provided in the "MailBee.NET IMAP DEMO 2" where it shows the lis of messages after you click "Get List of Messages" and I put in the below criteria...
Code:
uids = CType(imp.Search(True, "SINCE 9-NOV-2006", Nothing), UidCollection)
|
|
|
Now all's fine here...but some how I wait ...and wait for long and have to END the task. I checked the email in Outlook and found that there are 2 emails as I mentioned before having attachment of size 5MB which MailBee.NET objects takes a lot of time and finally hangs.. but when I pull emails which are "NEW" (which basically doesn't process the emails which are old...since I received the 5MB attachment 5 days back) MailBee.NET objects processes the email quite well and downloads the attachments....without any issues...
Is the trial version of MailBee.NET objects limiting this?
Or is there a workaround? Can I trap errors or basically log errors and skip to the next email message in the list? if 1 of the email message is giving a problem? or is it still MailBee.NET objects BUG?
Thank you for the wonderful help Afterlogic has been..and thanks Alex...I am really grateful.
Would appreciate if you could help me here...as I am almost there...so that I can BUY this product...
Sincerely,
Chetan A. Sharma
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 17 November 2006 at 12:51pm | IP Logged
|
|
|
Please try the updated version 3.0.0.15 from http://www.afterlogic.com/updates/mailbee_net3.zip. It should process embedded UUE attachments much faster.
Regards,
Alex
|
Back to Top |
|
|
webchetan Newbie
Joined: 23 October 2006
Online Status: Offline Posts: 20
|
Posted: 17 November 2006 at 3:08pm | IP Logged
|
|
|
Bulls eye! Thanks Alex. It runs a bit faster and its able to read the Uuencoded messages. Is there a way I can trap errors and then skip to another message if something goes wrong when getting attachments?
Thx a bunch...
Chetan A. Sharma
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 18 November 2006 at 7:46am | IP Logged
|
|
|
You can use:
- try/catch statements to catch and process exceptions
- Imap.ErrorOccurred event to get notified about errors and warnings encountered by MailBee
- .Log property of Imap component to enable logging into a file (or memory)
All the techniques above are described and used in many samples in MailBee.NET documentation.
Regards,
Alex
|
Back to Top |
|
|