Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: msisto on March 29, 2010, 06:15:34 AM

Title: Redirect mail
Post by: msisto on March 29, 2010, 06:15:34 AM
Hi !

I'd like to redirect (not forward) a mail to some address when clicking a button.
Is that possible ?

Thanks.
Title: Redirect mail
Post by: dziobak on March 29, 2010, 08:52:09 AM
use filters/rules. for example dovecot-sieve can do this.
Title: Redirect mail
Post by: msisto on March 29, 2010, 09:02:07 AM
Sorry for double post.
Title: Redirect mail
Post by: msisto on March 29, 2010, 09:29:47 AM
Sieve can have indeed redirect rules but that's not what I want to do : I'd like to redirect a mail by pushing some button. Sieve redirect some mail when receiving it, if it matches with one of the rules in the dovecot.sieve, while i want to redirect a mail which is already received, when pressing the button, and so, whithout sending it again.
Title: Redirect mail
Post by: JohnDoh on March 29, 2010, 01:17:48 PM
adding a button to the toolbar and making a funciton which sends an email is really easy with the plugin api
Title: Redirect mail
Post by: msisto on March 30, 2010, 03:14:15 AM
Not so easy for me... I did something which send an email with smtp_mail function but it does'nt keep my original mail : I would like to send one which is an exact copy of the original mail (with original headers too) for spams training purpose. That's why i need the "redirect" thing.
Title: Redirect mail
Post by: JohnDoh on March 30, 2010, 08:36:19 AM
have you tried the markasjunk2 plugin? that has an email_learn driver which can do what you want.
Title: Redirect mail
Post by: msisto on March 31, 2010, 03:07:37 AM
I'll try to do something with this plugin. That's shame it seems to be impossible to do a simple "redirect" thing. Thanks anyway to you for your answers !
Title: Redirect mail
Post by: umount on April 05, 2010, 06:17:20 AM
Quote from: msisto;26438
Hi !

I'd like to redirect (not forward) a mail to some address when clicking a button.
Is that possible ?

Thanks.

I want to preset you and all my plugin bounce
Ticket #1485774 (E-Mail - Redirect Bounce) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1485774)
this is test version.

I will be glad to any responses.

Add plugin on github
http://github.com/umount/rcplugin_bounce

06.03.10 Fix message body, last version on github.

Plugin testing on trunc roundcube version.
Title: Redirect mail
Post by: umount on April 06, 2010, 05:10:19 AM
I dont know how delete attached file, it is not wrong, use github version.
Title: Redirect mail
Post by: lacri on April 08, 2010, 09:33:12 AM
many thanks is a nice feature ... :)  and works perfekt
i think a recipients autocomplete feature would be nice
Title: Redirect mail
Post by: lacri on April 08, 2010, 10:15:57 AM
i add german translation and better buttons when using standard theme.

and when using rosalis forward as attachment plugin a better container for buttons position is the container forwardatt set in bounce.php on line 35 this works only when container is set in mail.html template
Title: Redirect mail
Post by: umount on April 09, 2010, 01:57:02 AM
Quote from: lacri;26696
i add german translation and better buttons when using standard theme.

and when using rosalis forward as attachment plugin a better container for buttons position is the container forwardatt set in bounce.php on line 35 this works only when container is set in mail.html template


Thank you. I am add German translation and new default buttons on github.