Google mail and Yahoo mail web interfaces break the message layout (not Hotmail)

May 20, 2008 at 3:18 PM
I tried sending file "Vision_and_Requirments" by adding it in my package. I was successful in adding and sending the file.
However when I opened the received file, I had a link to open the attachment. Link was as shown,

<ftp://192.168.0.100/download/d9444db61ac740cf848478f0572d6595/Vision_and_Re

This is not the complete link as some part of the file name  is missing. Hence I get error and am not able to open the link.

The  last part of the link should be included in the link "quirements.docx> "

If I check in the FTP Site whether the file is uploaded.It is there. When I give complete link I am able to open the file.


If I try sending file which fits in single line of the link, I am able to open it.

EX: ftp://192.168.0.100/download/d9444db61ac740cf848478f0572d6595/Error.bmp


Coordinator
May 20, 2008 at 3:49 PM
Edited May 20, 2008 at 5:26 PM
Ganesh,

What do you mean by "However when I opened the received file, I had a link to open the attachment."? Do you mean the links in the email body or the links in the .velodoc file attachment? I assume the links in the email body.

I have only made one trial with Outlook 2003 (with HTML Email but WordMail disabled in Tools->Options->MailFormat) on Windows Server 2003 and I cannot reproduce your bug:

When I open the source of the email body (right-click on message body + contextual menu View Source), I get:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>

<META content="MSHTML 6.00.6000.16640" name=GENERATOR></HEAD>
<BODY>
<TABLE width="100%" border="0" cellpadding="8" cellspacing="0" style="border: solid 1px #FF6600; background-color: #F3F3F3;"><TBODY><TR><TD width="5%" valign="top"><IMG src="cid:--#package16@e878c7662e8a47bb888db680ea6c0484" alt="This package has been sent with Velodoc. To edit .velodoc files or send large files from Outlook, please download Memba Velodoc Outlook Add-in from http://www.velodoc.com/download." width="16" height="16"></TD><TD width="95%" valign="top"><SPAN style="font-size: x-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">This package has been sent with Velodoc. To edit .velodoc files or send large files from Outlook, please download Memba Velodoc Outlook Add-in from http://www.velodoc.com/download.</SPAN></TD></TR></TBODY></TABLE><DIV>&nbsp;</DIV>

<DIV><SPAN class=543515815-20052008><FONT face=Arial
size=2>test</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV><DIV style="font-size: x-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">The attached package contains links to download the following files:</DIV>
<TABLE width="100%" border="0" cellpadding="3" cellspacing="0"><TBODY><TR><TD width="5%" valign="top" style="border-top: solid 1px #FF6600; background-color: #E6E6E6;"><IMG src="cid:--#Microsoft Office Word 2007 Document@e878c7662e8a47bb888db680ea6c0484" alt="Vision_and_Requirements.docx (67.0 KB)"width="16" height="16"></TD><TD width="95%" valign="top" style="border-top: solid 1px #FF6600; background-color: #E6E6E6;"><A HREF="ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/Vision_and_Requirements.docx" style="font-size: x-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">Vision_and_Requirements.docx (67.0 KB)</A></TD></TR><TR><TD width="5%" valign="top" style="border-top: solid 1px #FF6600; background-color: #F3F3F3;"><IMG src="cid:--#Microsoft Word Document@e878c7662e8a47bb888db680ea6c0484" alt="Customer Satisfaction Form.doc (31.0 KB)"width="16" height="16"></TD><TD width="95%" valign="top" style="border-top: solid 1px #FF6600; background-color: #F3F3F3;"><A HREF="ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/Customer%20Satisfaction%20Form.doc" style="font-size: x-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">Customer Satisfaction Form.doc (31.0 KB)</A></TD></TR><TR><TD width="5%" valign="top" style="border-top: solid 1px #FF6600; background-color: #E6E6E6;"><IMG src="cid:--#Microsoft Word Document@e878c7662e8a47bb888db680ea6c0484" alt="FileUpload Progress Bar without HttpModule.doc (34.0 KB)"width="16" height="16"></TD><TD width="95%" valign="top" style="border-top: solid 1px #FF6600; background-color: #E6E6E6;"><A HREF="ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/FileUpload%20Progress%20Bar%20without%20HttpModule.doc" style="font-size: x-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">FileUpload Progress Bar without HttpModule.doc (34.0 KB)</A></TD></TR><TR><TD width="5%" valign="top" style="border-top: solid 1px #FF6600; border-bottom: solid 1px #FF6600;background-color: #F3F3F3;"><IMG src="cid:--#Microsoft Word Document@e878c7662e8a47bb888db680ea6c0484" alt="JasperOverview.doc (109.0 KB)"width="16" height="16"></TD><TD width="95%" valign="top" style="border-top: solid 1px #FF6600; border-bottom: solid 1px #FF6600;background-color: #F3F3F3;"><A HREF="ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/JasperOverview.doc" style="font-size: x-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">JasperOverview.doc (109.0 KB)</A></TD></TR></TBODY></TABLE>
<DIV style="font-size: xx-small; font-family: Geneva, Arial, Helvetica, sans-serif; color:#000000;">There are several possible reasons for broken links. If a link is not working, please try it again after some time. Thank you.</DIV>
</BODY></HTML>


