Author Topic: select text to quote in reply  (Read 6562 times)

Offline cbrace

  • Full Member
  • ***
  • Posts: 75
select text to quote in reply
« on: May 17, 2011, 07:27:50 AM »
Hi all,

I don't know whether this is technically feasible, but it would be very useful to be able to select part of a message, click on Reply, and have just this text inserted as quoted text in the edit window.

For an example of this in action, see Thunderbird.

Thank you.

Offline toootooo

  • Jr. Member
  • **
  • Posts: 11
select text to quote in reply
« Reply #1 on: May 17, 2011, 09:20:41 AM »
Yep, it will be nice!

Offline Antho

  • Newbie
  • *
  • Posts: 8
select text to quote in reply
« Reply #2 on: May 18, 2011, 05:21:24 AM »
Hello,
I quickly coded a simple plugin to allow users to do what you need.

I think it can be improved (the selected text is passed between the two pages by saving it to the user preferences, I did not manage to pass it via the $_SESSION var). Maybe someone will find a better way to do it.

Hope it helps

Offline cbrace

  • Full Member
  • ***
  • Posts: 75
select text to quote in reply
« Reply #3 on: May 18, 2011, 06:49:58 PM »
Wow, that was quick; thanks.

Alas, enabling this plugin breaks something; I am seeing this error in logs/error:
Code: [Select]
[19-May-2011 00:38:54 +0200]: PHP Error: No plugin class select_text_to_quote found in /usr/local/www/lim.nl/rc/plugins/select_text_to_quote/select_text_to_quote.php in /usr/local/www/roundcube/program/include/rcube_plugin_api.php on line 139 (GET /rc/?_task=mail&_remote=1&_action=check-recent&_t=1305758334642&_mbox=INBOX&_list=1&_=1305758334643&_unlock=0)


I am running v0.5.2. Let me know if I can supply any additional info.

Offline Antho

  • Newbie
  • *
  • Posts: 8
select text to quote in reply
« Reply #4 on: May 19, 2011, 02:34:54 AM »
Should be fixed in this version (php tag is "
My bad..

Offline cbrace

  • Full Member
  • ***
  • Posts: 75
select text to quote in reply
« Reply #5 on: May 20, 2011, 06:27:28 AM »
That fixed it. Thanks again. Works very well for non-HTML messages.

Offline Antho

  • Newbie
  • *
  • Posts: 8
select text to quote in reply
« Reply #6 on: May 20, 2011, 07:02:59 AM »
Yes, you may want some improvements, that was just to show that it is technically possible :)