Re: HYPERKITTY does not show messages parts being addressed in replies.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I wrote:
> That might be sped up if someone reading is interested in
> filing a bug upstream and perhaps even providing a patch to
> hyperkitty.  Someone from the infrastructure team may
> eventually be able to do just that, but I know they have
> many, many items on their list of tasks. :)
> 
>     https://gitlab.com/mailman/hyperkitty/issues

I believe the place to add this would be around here in the
source:

    https://gitlab.com/mailman/hyperkitty/blob/master/hyperkitty/static/hyperkitty/js/hyperkitty-thread.js#L242

I don't use javascript much and I'm not curious enough to
setup a hyperkitty dev environment to test this, but
something like this might be what's needed:

diff --git i/hyperkitty/static/hyperkitty/js/hyperkitty-thread.js w/hyperkitty/static/hyperkitty/js/hyperkitty-thread.js
index bd17e98..fbb2369 100644
--- i/hyperkitty/static/hyperkitty/js/hyperkitty-thread.js
+++ w/hyperkitty/static/hyperkitty/js/hyperkitty-thread.js
@@ -252,10 +252,13 @@ function setup_replies() {
         if (sig_index != -1) {
             quoted = quoted.substr(0, sig_index);
         }
+        // set reply attribution
+        var attribution = $(this).parents(".email").first()
+                            .find(".email-body").clone().text() + ' wrote:';
         // add quotation marks
         quoted = $.trim(quoted).replace(/^/mg, "> ");
         // insert before any previous text
-        textarea.val(quoted + "\n" + textarea.val());
+        textarea.val(attribution + "\n" + quoted + "\n" + textarea.val());
         textarea.focus();
     });
     function set_new_thread(checkbox) {

-- 
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Now, now my good man, this is no time for making enemies.
    -- Voltaire, on his deathbed in response to a priest asking that
    he renounce Satan.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux