RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.07k stars 873 forks source link

Automatically forward mails with .eml attachements by clicking a button #2207

Open bilel opened 1 year ago

bilel commented 1 year ago

Hi :) I'd like to visualize .eml files received as attachments. A fast and convenient trick I'm using is to forward those mails to a gmail box where I can clearly have a nice preview.

So I added this code to MailMessageView.html to display a custom button when needed

<ul class="attachmentList" data-bind="foreach: message() ? message().attachments() : []">
...
<li class="e-item clearfix" data-bind="visible: fileName.includes('.eml')">
<a class="e-link menuitem command no-disabled" href="#" tabindex="-1" data-bind="command: $root.forwardCommand">Forward to GMAIL</a></li>

Clicking on this link shows well the modal where I could compose my message.

Is there any way we could add any extra argument to the forwardCommand or the sendCommand? So I could directly transfer it to a specific mailbox.. (without showing the modal)

Like setting a custom value to sTo

Thank you :)