6.0.0-alpha12
6/7/25

[#12520] Use date extension for Vacation rule
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

History
11/09/2016 10:19:32 AM Jan Schneider State ⇒ Resolved
 
11/09/2016 10:19:21 AM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

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
10/10/2016 07:49:50 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Assigned
 
05/27/2016 05:03:58 PM Jan Schneider Comment #4 Reply to this comment
Ping?
03/08/2016 10:57:16 AM Jan Schneider Type ⇒ Enhancement
State ⇒ Feedback
Priority ⇒ 1. Low
 
01/19/2016 12:06:43 PM Jan Schneider Comment #3
State ⇒ Feedback
Summary ⇒ Use date extension for Vacation rule
Reply to this comment
This is a nice patch, but the date extension must be used optionally, 
because it's not (yet) available on all Sieve servers. See how we 
enable imapflags or notify extensions in the backend configuration.
07/31/2013 09:27:42 PM stuart (at) ruby (dot) naifeh (dot) org Comment #2
New Attachment: 0001-update-sieve-Vacation-filter-to-use-the-Date-extensi.patch Download
Reply to this comment
Patch attached.
07/31/2013 09:26:44 PM stuart (at) ruby (dot) naifeh (dot) org Comment #1
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
Reply to this comment
I have Ingo set up to use a sieve backend with dovecot/sieve as the 
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.

Saved Queries