Skip to content

Auto-Submitted and Precedence headers in automatically sent e-mails #16538

Open

Description

@slater0013

Is your feature request related to a problem? Please describe.
Emails are often automatically sent by Nextcloud. eg : activity or sharing notifications. People with auto-reply configured on their mailboxes reply...

Describe the solution you'd like
Two additionnal headers can be added in automatically submited emails, as described in RFC.
Auto-Submitted and Precedence. RFC-compliant mail clients may not autoreply when those headers are present.

Thank you,
GS.

Activity

  1. kesselb commented on Jul 25, 2019

    @kesselb
    Contributor

    Sounds good 👍

    Here is the related RFC: https://tools.ietf.org/html/rfc3834 and https://tools.ietf.org/html/rfc5436

  2. szaimen commented on May 26, 2021

    @szaimen
  3. slater0013 commented on May 27, 2021

    @slater0013
    Author
  4. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    on May 27, 2021
  5. slater0013 commented on May 27, 2021

    @slater0013
    Author

    AFAIUnderstand....

    Based on https://swiftmailer.symfony.com/docs/headers.html#text-headers

    File lib/private/Mail/Mailer.php around line 191:

    $headers = $message->getSwiftMessage()->getHeaders();
    $headers->addTextHeader('Auto-Submitted', 'auto-generated');

    And... That's it ! Or implementing the getHeaders() function in lib/private/Mail/Message.php

    Tested in my Nextcloud test instance, works like a charm ! Auto-Submitted header is added to the sent mails (Test e-mail from Admin pannel)

    GS.

  6. szaimen commented on May 28, 2021

    @szaimen
    Contributor

    Thanks @slater0013! Would you be able to create a PR for this? That would be really great! :)

  7. slater0013 commented on May 28, 2021

    @slater0013
    Author

    Ok I ... tried something :)
    #27200

  8. szaimen commented on May 28, 2021

    @szaimen
    Contributor

    Great, thank you! :)

  9. added and removed
    1. to developAccepted and waiting to be taken care of
    on May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions