Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

managesieve: Out-of-Office strips angle brackets from message body #7518

Closed
maxtruxa opened this issue Jul 29, 2020 · 0 comments · Fixed by #7519
Closed

managesieve: Out-of-Office strips angle brackets from message body #7518

maxtruxa opened this issue Jul 29, 2020 · 0 comments · Fixed by #7519

Comments

@maxtruxa
Copy link
Contributor

The managesieve plugin (incorrectly) strips angle brackets from the message body (reason).

To reproduce:

  • Enable the managesieve plugin by adding $config['plugins'] = array( 'managesieve' ); to Roundcube's config and configure it to connect to a ManageSieve server.
  • Add $config['managesieve_vacation'] = 1; to the plugin's config to enable the interface for out-of-office responses.
  • Log into Roundcube and go to Settings > Out of Office.
  • Input a Body containing angle brackets (i.e. foo <bar> baz).
  • Hit Save.
  • Reload the page.
  • The angle brackets and anything between them are now gone. (i.e. foo baz).

That it's actually Roundcube that butchers the message body can be verified by turning on managesieve_debug. Logs show that the message sent to the server was already stripped of the angle brackets.

[29-Jul-2020 15:57:06 +0200]: <lg8gof5f> C: PUTSCRIPT "roundcube" {389+}
require ["date","fileinto","relational","vacation"];
# rule:[Out of Office]
if allof (currentdate :zone "+0200" :value "ge" "date" "2020-07-29", currentdate :zone "+0200" :value "le" "date" "2020-07-29")
{
        vacation :addresses ["[email protected]"] "foo  baz";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants