Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great to see this feature exist in the protocol.
However, I'm not sure this is the best location, I would expect something like that to be more somewhere in
createMessage
itself but looks like we don't really have any common code between message factories so that would mean adding it to each of them.I guess another possibility would be to make it the default in ExtendedMimeMessage constructor, but it might be a bit too much.
WDYT @vmassol ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICS only
Auto-Submitted
is defined in the RFC (https://www.rfc-editor.org/rfc/rfc5436.html#section-2.7.1) the other one is defined by Microsoft according to https://www.arp242.net/autoreply.html.Would be good to maybe add some comments to at least explain that. Also reading a bit more the RFC it sounds like the Auto-Submitted field should include the owner-email:
[EDIT: actually it's only for auto-notified value, here the proposal is to use auto-generated which does not have any parameter]
According to the RFC the header could contain
auto-generated
orauto-notified
. IMO it makes to always have the header in the emails sent by XWiki, now it's not necessarly alwaysauto-generated
: it would makes sense to useauto-notified
for notification system.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the RFC actually says:
we're not in that case since it's not a Sieve notification system. So I guess we can just commit to keep auto-generated. I'm not yet entirely sure about putting that to
ExtendedMimeMessage
: what if some extensions / scripts reuse that to send mails that are not generated?We could maybe go at least for a first version to keep it there only. WDYT?