Wrong condition fixed.

fix #507
This commit is contained in:
Antoine Nguyen
2014-01-06 09:52:05 +01:00
parent a9611eb017
commit 5151299841
@@ -12,7 +12,7 @@ from modoboa.extensions.postfix_autoreply.models import ARmessage, ARhistoric
def send_autoreply(sender, mailbox, armessage):
if armessage.fromdate < timezone.now():
if armessage.fromdate > timezone.now():
return
if armessage.untildate is not None \
and armessage.untildate < timezone.now():