Dart Home | PowerTCP Mail for ActiveX | Custom Development | Reply | PowerTCP Mail for ActiveX Topics | Forums |
Author | Forum: PowerTCP Mail for ActiveX Topic: Attached file renamed in "filename" in the attachment directory |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 7, 2014 8:41 AM Hello, We use PowerTCP MAIL for ActiveX version 2.11 and it works well. However, in one case, when we get a mail (with the get method), the attached file is renamed. Its name is "SYSOUT_FILE.TXT" in the mailbox and in the Attachment Directory the file is named "filename". Is it a known issue ? I searched but i didn't found. More information : - The mail is generated by a software called "Control M" - We have the issue with all mails from "Control M". - If we manually check the mail in the mailbox before PowerTCP gets it, it works fine. - It's not impossible that in the attachment directory there is already a "SYSOUT_FILE.TXT". I checked if it was a problem but as i could see it worked well, the file was renamed "SYSOUT_FILE(1).TXT". - Though the file is renamed and we lose the extension "TXT", the contents of the file is fine. Thanks for helping (and sorry for my language mistakes, i'm french...) |
Jamie Powell (Admin) From: Rome, NY USA Posts: 448 Member Since: 03/13/07 Extra Support Options Custom Application Development |
posted March 7, 2014 12:18 PM Hello, The sending application is most likely incorrectly setting the filename header; can you send an example email including your product key (serial number) into support@dart.com for confirmation? |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 10, 2014 4:35 AM Hello, E-mail sent to support... Thanks |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted March 10, 2014 11:40 AM Hello, Thank you for sending in the email. I examined your email and it is not malformed, and I uploaded it to a test server and retrieved it with our included IMAP Client sample, and was able to see the correct 'SYSOUT_FILE.TXT' filename in Windows Explorer in Imap1.AttachmentDirectory, and under the Part.Name property. Does your issue occur with our included IMAP Client sample? You stated that "If we manually check the mail in the mailbox before PowerTCP gets it, it works fine"; can you expand on this? What are you doing to 'manually check the mail'? Your server may be sending different data before and after you 'manually check the mail'; can you send in your logs? Our included IMAP Client sample will generate a 'PowerTCP IMAP Client.log' in the sample directory as it runs; (delete the file if it already exists, then) please get the message before you 'manually check the mail', backup the log file, delete the one in the sample directory, then 'manually check the mail', get the message with the sample again, and send in the two log files into support@dart.com so that I can compare the two scenarios. You may want to remove your login credentials from the beginning of the logs before sending them in. ------ |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 11, 2014 6:41 AM Hello Nick, This case is very strange... By checking an email, i wanted to say we made some tests : if we open, tranfer, manually send the mail before his integration by our tool (which uses PowerTCP), the attached file is fine. I think your tool is working well and the problem is more about the tool which send the email, but I can't know why. And it's hard to make tests because all this is in production, we can't stop it easily. I hope that would be an known issue or you could say by parsing your code if there is a place where attached files are renamed :-) Maybe I could try this : we could parameter the software "Control M" to send you directly an email on your test mailbox so you could see what happens. Would it be possible or do you prefer i try to test with your IMAP Client sample ? Thanks for your help. |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted March 11, 2014 9:36 AM If we should be able to reproduce the issue by the email that your application sends in, then you should send it in. If it specific to your email server, then we will need to look into some other options. Can you clarify "if we open, tranfer, manually send the mail before his integration by our tool (which uses PowerTCP), the attached file is fine" further? ------ |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 11, 2014 11:15 AM Hard to clarify. Maybe i am wrong but I guess that the software "Control M" sends bad formatted email and when we open it (or transfer...) with a mail client, the email is re-formatted or encapsulated correctly and then there is no problem with the attached file, we get it with its name. In my idea, I think you could reproduce the issue only if you don't touch it with a mail client. But I am not expert, maybe my idea is stupid... If we want to test it, i will need one of your test mailbox address, because if you transfer it, the mail will be re-formatted no ? |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted March 11, 2014 12:08 PM Yes, downloading the email with a third-party utility will likely parse and reformat its contents, resulting in losing the cause of the issue. If you can send us the log file generated by our Imap Client sample (if using it can reproduce your issue) into support@dart.com, that should include the raw data containing the cause of the issue, and we can examine that to check if the email coming from 'Control M' is malformed. ------ |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 11, 2014 12:17 PM Ok, I try this. |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 17, 2014 6:42 AM 2 mails have been sent to support@dart.com |
Nick B (Admin) From: Utica, NY USA Posts: 619 Member Since: 05/25/10 Extra Support Options Custom Application Development |
posted March 17, 2014 9:37 AM Thank you for sending in the emails. Your sending application is populating the Content-Type 'name' field as "filename", which we are using to populate the filename on disk. I have entered this as TTWeb 5731, for information or updates on its status, please contact sales@dart.com. As a workaround, you can parse the 'real' filename out of the Content-Disposition header to rename the file. ------ |
matimote From: France Posts: 9 Member Since: 03/07/14 |
posted March 17, 2014 10:22 AM Ok Nick, thanks a lot. |
Reply | PowerTCP Mail for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |