1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-07-13 01:20:28 +02:00

fix(auto-reply): include start and end dates in the auto-reply period; issue #2512

This commit is contained in:
wkr
2022-11-02 17:48:22 +01:00
parent 323f0a4e70
commit d920b3d037
2 changed files with 3 additions and 2 deletions

View File

@ -546,8 +546,8 @@ class User(Base, Email):
now = date.today()
return (
self.reply_enabled and
self.reply_startdate < now and
self.reply_enddate > now
self.reply_startdate <= now and
self.reply_enddate >= now
)
@property

View File

@ -0,0 +1 @@
Fix: include start and end dates in the auto-reply period