Closed tonioo closed 9 years ago
Actually this feature is more complicated to add than expected.
The current autoreply script is using Postfix's pipe service. Unfortunately, this one does not provide the original message-id, so we can't add the In-Reply-To header to the response.
It seems the right way to build an autoreply is to build a MILTER but that's a completly different story! I see three options :
I think the last solution would be the quickest to implement but it would be available to sieve/managesieve servers only.
What do you think?
From @piwats on July 20, 2014 21:45
Hi,
according to http://wiki2.dovecot.org/Pigeonhole/Sieve/Examples#Vacation_auto-reply it is possible to include the original subject using the variables extension.
Since dovecot can do sieve, why not use it for the auto-replies?
-Paul
@themr0c Finally, I may have found a solution!
From @themr0c on April 10, 2014 7:44
According to https://tools.ietf.org/html/rfc3834#section-3.1 some fields are mandatory in autoreply messages:
The In-Reply-To and References fields SHOULD be provided in the header of a response message if there was a Message-ID field in the subject message.
The Auto-Submitted field, with a value of "auto-replied", SHOULD be included in the message header of any automatic response.
The Subject field SHOULD contain a brief indication that the message is an automatic response, followed by contents of the Subject field (or a portion thereof) from the subject message. The prefix "Auto:" MAY be used as such an indication. If used, this prefix SHOULD be followed by an ASCII SPACE character (0x20).
A response MAY include a Precedence field. The field-body of the Precedence field MAY consist of the text "junk", "list", "bulk", or other text deemed appropriate by the responder.
[NB: for Precedence: auto_reply is also an option]
Actual message is like :
Copied from original issue: tonioo/modoboa#544