And the DebugView trace is:

TransferInfo: Status changed Pending->Managed
TransferCommand: Transfer managed
TransferCommand: Iterating through TransferFile objects of a non-compressed TransferPackage
TransferCommand: C:\Documents and Settings\jlchereau\Desktop\Vision_and_Requirements.docx exists
FTPPlugIn: Remote file = ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/Vision_and_Requirements.docx
TransferCommand: Remote file, content length and content type set
TransferCommand: C:\Documents and Settings\jlchereau\Desktop\Customer Satisfaction Form.doc exists
FTPPlugIn: Remote file = ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/Customer%20Satisfaction%20Form.doc
TransferCommand: Remote file, content length and content type set
TransferCommand: C:\Documents and Settings\jlchereau\Desktop\FileUpload Progress Bar without HttpModule.doc exists
FTPPlugIn: Remote file = ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/FileUpload%20Progress%20Bar%20without%20HttpModule.doc
TransferCommand: Remote file, content length and content type set
TransferCommand: C:\Documents and Settings\jlchereau\Desktop\JasperOverview.doc exists
FTPPlugIn: Remote file = ftp://10.0.0.12/Download/f14d3d29450240819807694558aadef8/JasperOverview.doc
TransferCommand: Remote file, content length and content type set
TransferCommand: TransferPackage object updated
TransferCommand: Launching hashing/compression
TransferInfo: Status changed Managed->HashingCompressing
TransferBuilder: Hash/compress transfer New Package
TransferItem: Constructor
TransferItem: Constructor
TransferItem: Constructor
TransferItem: Constructor
TransferBuilder: New Package successfully queued to thread pool
TransferCommand: Hashing/compression launched



Please make sure you include in your bug reports:
1) a description of the environment (version of windows + office + else)
2) Precise steps to reproduce
3) the DebugView trace (or at least the relevant portion)
4) any other relevant information (like the HTML source of the email body here)

Please also make sure you consistently reproduce the bug a couple of times before posting here.

Regards,
Jacques
May 20, 2008 at 8:59 PM

 

I am sending the steps to reproduce the issue,

My Environment Settings: Win XP, Outlook 2007, Velodoc Add In 1.0 (downloaded MSI Installer which was uploaded on May 19th 2008)

I downloaded the "Vision_and_Requirments" file from codeplex.

Steps to Reproduce:
1) Open Outlook --> Click on "New Message"--> Click on "Add / Edit Package Editor".
2) In Add / Edit Package Editor add file "Vision_and_Requirments".
3) Save the File.
4) Close the Add/ Edit Package Editor Window.
5) Enter the Email Id in "To" field, Add Subject and hit Send.
6) Now check the mail to which you have sent the "Vision_and_Requirments" file.In my case I have sent to gmail account. I login to my account and open the mail received.
7) In the Mail Body I recive the link to open the File along with 3 attachments.
8) The link is as,
    <ftp://<IPADDRESS>/download/<random number>/vision_and_Re
  quirments.docx> Vision-and_Requirments.docx (67.0 KB)

9) when I click on this link it opens a new window with URL,
 
<ftp://<IPADDRESS>/download/<random number>/vision_and_Re

10) Above URL is not a complete URL. Hence it cannot be opened.

I am also sending the screenshots of the same. Let me know if above steps help in reproducing the issue.

You can find the screenshots in the link below:
http://www.rentacoder.com/RentACoder/DotNet/misc/DownloadFile.aspx?lngDownloadTypeId=5&lngInteger1=17379264

Coordinator
May 20, 2008 at 9:17 PM
Edited May 21, 2008 at 6:52 AM
I now understand the problem and I am able to reproduce it.

Although we have used Hotmail and Gmail mailboxes in our tests, we access them from Outlook, not from the web interface, which is the reason why we have not spotted the problem:
- Look at the sent message in the sent items: it is nice and clean;
- Look at the received message in the Gmail web interface: it is all broken (the issue is not only one link, thus I have changed the title of the discussion thread).

If you configure the Gmail mailbox in Outlook, then the received message in your Outlook inbox perfectly matches the one you have in your sent items and all the links are good, although it went through Gmail:
http://mail.google.com/mail/#settings/fwdandpop
http://mail.google.com/support/bin/answer.py?hl=en_GB&ctx=mail&answer=12103

Which means that the Gmail html rendering engine breaks the message. I have also checked with Yahoo mail and Hotmail:
- Yahoo mail does the same;
- Hotmail keeps the original message layout.

