Summary | Use date extension for Vacation rule |
Queue | Ingo |
Queue Version | Git master |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | stuart (at) ruby (dot) naifeh (dot) org |
Created | 07/31/2013 (4329 days ago) |
Due | |
Updated | 11/09/2016 (3132 days ago) |
Assigned | 10/10/2016 (3162 days ago) |
Resolved | 11/09/2016 (3132 days ago) |
Milestone | |
Patch | No |
commit 28ac8bf0125c0b7311e1d9abb32d39feb020a44e
Author: Jan Schneider <jan@horde.org>
Date: Wed Nov 9 11:14:56 2016 +0100
[jan] Add support for Sieve date extension to vacation messages
(
Request #12520).ingo/basic.php | 2 +-
ingo/config/backends.php | 5 ++++
ingo/docs/CHANGES | 2 ++
ingo/docs/UPGRADING | 8 ++++++
ingo/lib/Script/Sieve.php | 3 +-
ingo/lib/Script/Sieve/Action/Vacation.php | 47
++++++++++++++++++++++++++++---
ingo/package.xml | 2 ++
7 files changed, 63 insertions(+), 6 deletions(-)
http://github.com/horde/horde/commit/28ac8bf0125c0b7311e1d9abb32d39feb020a44e
State ⇒ Assigned
State ⇒ Feedback
Priority ⇒ 1. Low
State ⇒ Feedback
Summary ⇒ Use date extension for Vacation rule
because it's not (yet) available on all Sieve servers. See how we
enable imapflags or notify extensions in the backend configuration.
New Attachment: 0001-update-sieve-Vacation-filter-to-use-the-Date-extensi.patch
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ Date range in Sieve-based Vacation responder does not work for some mail servers
Type ⇒ Bug
underlying mail/sieve server. I can create a vacation responder on
Horde, and it successfully generates the script, but if I set a date
range for the vacation responder, the script does not fire for mail
coming from or to systems that either do not add or remove the
Received header (as some systems to to protect information about
internal networks or sender ip address) or that use X-Received instead
of Received (as gmail apparently does).
The issue is that Ingo assumes the relevant date will be in a Received
header. On systems that strip the Received header or use the
X-Received header, the sieve header function does not find a header to
check, and the vacation responder therefore does not fire.
The attached patch replaces the regex/header match with a date
comparison using the sieve Date and Relational extensions. Rather
than comparing the date in the Received header, it uses the current
system date at the time the filter is fired to determine whether the
reply should be sent.