Author Topic: Mailto links not being added correctly in message  (Read 7649 times)

Offline thedoctor

  • Newbie
  • *
  • Posts: 7
Mailto links not being added correctly in message
« on: July 23, 2014, 04:04:17 PM »
When I send a link from a web page, the link ends up looking like this, even though I have html setup for email.  It doesn't turn it into a clickable link.

< !-- html ignored --><!-- head ignored --><!-- meta ignored --><body><p>my link</p></body >

I'm using Firefox browser and an app called webmailer to send mailto via roundcube.
This is the setting I have
?_task=mail&_action=compose&_subject=subject&to=mailto:[to]?[?]


Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Mailto links not being added correctly in message
« Reply #1 on: July 24, 2014, 01:48:05 AM »
Provide original html source, not the one modified by Roundcube.

Offline thedoctor

  • Newbie
  • *
  • Posts: 7
Re: Mailto links not being added correctly in message
« Reply #2 on: July 25, 2014, 12:59:09 PM »
Code: [Select]
<textarea id="composebody" tabindex="9" rows="20" cols="70" name="_message" style="width: 914px; height: 284px;"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><body><p>http://www.roundcubeforum.net/index.php/topic,20439.0/topicseen.html</p></body></textarea>
Here's the entire HTML

Code: [Select]
<!DOCTYPE html>
<html class=" js mozilla">
<head>
<body>
<div id="header">
<div id="mainscreen">
<div id="messagetoolbar" class="fullwidth">
<div id="composeview-left" style="width: 242px;">
<div id="composeview-right" style="left: 254px;">
<form id="compose-content" class="uibox" action="/mail/?_task=mail&_unlock=loading1406307303832&_lang=en_US&_framed=1" method="post" name="form" style="overflow: auto;" target="savetarget">
<input type="hidden" value="4f6dee237b5a6aaec986ca891c2c2480" name="_token">
<div id="composeheaders">
<div id="composeview-bottom" style="height: 300px;">
<div id="composebodycontainer">
<input type="hidden" name="_draft_saveid" value="226">
<input type="hidden" value="1" name="_draft">
<input type="hidden" value="0" name="_is_html">
<input type="hidden" value="1" name="_framed">
<textarea id="composebody" tabindex="9" rows="20" cols="70" name="_message" style="width: 914px; height: 284px;"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><body><p>http://www.roundcubeforum.net/index.php/topic,20439.0/topicseen.html</p></body></textarea>
<iframe style="width:0;height:0;border:none;visibility:hidden;" src="program/resources/blank.gif" name="savetarget">
</div>
<div id="compose-attachments" class="rightcol droptarget">
</div>
</form>
</div>
<div id="composesplitterv" class="splitter splitter-v" unselectable="on" style="top: 0px; left: 245px;"></div>
</div>
<div id="upload-dialog" class="propform popupdialog" title="Attach a file">
<div id="spellmenu" class="popupmenu"></div>
<div id="responsesmenu" class="popupmenu">
<div id="messagestack"></div>
<script type="text/javascript">
<div id="tb_label_popup" class="popupmenu">
<script type="text/javascript">
<div id="translator-floating-panel" class="translator-theme-default" style="bottom: auto; left: 273px; right: auto; top: 308px;">
</body>
<lpformsubmitdataelement formnum="1" from="submithook"></lpformsubmitdataelement>
</html>

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Mailto links not being added correctly in message
« Reply #3 on: July 26, 2014, 02:13:04 AM »
This is not original html source.

Offline thedoctor

  • Newbie
  • *
  • Posts: 7
