Skip to content

Vacation auto reply is moving spam mails even if not enabled by the user

The current code generated for auto replys with Sieve looks like the following:

#################################################################
# Autoreply
#################################################################

# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
  fileinto "Junk";
  # Stop here so that we do not reply on spams
  stop;
}

vacation  :days 1 :subject [...]
}

This causes mails marked as spam to be moved to the Junk folder, even if the user has not enabled that option for his mailbox. Concequently the line fileinto "Junk" should be removed. That would still stop mail processing and prevent automatically replying to spam mails.

Merge request reports