Author |
|
brian.lai Newbie
Joined: 15 November 2011 Location: United States
Online Status: Offline Posts: 8
|
Posted: 12 January 2012 at 2:30pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 12 January 2012 at 11:07pm | IP Logged
|
|
|
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 |
|
|
brian.lai Newbie
Joined: 15 November 2011 Location: United States
Online Status: Offline Posts: 8
|
Posted: 13 January 2012 at 9:16am | IP Logged
|
|
|
5.9.2.201
|
Back to Top |
|
|
brian.lai Newbie
Joined: 15 November 2011 Location: United States
Online Status: Offline Posts: 8
|
Posted: 13 January 2012 at 11:12am | IP Logged
|
|
|
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 |
|
|
atamata Newbie
Joined: 02 April 2012
Online Status: Offline Posts: 15
|
Posted: 08 June 2012 at 2:30am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 08 June 2012 at 2:33am | IP Logged
|
|
|
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 |
|
|
atamata Newbie
Joined: 02 April 2012
Online Status: Offline Posts: 15
|
Posted: 08 June 2012 at 4:54am | IP Logged
|
|
|
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 |
|
|
atamata Newbie
Joined: 02 April 2012
Online Status: Offline Posts: 15
|
Posted: 08 June 2012 at 7:00am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 08 June 2012 at 7:17am | IP Logged
|
|
|
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 |
|
|
atamata Newbie
Joined: 02 April 2012
Online Status: Offline Posts: 15
|
Posted: 08 June 2012 at 8:46am | IP Logged
|
|
|
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 |
|
|