Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Attachment.IsFile inconsistent Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 12 January 2012 at 2:30pm | IP Logged Quote brian.lai

We are using MailBee to process attachments and it's almost random, but the Attachment.IsFile boolean seems inconsistent. Not very often, but every now and then we will process files and we use the IsFile boolean on the attatchment object. Sometimes the attachment that's attached to the email comes back and IsFile is False, when we send in this exact same file and email, most of the times the 2nd time around IsFile comes back as true. We are just sending in XLS and PDF files majority of the time.

Is anybody else having similar issues to this?
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 12 January 2012 at 11:07pm | IP Logged Quote Igor

What version of the DLL is currently used?

If you require assistance from AfterLogic team directly, using our HelpDesk is recommended.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 13 January 2012 at 9:16am | IP Logged Quote brian.lai

5.9.2.201
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 13 January 2012 at 11:12am | IP Logged Quote brian.lai

I've signed up for a 30 day free trial to your latest version and am trying it out for the time being. I will keep you posted on if the .IsFile bug still happens.
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
atamata
Newbie
Newbie


Joined: 02 April 2012
Online Status: Offline
Posts: 15
Posted: 08 June 2012 at 2:30am | IP Logged Quote atamata

We also had this issue and we are using 7.1.4.348 in a windows service. On a development machine this property worked fine but when deployed onto a server it failed for almost every message.
Back to Top View atamata's Profile Search for other posts by atamata
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 08 June 2012 at 2:33am | IP Logged Quote Igor

Can the issue be reproduced with any specific email message, so that the combination of the same code, same message and same DLL version show different behavior on different machines?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
atamata
Newbie
Newbie


Joined: 02 April 2012
Online Status: Offline
Posts: 15
Posted: 08 June 2012 at 4:54am | IP Logged Quote atamata

Igor wrote:
Can the issue be reproduced with any specific email message, so that the combination of the same code, same message and same DLL version show different behavior on different machines?

--
Regards,
Igor, AfterLogic Support


Hi, I'm working through a way of testing this and will let you know how I get on, see related topic.
Back to Top View atamata's Profile Search for other posts by atamata
 
atamata
Newbie
Newbie


Joined: 02 April 2012
Online Status: Offline
Posts: 15
Posted: 08 June 2012 at 7:00am | IP Logged Quote atamata

atamata wrote:
Igor wrote:
Can the issue be reproduced with any specific email message, so that the combination of the same code, same message and same DLL version show different behavior on different machines?

--
Regards,
Igor, AfterLogic Support


Hi, I'm working through a way of testing this and will let you know how I get on, see related topic.



it appears the ones for which IsFile returns false are attachments for which IsInline is True, and vice-versa, is this expected behaviour?

many thanks
Back to Top View atamata's Profile Search for other posts by atamata
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 08 June 2012 at 7:17am | IP Logged Quote Igor

Quote:
it appears the ones for which IsFile returns false are attachments for which IsInline is True, and vice-versa, is this expected behaviour?


While this could certainly happen this way, there's no strict match between those two. Certain attachments can only be represented as files (e.g. ZIP archives), while some can be either file or inline (JPEG image). In order to understand why the attachment is treated as file or inline, it's necessary to study headers of the attachments, first of all "Content-Disposition" and "ContentID" headers.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
atamata
Newbie
Newbie


Joined: 02 April 2012
Online Status: Offline
Posts: 15
Posted: 08 June 2012 at 8:46am | IP Logged Quote atamata

Igor wrote:
Quote:
it appears the ones for which IsFile returns false are attachments for which IsInline is True, and vice-versa, is this expected behaviour?


While this could certainly happen this way, there's no strict match between those two. Certain attachments can only be represented as files (e.g. ZIP archives), while some can be either file or inline (JPEG image). In order to understand why the attachment is treated as file or inline, it's necessary to study headers of the attachments, first of all "Content-Disposition" and "ContentID" headers.

--
Regards,
Igor, AfterLogic Support


Hi and thanks for your input. I haven't studied the headers yet but it is actually ZIP archives for which the IsFile is giving False and IsInline giving True. I hope to have a further look at this next week
Back to Top View atamata's Profile Search for other posts by atamata
 

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