I do not know if we can consider this as a Velodoc Add-In defect.
I would be tempted to consider this as a Gmail/Yahoo defect or a Microsoft WordMail defect (the HTML produced by Word is not Gmail/Yahoo compliant).

What is your opinion?
Coordinator
May 21, 2008 at 6:54 AM
Edited May 21, 2008 at 6:55 AM
The only thing we can possibly do is work around the Gmail/Yahoo limitations. Anyway there is a workaround which is to send a plain text message to gmail and yahoo mailboxes. Otherwise it is easy to reconstitute the link by copying and pasting the two parts in the address bar of the browser. The severity is quite low and I am not sure this is something we want to address in a version 1.0.
May 21, 2008 at 3:16 PM
According to my understanding the code that is generating the link for the added package is not generating the link completely.
If you include any other link say, http://www.rentacoder.com/RentACoder/DotNet/misc/DownloadFile.aspx?lngDownloadTypeId=5&lngInteger1=17379264

in the same mail where you also have include the added package.
We notice the above link is not broken but the attached file link is broken.

Steps to repro:
1) Open Outlook --> Click on "New Message"--> Click on "Add / Edit Package Editor".
2) In Add / Edit Package Editor add file "Vision_and_Requirments".
3) Save the File.
4) Close the Add/ Edit Package Editor Window.
5) Add link http://www.rentacoder.com/RentACoder/DotNet/misc/DownloadFile.aspx?lngDownloadTypeId=5&lngInteger1=17379264
   in email body.
6)Enter the Email Id in "To" field, Add Subject and hit Send.
7) Now check the mail to which you have sent the "Vision_and_Requirments" file.In my case I have sent to gmail account. I login to my account and open the mail received.
8) In the Mail Body I receive the link to open the File along with 3 attachments.
8) The email body contains,
    http://www.rentacoder.com/RentACoder/DotNet/misc/DownloadFile.aspx?lngDownloadTypeId=5&lngInteger1=17379264( This link is not broken in received mail body).

   <ftp://<IPADDRESS>/download/<random number>/vision_and_Re
  quirments.docx> Vision-and_Requirments.docx (67.0 KB)  (This link is broken)

let me know if above steps are clear.

I tried out the above steps and think the ftp link is not generated correct.What do you think?

Coordinator
May 21, 2008 at 5:16 PM
Edited May 22, 2008 at 12:28 PM
Ganesh,

I have reproduced the issue and the Velodoc Add-in generates a correct link. The GMail web interface breaks the link.

If you really need to be convinced, please complete the following two tests:

1) Look at the sent message in the sent items folder of Outlook. Is the link broken in the sent message? my guess is no.
Otherwise, please forward it to me (you have my email address in Rent-A-Coder).

2) Configure a new Outlook account to receive messages from your Gmail mailbox via POP3 using the steps described at 
http://mail.google.com/mail/#settings/fwdandpop
http://mail.google.com/support/bin/answer.py?hl=en_GB&ctx=mail&answer=12103
Configure your Gmail POP3 access to "keep Gmail's copy in the inbox"
Make sure you receive in Outlook the messages sent to your Gmail mailbox
Then re-execute steps 1 to 8 above
Check that the message you receive in your Outlook inbox has a working link
Check that the message rendered in the Gmail web interface has a broken link

Alternatively you can send the message from Outlook to Outlook using any mailbox, just to put Gmail out of the equation.

Regards,
Jacques
May 22, 2008 at 1:14 PM

I was trying few more tests to make sure that the links are not broken from the velodoc Add In.It is the gmail web interface that breaks the link.I did follow above steps which you have given, velodoc add in is generating link correctly.So its not an issue with velodoc Add In.

 

Coordinator
May 22, 2008 at 2:05 PM
Ganesh,
Thank you for the thorough report. We will have to find a workaround anyway but it is not critical and I leave this to a future version.
Jun 12, 2008 at 8:21 PM
Jacques,

Today when I sent file using Amazon S3 Plug In the link received at receiver end is not broken.

Link received : https://velodoc.s3.amazonaws.com/cef3f39444574a7f87412dfb2a7a43e9/PauseTransfer.zip?AWSAccessKeyId=096A85HHJBTJ8B8XMK82&Expires=1214507731&Signature=tL8wK%2bI9qK93pqfG0FzkLV4Kd7g%3d>

Clicking on teh link will open the link correctly. This link is not broken as it is for the FTP.

Also a strange thing I noticed for FTP Plug In is,
1) When you send file with .doc, .jpg,.txt, .zip etc extension
These FTP links are not broken.
2) When you send files with .docx file extension, the FTP link is broken.

Based on my testing I understand that any file with 4letter extension causes the link to break. One of the reason may be the code is written to fixed 3 letters.
Coordinator
Jun 13, 2008 at 8:42 AM
Anyway this is not in our code (Google mail and Yahoo mail) so there is not much that we can do.