AutoSubmitted.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Mail\Headers;
  8. /**
  9. * Keyword values for the Auto-Submitted email header, as per RFC 3834.
  10. *
  11. * The value "auto-notified" as per RFC 5436 is deliberately omitted as it is
  12. * meant of notification of the sieve system.
  13. *
  14. * @link https://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml
  15. *
  16. * @since 26.0.0
  17. */
  18. final class AutoSubmitted {
  19. /**
  20. * Name of the Header as used in the final message later
  21. *
  22. * @var string
  23. * @since 26.0.0
  24. */
  25. public const HEADER = 'Auto-Submitted';
  26. /**
  27. * Indicates that a message was NOT automatically generated, but was
  28. * created by a human (or following human interaction). It is the equivalent
  29. * to the absence of an Auto-Submitted header altogether.
  30. *
  31. * @var string
  32. * @since 26.0.0
  33. */
  34. public const VALUE_NO = 'no';
  35. /**
  36. * Indicates that a message was generated by an automatic process, and is
  37. * not a direct response to another message
  38. *
  39. * @var string
  40. * @since 26.0.0
  41. */
  42. public const VALUE_AUTO_GENERATED = 'auto-generated';
  43. /**
  44. * Indicates that a message was automatically generated as a direct response
  45. * to another message.
  46. *
  47. * @var string
  48. * @since 26.0.0
  49. */
  50. public const VALUE_AUTO_REPLIED = 'auto-replied';
  51. }