Re: Mailto links not being added correctly in message
« Reply #4 on: August 21, 2014, 01:16:57 PM »
Code: [Select]
<!DOCTYPE html>
<html class=" js mozilla">
<head>
<body>
<div id="dic_bubble" class="selection_bubble fontSize13 noSelect" style="z-index: 9999; border: 1px solid rgb(74, 174, 222); visibility: hidden;"></div>
<div id="header">
<div id="mainscreen">
<div id="messagetoolbar" class="fullwidth">
<div id="composeview-left" style="width: 242px;">
<div id="composeview-right" style="left: 254px;">
<form id="compose-content" class="uibox" action="./?_task=mail" method="post" name="form" style="overflow: auto;">
<input type="hidden" value="d052212853966b774ae83c280a267576" name="_token">
<div id="composeheaders">
<div id="composeview-bottom" style="height: 300px;">
<div id="composebodycontainer">
<input type="hidden" name="_draft_saveid">
<input type="hidden" value="yes" name="_draft">
<input type="hidden" value="0" name="_is_html">
<input type="hidden" value="1" name="_framed">
<textarea id="composebody" tabindex="9" rows="20" cols="70" name="_message" style="width: 928px; height: 284px;"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><body><p>http://www.roundcubeforum.net/index.php/topic,20439.0/topicseen.html</p></body></textarea>
<iframe style="width:0;height:0;border:none;visibility:hidden;" src="program/resources/blank.gif" name="savetarget">
</div>
<div id="compose-attachments" class="rightcol droptarget">
</div>
</form>
</div>
<div id="composesplitterv" class="splitter splitter-v" unselectable="on" style="top: 0px; left: 245px;"></div>
</div>
<div id="upload-dialog" class="propform popupdialog" title="Attach a file">
<div id="spellmenu" class="popupmenu"></div>
<div id="responsesmenu" class="popupmenu">
<div id="messagestack"></div>
<script type="text/javascript">
<div id="tb_label_popup" class="popupmenu">
<script type="text/javascript">
<div id="translator-floating-panel" class="translator-theme-default" style="bottom: auto; left: 435px; right: auto; top: 269px; display: none;">
</body>
</html>

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Mailto links not being added correctly in message
« Reply #5 on: August 21, 2014, 02:45:56 PM »
Do not provide the Roundcube page source. Provide steps to reproduce the issue.

Offline thedoctor

  • Newbie
  • *
  • Posts: 7
Re: Mailto links not being added correctly in message
« Reply #6 on: August 21, 2014, 09:17:51 PM »
In Firefox

Email Link is the only step involved in sending a webpage.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Mailto links not being added correctly in message
« Reply #7 on: August 22, 2014, 02:07:33 AM »
I'm not sure I understand, but yes, there's no such feature in Roundcube. The message body provided as mailto: argument can be only a text (not html), which means there's a link that is just a text. Roundcube will not convert it automatically into a link (<a>).

Offline thedoctor

  • Newbie
  • *
  • Posts: 7
Re: Mailto links not being added correctly in message
« Reply #8 on: August 26, 2014, 12:49:47 PM »
Even just composing a simple HTMl, it's buggy on my end.  The blockquote quotes the entire text box rather than what you highlight and when you create a link, it links the entire text box.  I don't know if this is only on mac or just firefox.  Any other program when you email a webpage, gets converted to link, seems like I only have this issue with Roundcube.  On iphone and ipad, roundcube is pretty much unusable.

It also doesn't explain why
Code: [Select]
<!-- html ignored --><!-- head ignored --><!-- meta ignored --><body><p></p></body>Gets added to the compose window anytime I try to email a webpage.
« Last Edit: August 26, 2014, 01:40:21 PM by thedoctor »

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: Mailto links not being added correctly in message
« Reply #9 on: August 26, 2014, 02:13:01 PM »
Even just composing a simple HTMl, it's buggy on my end.  The blockquote quotes the entire text box rather than what you highlight and when you create a link, it links the entire text box.  I don't know if this is only on mac or just firefox.  Any other program when you email a webpage, gets converted to link, seems like I only have this issue with Roundcube.  On iphone and ipad, roundcube is pretty much unusable.
Feel free to create a feature request on trac.roundcube.net, but please provide more precise steps and expected result.
Quote
It also doesn't explain why
Code: [Select]
<!-- html ignored --><!-- head ignored --><!-- meta ignored --><body><p></p></body>Gets added to the compose window anytime I try to email a webpage.
Roundcube cleans original HTML content (for security reasons) and some html tags/attributes got removed in this process. What problem do you have with that?

Offline avatejo

  • Newbie
  • *
  • Posts: 5
Re: Mailto links not being added correctly in message
« Reply #10 on: December 02, 2014, 06:00:26 PM »
Hi, I have a similar problem

I use this URL to open it on a iframe

webmail/?_task=mail&_action=compose&_extwin=1&to=a@a.com&subject=test&body=my%20test

But as you can see on the image (attach):

1- Add some html Tags
2- Editor Type is set to HTML but the HTML toolbar do not appear

If I select "Plain Text" in Editor Type and then back to HTML, then the HTML toolbar appear

Should I specify in the URL to RC that the body is in HTML format?

Thanks for your help!