RainLoop / rainloop-webmail

Simple, modern & fast web-based email client

Home Page:http://rainloop.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically forward mails with .eml attachements by clicking a button

bilel opened this issue · comments

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 :)