Skip to content

Commit

Permalink
fixup! fix: line ending for sieve scripts should be clrf
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Aug 15, 2024
1 parent 4efd795 commit 245c7dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Unit/Service/OutOfOffice/OutOfOfficeParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function testBuildEnabledResponderWithSpecialCharsInMessage(): void {
new DateTimeImmutable("2022-09-02T00:00:00+0100"),
null,
"On vacation",
"I'm on vacation. \"Hello, World!\" \\ escaped backslash",
"I'm on vacation.\r\n\"Hello, World!\"\r\n\\ escaped backslash",
),
$script,
["Test Test <[email protected]>", "Test Alias <[email protected]>"],
Expand Down
6 changes: 4 additions & 2 deletions tests/data/sieve-vacation-on-special-chars-message.sieve
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ if address "From" "[email protected]" {
}

### Nextcloud Mail: Vacation Responder ### DON'T EDIT ###
# DATA: {"version":1,"enabled":true,"start":"2022-09-02T00:00:00+01:00","subject":"On vacation","message":"I'm on vacation. \"Hello, World!\" \\ escaped backslash"}
# DATA: {"version":1,"enabled":true,"start":"2022-09-02T00:00:00+01:00","subject":"On vacation","message":"I'm on vacation.\r\n\"Hello, World!\"\r\n\\ escaped backslash"}
if currentdate :value "ge" "iso8601" "2022-09-01T23:00:00Z" {
vacation :days 4 :subject "On vacation" :addresses ["Test Test <[email protected]>", "Test Alias <[email protected]>"] "I'm on vacation. \"Hello, World!\" \\ escaped backslash";
vacation :days 4 :subject "On vacation" :addresses ["Test Test <[email protected]>", "Test Alias <[email protected]>"] "I'm on vacation.
\"Hello, World!\"
\\ escaped backslash";
}
### Nextcloud Mail: Vacation Responder ### DON'T EDIT ###

0 comments on commit 245c7dc

Please sign in to comment.