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 vacation doesn't use CRLF correctly #9543

Closed
1 of 2 tasks
LunarLambda opened this issue Jul 11, 2024 · 2 comments
Closed
1 of 2 tasks

managesieve vacation doesn't use CRLF correctly #9543

LunarLambda opened this issue Jul 11, 2024 · 2 comments

Comments

@LunarLambda
Copy link

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

We are having an issue where the body of vacation messages set with managesieve-vacation uses LF instead of CRLF, causing receiving mail clients to see the entire body written as a single line.

The same does not happen with the managesieve "out of office" filter.

I tracked the issue down to this line in rcube_sieve_vacation.php. Changing it to remove the str_replace call makes the message send correctly, and the sieve script stored on the server then has correct CRLF for the whole file.

I'm unsure whether this is a bug with our setup/configuration or with managesieve itself, since the "out of office" filter works and vacation one doesn't.

What browser(s) are you seeing the problem on?

Firefox

What version of PHP are you using?

8.2

What version of Roundcube are you using?

1.6.5

JavaScript errors

N/A

PHP errors

N/A

@alecpl
Copy link
Member

alecpl commented Jul 15, 2024

For me multi-line text is inserted into the script with LF only, in both places. According to https://datatracker.ietf.org/doc/html/rfc5228#section-2.1 "CR and LF can only appear as the CRLF line ending". So, it looks that we have to make sure to use CRLF everywhere and this is indeed a bug.

@alecpl
Copy link
Member

alecpl commented Jul 18, 2024

Fixed.

@alecpl alecpl closed this as completed Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants