View Issue Details

IDProjectCategoryView StatusLast Update
0003803SOGoBackend Mailpublic2016-08-27 06:10
ReporterJens Erat Assigned To 
PrioritylowSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.3.13 
Summary0003803: Writing sieve rule fails on Dovecot if \r is included
Description

As a step in migrating users from Cyrus to Dovecot, we're rewriting the Sieve rules stored in SOGo by merely running an export of the Sieve rules and importing them again.

This failed for a few users which had a \r in their JSON dump, ie. copied this from somewhere earlier. Cyrus seemed to accept it, Dovecot doesn't.

Proposed solution: strip \r when writing Sieve rules. Example export attached.

Additional Information

[{"active": 1, "actions": [{"method": "fileinto", "argument": "Spam"}], "rules": [{"operator": "is", "custom_header": "X-Spam-Flag", "field": "header", "value": "YES"}, {"operator": "contains_not", "field": "from", "value": "christian.mack@uni.kn\r"}, {"operator": "contains_not", "field": "from", "value": "hugine.habicht@uni-konstanz.de"}, {"operator": "contains_not", "field": "from", "value": "jens.erat@uni-konstanz.de"}], "match": "all", "name": "Spam-Filter"}]

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2016-08-24 07:43 Jens Erat New Issue