[imp] Add button on long press mobile version

hordelist at lemmen.com hordelist at lemmen.com
Mon Jul 16 13:09:09 UTC 2018


I would like to add a button to move a message to a mbox file when you tap and 
hold on a message. Currently a Delete option comes up when doing a long press. 
I have added a button labled MyBox as follows:

horde/imp/templates/smartmobile/mailbox.html.php

  <div id="imp-mailbox-buttons" style="display:none">
   <a data-role="button" data-inline="true" data-theme="a" 
href="#mailbox-delete"><?php echo _("Delete") ?></a>
   <a data-role="button" data-inline="true" data-theme="a" 
href="#copymove"><?php echo _("MyBox") ?></a>
  </div>

  <div data-role="popup" data-history="false" data-theme="a" 
id="imp-mailbox-taphold">
   <ul data-role="listview" data-inset="true">
    <li data-icon="delete">
     <a href="#mailbox-delete"><?php echo _("Delete") ?></a>
    </li>
    <li data-icon="alert">
     <a href="#copymove"><?php echo _("MyBox") ?></a>
    </li>
   </ul>
  </div>
</div>

What do I need to put in for the href to have the messages moved to the mailbox 
MyBox? I found the copymove in /usr/local/horde/imp/js/smartmobile.js which is 
where mailbox-delete seems to be located. When I press on the MyBox option that 
comes up on a long hold, it deletes the message and puts in in Trash, which I 
don't want.


More information about the imp mailing list